#include <stdio.h>
#include <dirent.h>
-#define NAME_SIZE _DIRENT_NAME_LEN
+#define NAME_SIZE NAME_MAX
#undef NARROW /* Width of verbose output */
#define COPY_SIZE 4096
cp++;
else
cp = ofname;
- if (strlen(cp) >= _DIRENT_NAME_LEN-3)
+ if (strlen(cp) >= NAME_MAX-3)
{
fprintf(stderr,"%s: filename too long to tack on .Z\n",cp);
continue;
*/
} DIR;
-#define _DIRENT_NAME_LEN 61
-
struct dirent { /* Largest entry (8 slots) */
ino_t d_ino; /* I-node number */
off_t d_off; /* Offset in directory */
#define d_fileno d_ino
#endif
-#define _DIRENT_NAME_LEN 61 /* Backward compatibility with Minix. */
-#if defined(_NETBSD_SOURCE)
-#define MAXNAMLEN _DIRENT_NAME_LEN
-#endif
-
/*
* The _DIRENT_ALIGN macro returns the alignment of struct dirent. It