[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r1076 - in trunk/glibc-2.3-head/sysdeps/kfreebsd: . alpha i386 x86_64



Author: ps-guest
Date: 2006-01-19 14:33:56 +0000 (Thu, 19 Jan 2006)
New Revision: 1076

Added:
   trunk/glibc-2.3-head/sysdeps/kfreebsd/syscalls-inline.h
Modified:
   trunk/glibc-2.3-head/sysdeps/kfreebsd/alpha/sysdep.h
   trunk/glibc-2.3-head/sysdeps/kfreebsd/brk.c
   trunk/glibc-2.3-head/sysdeps/kfreebsd/clock_getres.c
   trunk/glibc-2.3-head/sysdeps/kfreebsd/clock_gettime.c
   trunk/glibc-2.3-head/sysdeps/kfreebsd/clock_settime.c
   trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/sysdep.h
   trunk/glibc-2.3-head/sysdeps/kfreebsd/open.c
   trunk/glibc-2.3-head/sysdeps/kfreebsd/semctl.c
   trunk/glibc-2.3-head/sysdeps/kfreebsd/uname.c
   trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/sysdep.h
Log:
use prototypes for used "inline syscalls"



Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/alpha/sysdep.h
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/alpha/sysdep.h	2006-01-19 14:33:15 UTC (rev 1075)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/alpha/sysdep.h	2006-01-19 14:33:56 UTC (rev 1076)
@@ -21,6 +21,8 @@
 
 #ifdef __ASSEMBLER__
 #include <machine/pal.h>		/* get PAL_callsys */
+#else
+#include <syscalls-inline.h>
 #endif
 
 #include <sysdeps/unix/alpha/sysdep.h>

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/brk.c
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/brk.c	2006-01-19 14:33:15 UTC (rev 1075)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/brk.c	2006-01-19 14:33:56 UTC (rev 1076)
@@ -48,7 +48,4 @@
   __curbrk = addr;
   return 0;
 }
-stub_warning (brk)
-
 weak_alias (__brk, brk)
-#include <stub-tag.h>

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/clock_getres.c
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/clock_getres.c	2006-01-19 14:33:15 UTC (rev 1075)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/clock_getres.c	2006-01-19 14:33:56 UTC (rev 1076)
@@ -18,6 +18,8 @@
 
 #include <sysdep.h>
 
+int __syscall_clock_getres(clockid_t clock_id, struct timespec *tp);
+
 # define SYSDEP_GETRES \
   case CLOCK_REALTIME:							      \
   case CLOCK_MONOTONIC:							      \

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/clock_gettime.c
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/clock_gettime.c	2006-01-19 14:33:15 UTC (rev 1075)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/clock_gettime.c	2006-01-19 14:33:56 UTC (rev 1076)
@@ -18,6 +18,8 @@
 
 #include <sysdep.h>
 
+int __syscall_clock_gettime(clockid_t clock_id, struct timespec *tp);
+
 # define SYSDEP_GETTIME \
   case CLOCK_REALTIME:							      \
   case CLOCK_MONOTONIC:							      \

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/clock_settime.c
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/clock_settime.c	2006-01-19 14:33:15 UTC (rev 1075)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/clock_settime.c	2006-01-19 14:33:56 UTC (rev 1076)
@@ -18,6 +18,8 @@
 
 #include <sysdep.h>
 
+int __syscall_clock_settime(clockid_t clock_id, const struct timespec *tp);
+
 # define SYSDEP_SETTIME \
   case CLOCK_REALTIME:							      \
     retval = INLINE_SYSCALL (clock_settime, 2, clock_id, tp);		      \

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/sysdep.h
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/sysdep.h	2006-01-19 14:33:15 UTC (rev 1075)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/sysdep.h	2006-01-19 14:33:56 UTC (rev 1076)
@@ -192,6 +192,8 @@
 
 #else	/* !__ASSEMBLER__ */
 
+#include <syscalls-inline.h>
+
 /* Consistency check for position-independent code.  */
 #ifdef __PIC__
 # define check_consistency()						      \

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/open.c
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/open.c	2006-01-19 14:33:15 UTC (rev 1075)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/open.c	2006-01-19 14:33:56 UTC (rev 1076)
@@ -25,7 +25,6 @@
 #include <sys/time.h>
 #include <sysdep-cancel.h>
 
-extern int __syscall_open (const char *file, int oflag, int mode);
 extern int __futimes (int fd, const struct timeval tvp[2]);
 
 int

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/semctl.c
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/semctl.c	2006-01-19 14:33:15 UTC (rev 1075)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/semctl.c	2006-01-19 14:33:56 UTC (rev 1076)
@@ -48,6 +48,7 @@
 #include <sys/syscall.h>
 #include <stdarg.h> /* va_list */
 #include <stdlib.h> /* NULL */
+#include <unistd.h>
 
 /* union semun from FreeBSD <sys/sem.h> */
 /*

Added: trunk/glibc-2.3-head/sysdeps/kfreebsd/syscalls-inline.h
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/syscalls-inline.h	2006-01-19 14:33:15 UTC (rev 1075)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/syscalls-inline.h	2006-01-19 14:33:56 UTC (rev 1076)
@@ -0,0 +1,39 @@
+/* prototypes of generally used "inline syscalls"
+   Copyright (C) 2006 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
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
+
+#ifndef KFREEBSD_INLINE_SYSCALLS_H
+#define KFREEBSD_INLINE_SYSCALLS_H
+
+#include <sys/types.h>
+
+struct iovec;
+struct rusage;
+
+int __syscall_open(const char *path, int flags, ...);
+int __syscall_close(int fd);
+
+ssize_t __syscall_read(int fd, void *buf, size_t nbyte);
+ssize_t __syscall_write(int fd, const void *buf, size_t nbyte);
+ssize_t __syscall_writev(int fd, const struct iovec *iovp, int iovcnt); 
+
+int __syscall_fcntl(int fd, int cmd, ...);
+int __syscall_fork(void);
+int __syscall_wait4(int pid, int *status, int options, struct rusage *rusage);
+
+#endif

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/uname.c
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/uname.c	2006-01-19 14:33:15 UTC (rev 1075)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/uname.c	2006-01-19 14:33:56 UTC (rev 1076)
@@ -20,6 +20,7 @@
 #include <sys/syscall.h>
 #include <sys/utsname.h>
 #include <string.h>
+#include <unistd.h>
 
 #define SYSNAME		"GNU/kFreeBSD"
 #define SYSNAME_LEN	13

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/sysdep.h
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/sysdep.h	2006-01-19 14:33:15 UTC (rev 1075)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/sysdep.h	2006-01-19 14:33:56 UTC (rev 1076)
@@ -184,6 +184,10 @@
 #define DOARGS_7 DOARGS_6
 #define DOARGS_8 DOARGS_7
 
+#else   /* !__ASSEMBLER__ */
+
+#include <syscalls-inline.h>
+
 #endif	/* __ASSEMBLER__ */
 
 #endif /* _KFREEBSD_X86_64_SYSDEP_H  */



Reply to: