Imported Upstream version 2.8.4
[platform/upstream/man-db.git] / include / manconfig.h.in
index 7ddd9f1..5c3ad64 100644 (file)
@@ -375,7 +375,6 @@ extern char *appendstr (char *, ...)
        ATTRIBUTE_SENTINEL ATTRIBUTE_WARN_UNUSED_RESULT;
 
 extern int quiet;              /* be quiet(er) if 1 */
-extern char *program_name;     /* the basename of the program (as called) */
 
 /*--------------------------*/
 /* Some general definitions */
@@ -404,6 +403,9 @@ extern char *program_name;  /* the basename of the program (as called) */
  */
 #define CTYPE(func,arg) (func((unsigned char)(arg)))
 
+/* access(2), but with boolean semantics. */
+#define CAN_ACCESS(pathname, mode)     (access (pathname, mode) == 0)
+
 /* FSSTND directories */
 #define CAT_ROOT       "/var/catman"           /* required by fsstnd() */
 #define MAN_ROOT       "/usr"                  /* required by fsstnd() */