mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
* sysdeps/unix/bsd/bsd4.4/bits/dirent.h (struct dirent): Rename member
d_fileno to d_ino. (struct dirent64): Likewise. (d_fileno): Define as macro.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2001-08-05 Roland McGrath <roland@frob.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/bsd/bsd4.4/bits/dirent.h (struct dirent): Rename member
|
||||||
|
d_fileno to d_ino.
|
||||||
|
(struct dirent64): Likewise.
|
||||||
|
(d_fileno): Define as macro.
|
||||||
|
|
||||||
2001-08-04 Roland McGrath <roland@frob.com>
|
2001-08-04 Roland McGrath <roland@frob.com>
|
||||||
|
|
||||||
* sysdeps/mach/hurd/getrusage.c: Use TASK_EVENTS_INFO if implemented
|
* sysdeps/mach/hurd/getrusage.c: Use TASK_EVENTS_INFO if implemented
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Directory entry structure `struct dirent'. 4.4BSD version.
|
/* Directory entry structure `struct dirent'. 4.4BSD version.
|
||||||
Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
|
Copyright (C) 1996,97,98,2001 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -24,9 +24,9 @@
|
|||||||
struct dirent
|
struct dirent
|
||||||
{
|
{
|
||||||
#ifndef __USE_FILE_OFFSET64
|
#ifndef __USE_FILE_OFFSET64
|
||||||
__ino_t d_fileno; /* File serial number. */
|
__ino_t d_ino; /* File serial number. */
|
||||||
#else
|
#else
|
||||||
__ino64_t d_fileno;
|
__ino64_t d_ino;
|
||||||
#endif
|
#endif
|
||||||
unsigned short int d_reclen; /* Length of the whole `struct dirent'. */
|
unsigned short int d_reclen; /* Length of the whole `struct dirent'. */
|
||||||
unsigned char d_type; /* File type, possibly unknown. */
|
unsigned char d_type; /* File type, possibly unknown. */
|
||||||
@ -39,7 +39,7 @@ struct dirent
|
|||||||
#ifdef __USE_LARGEFILE64
|
#ifdef __USE_LARGEFILE64
|
||||||
struct dirent64
|
struct dirent64
|
||||||
{
|
{
|
||||||
__ino64_t d_fileno;
|
__ino64_t d_ino;
|
||||||
unsigned short int d_reclen;
|
unsigned short int d_reclen;
|
||||||
unsigned char d_type;
|
unsigned char d_type;
|
||||||
unsigned char d_namlen;
|
unsigned char d_namlen;
|
||||||
@ -48,6 +48,8 @@ struct dirent64
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define d_fileno d_ino /* Backwards compatibility. */
|
||||||
|
|
||||||
#define _DIRENT_HAVE_D_RECLEN 1
|
#define _DIRENT_HAVE_D_RECLEN 1
|
||||||
#define _DIRENT_HAVE_D_NAMLEN 1
|
#define _DIRENT_HAVE_D_NAMLEN 1
|
||||||
#define _DIRENT_HAVE_D_TYPE 1
|
#define _DIRENT_HAVE_D_TYPE 1
|
||||||
|
Reference in New Issue
Block a user