aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/i386/readdir64_r.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2010-04-03 23:51:40 -0700
committerUlrich Drepper <drepper@redhat.com>2010-04-03 23:51:40 -0700
commit1a81139728494810f65aaa0d0c538ff8c2783dd5 (patch)
treef22dff8150b303bbb6f0d999a81c0fd9c539ab04 /sysdeps/unix/sysv/linux/i386/readdir64_r.c
parent3fedf0feb75457f7098a0119ca4203ff449546b6 (diff)
downloadglibc-1a81139728494810f65aaa0d0c538ff8c2783dd5.tar
glibc-1a81139728494810f65aaa0d0c538ff8c2783dd5.tar.gz
glibc-1a81139728494810f65aaa0d0c538ff8c2783dd5.tar.bz2
glibc-1a81139728494810f65aaa0d0c538ff8c2783dd5.zip
Handle unnecessary padding in getdents64.
The getdents64 syscall adds on 32-but platforms padding which isn't needed and not included in the userlevel data structure definition. We have to avoid copying those padding bytes in the readdir64_r function.
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/readdir64_r.c')
-rw-r--r--sysdeps/unix/sysv/linux/i386/readdir64_r.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/readdir64_r.c b/sysdeps/unix/sysv/linux/i386/readdir64_r.c
index c6da57b75e..f96f16a6f2 100644
--- a/sysdeps/unix/sysv/linux/i386/readdir64_r.c
+++ b/sysdeps/unix/sysv/linux/i386/readdir64_r.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2004, 2010 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -19,6 +19,7 @@
#define __READDIR_R __readdir64_r
#define __GETDENTS __getdents64
#define DIRENT_TYPE struct dirent64
+#define GETDENTS_64BIT_ALIGNED 1
#include <sysdeps/unix/readdir_r.c>