get rid of leftover _DIRENT_NAME_LEN=61
This commit is contained in:
parent
a7590083f1
commit
86b5fa5102
4 changed files with 2 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue