get rid of leftover _DIRENT_NAME_LEN=61

This commit is contained in:
Ben Gras 2011-09-01 16:27:28 +00:00
parent a7590083f1
commit 86b5fa5102
4 changed files with 2 additions and 9 deletions

View file

@ -43,7 +43,7 @@
#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

View file

@ -575,7 +575,7 @@ char **argv;
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;

View file

@ -46,8 +46,6 @@ typedef struct {
*/
} 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 */

View file

@ -21,11 +21,6 @@ struct dirent { /* Largest entry (8 slots) */
#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