svn commit: trunk/uClibc/libc/sysdeps/linux/common
vapier at uclibc.org
vapier at uclibc.org
Wed Jul 5 10:36:12 UTC 2006
Author: vapier
Date: 2006-07-05 03:36:11 -0700 (Wed, 05 Jul 2006)
New Revision: 15624
Log:
add support for 32bit version of fchown
Modified:
trunk/uClibc/libc/sysdeps/linux/common/fchown.c
Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/fchown.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/fchown.c 2006-07-05 10:35:49 UTC (rev 15623)
+++ trunk/uClibc/libc/sysdeps/linux/common/fchown.c 2006-07-05 10:36:11 UTC (rev 15624)
@@ -9,7 +9,16 @@
#include "syscalls.h"
#include <unistd.h>
+#include <linux/version.h>
+/* Linux 2.3.39 introduced 32bit UID/GIDs. Some platforms had 32
+ bit type all along. */
+#if LINUX_VERSION_CODE >= 131879
+
+_syscall3(int, fchown, int, fd, uid_t, owner, gid_t, group);
+
+#else
+
#define __NR___syscall_fchown __NR_fchown
static inline _syscall3(int, __syscall_fchown, int, fd,
__kernel_uid_t, owner, __kernel_gid_t, group);
@@ -23,3 +32,5 @@
}
return (__syscall_fchown(fd, owner, group));
}
+
+#endif
More information about the uClibc-cvs
mailing list