mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Update.
2000-09-13 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2000-09-13 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/getdents.c: Pretty print.
|
||||||
|
|
||||||
2000-09-01 Jes Sorensen <jes@linuxcare.com>
|
2000-09-01 Jes Sorensen <jes@linuxcare.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
|
* sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -66,7 +67,7 @@ struct kernel_dirent
|
|||||||
|
|
||||||
struct kernel_dirent64
|
struct kernel_dirent64
|
||||||
{
|
{
|
||||||
u_int64_t d_ino;
|
uint64_t d_ino;
|
||||||
int64_t d_off;
|
int64_t d_off;
|
||||||
unsigned short int d_reclen;
|
unsigned short int d_reclen;
|
||||||
unsigned char d_type;
|
unsigned char d_type;
|
||||||
@ -146,7 +147,7 @@ __GETDENTS (int fd, char *buf, size_t nbytes)
|
|||||||
size_t old_reclen = kdp->d_reclen;
|
size_t old_reclen = kdp->d_reclen;
|
||||||
size_t new_reclen = ((old_reclen - size_diff + alignment - 1)
|
size_t new_reclen = ((old_reclen - size_diff + alignment - 1)
|
||||||
& ~(alignment - 1));
|
& ~(alignment - 1));
|
||||||
u_int64_t d_ino = kdp->d_ino;
|
uint64_t d_ino = kdp->d_ino;
|
||||||
int64_t d_off = kdp->d_off;
|
int64_t d_off = kdp->d_off;
|
||||||
unsigned char d_type = kdp->d_type;
|
unsigned char d_type = kdp->d_type;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user