diff options
author | ru <ru@FreeBSD.org> | 2001-07-10 17:10:51 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-07-10 17:10:51 +0000 |
commit | f476c49e72e784b36a95795e8ed18676527c61a1 (patch) | |
tree | 37668264f55a3d91ff2def01b6ded7f65ab04fae /contrib/groff/src/utils/indxbib/dirnamemax.c | |
parent | 8d6dea3a5542a987c08a218c28776d3751d6878d (diff) | |
download | FreeBSD-src-f476c49e72e784b36a95795e8ed18676527c61a1.zip FreeBSD-src-f476c49e72e784b36a95795e8ed18676527c61a1.tar.gz |
Removed files not present in v1.17.2 import.
Diffstat (limited to 'contrib/groff/src/utils/indxbib/dirnamemax.c')
-rw-r--r-- | contrib/groff/src/utils/indxbib/dirnamemax.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/contrib/groff/src/utils/indxbib/dirnamemax.c b/contrib/groff/src/utils/indxbib/dirnamemax.c deleted file mode 100644 index a8cd992..0000000 --- a/contrib/groff/src/utils/indxbib/dirnamemax.c +++ /dev/null @@ -1,49 +0,0 @@ -/* dir_name_max(dir) does the same as pathconf(dir, _PC_NAME_MAX) */ - -#include <sys/types.h> - -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif /* HAVE_UNISTD_H */ - -#ifdef _POSIX_VERSION - -long dir_name_max(dir) - char *dir; -{ - return pathconf(dir, _PC_NAME_MAX); -} - -#else /* not _POSIX_VERSION */ - -#ifdef HAVE_LIMITS_H -#include <limits.h> -#endif /* HAVE_LIMITS_H */ - -#ifdef HAVE_DIRENT_H -#include <dirent.h> -#else /* not HAVE_DIRENT_H */ -#ifdef HAVE_SYS_DIR_H -#include <sys/dir.h> -#endif /* HAVE_SYS_DIR_H */ -#endif /* not HAVE_DIRENT_H */ - -#ifndef NAME_MAX -#ifdef MAXNAMLEN -#define NAME_MAX MAXNAMLEN -#else /* !MAXNAMLEN */ -#ifdef MAXNAMELEN -#define NAME_MAX MAXNAMELEN -#else /* !MAXNAMELEN */ -#define NAME_MAX 14 -#endif /* !MAXNAMELEN */ -#endif /* !MAXNAMLEN */ -#endif /* !NAME_MAX */ - -long dir_name_max(dir) - char *dir; -{ - return NAME_MAX; -} - -#endif /* not _POSIX_VERSION */ |