summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/syscalls.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-01-24 11:52:51 +0000
committerEric Andersen <andersen@codepoet.org>2003-01-24 11:52:51 +0000
commit14c6293257eae377415d84ede9d118988e6474ce (patch)
tree5f3da9ed51470e4200c4fa12f368ff524dfcb0ff /libc/sysdeps/linux/common/syscalls.c
parent85800279bcad0b3495ccc22374f42cd04675f9e4 (diff)
I thought it would be smaller to inline since these funcs are small.
Well, not inlining saves 300 bytes, so do that instead. -Erik
Diffstat (limited to 'libc/sysdeps/linux/common/syscalls.c')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 867635856..620ee96e7 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -970,8 +970,7 @@ _syscall2(int, getitimer, __itimer_which_t, which, struct itimerval *, value);
#define __NR___syscall_stat __NR_stat
#include <unistd.h>
#include <sys/stat.h>
-#include <bits/kernel_stat.h>
-#include "xstatconv.c"
+#include "xstatconv.h"
_syscall2(int, __syscall_stat, const char *, file_name, struct kernel_stat *, buf);
int stat(const char * file_name, struct stat * buf)
{
@@ -994,7 +993,7 @@ weak_alias(stat, stat64);
#include <unistd.h>
#include <sys/stat.h>
#include <bits/kernel_stat.h>
-#include "xstatconv.c"
+#include "xstatconv.h"
_syscall2(int, __syscall_lstat, const char *, file_name, struct kernel_stat *, buf);
int lstat(const char * file_name, struct stat * buf)
{
@@ -1017,7 +1016,7 @@ weak_alias(lstat, lstat64);
#include <unistd.h>
#include <sys/stat.h>
#include <bits/kernel_stat.h>
-#include "xstatconv.c"
+#include "xstatconv.h"
_syscall2(int, __syscall_fstat, int, fd, struct kernel_stat *, buf);
int fstat(int fd, struct stat * buf)
{
@@ -1676,7 +1675,7 @@ int getrlimit (__rlimit_resource_t resource, struct rlimit *rlimits)
#include <unistd.h>
#include <sys/stat.h>
#include <bits/kernel_stat.h>
-#include "xstatconv.c"
+#include "xstatconv.h"
_syscall2(int, __syscall_stat64, const char *, file_name, struct kernel_stat64 *, buf);
int stat64(const char * file_name, struct stat64 * buf)
{
@@ -1698,7 +1697,7 @@ int stat64(const char * file_name, struct stat64 * buf)
#include <unistd.h>
#include <sys/stat.h>
#include <bits/kernel_stat.h>
-#include "xstatconv.c"
+#include "xstatconv.h"
_syscall2(int, __syscall_lstat64, const char *, file_name, struct kernel_stat64 *, buf);
int lstat64(const char * file_name, struct stat64 * buf)
{
@@ -1720,7 +1719,7 @@ int lstat64(const char * file_name, struct stat64 * buf)
#include <unistd.h>
#include <sys/stat.h>
#include <bits/kernel_stat.h>
-#include "xstatconv.c"
+#include "xstatconv.h"
_syscall2(int, __syscall_fstat64, int, filedes, struct kernel_stat64 *, buf);
int fstat64(int fd, struct stat64 * buf)
{