[Glibc-bsd-commits] r4727 - in trunk/glibc-ports/kfreebsd: . fbtl

Petr Salinger ps-guest at alioth.debian.org
Wed Jul 10 05:37:10 UTC 2013


Author: ps-guest
Date: 2013-07-10 05:37:09 +0000 (Wed, 10 Jul 2013)
New Revision: 4727

Modified:
   trunk/glibc-ports/kfreebsd/aio_sigqueue.c
   trunk/glibc-ports/kfreebsd/fbtl/Makefile
   trunk/glibc-ports/kfreebsd/fbtl/Versions
   trunk/glibc-ports/kfreebsd/gai_sigqueue.c
   trunk/glibc-ports/kfreebsd/grantpt.c
   trunk/glibc-ports/kfreebsd/syscalls.list
Log:
reduce PLTs



Modified: trunk/glibc-ports/kfreebsd/aio_sigqueue.c
===================================================================
--- trunk/glibc-ports/kfreebsd/aio_sigqueue.c	2013-07-09 22:13:30 UTC (rev 4726)
+++ trunk/glibc-ports/kfreebsd/aio_sigqueue.c	2013-07-10 05:37:09 UTC (rev 4727)
@@ -32,5 +32,9 @@
      const union sigval val;
      pid_t caller_pid;
 {
+#ifdef NOT_IN_libc
     return sigqueue(caller_pid, sig, val);
+#else
+    return __sigqueue(caller_pid, sig, val);
+#endif    
 }

Modified: trunk/glibc-ports/kfreebsd/fbtl/Makefile
===================================================================
--- trunk/glibc-ports/kfreebsd/fbtl/Makefile	2013-07-09 22:13:30 UTC (rev 4726)
+++ trunk/glibc-ports/kfreebsd/fbtl/Makefile	2013-07-10 05:37:09 UTC (rev 4727)
@@ -43,6 +43,9 @@
 libpthread-routines += ptw-sys_thr_self
 libpthread-routines += ptw-sys_thr_set_name
 libpthread-routines += ptw-sys_thr_exit
+libpthread-routines += ptw-exit-thread
+libpthread-routines += ptw-sigprocmask
+libpthread-routines += ptw-ioctl
 endif
 
 ifeq ($(subdir),posix)

Modified: trunk/glibc-ports/kfreebsd/fbtl/Versions
===================================================================
--- trunk/glibc-ports/kfreebsd/fbtl/Versions	2013-07-09 22:13:30 UTC (rev 4726)
+++ trunk/glibc-ports/kfreebsd/fbtl/Versions	2013-07-10 05:37:09 UTC (rev 4727)
@@ -7,12 +7,9 @@
     __libc_current_sigrtmin_private; __libc_current_sigrtmax_private;
     __libc_allocate_rtsig_private;
 # needed by pthread library
-    __exit_thread;
     __syscall_sigprocmask;
     __syscall_sigwaitinfo;
-    __sigprocmask;
     __syscall_sigsuspend;
-    __ioctl;
     __syscall_sigaction;
     __syscall__umtx_op;
   }

Modified: trunk/glibc-ports/kfreebsd/gai_sigqueue.c
===================================================================
--- trunk/glibc-ports/kfreebsd/gai_sigqueue.c	2013-07-09 22:13:30 UTC (rev 4726)
+++ trunk/glibc-ports/kfreebsd/gai_sigqueue.c	2013-07-10 05:37:09 UTC (rev 4727)
@@ -32,5 +32,9 @@
      const union sigval val;
      pid_t caller_pid;
 {
+#ifdef NOT_IN_libc
     return sigqueue(caller_pid, sig, val);
+#else
+    return __sigqueue(caller_pid, sig, val);
+#endif    
 }

Modified: trunk/glibc-ports/kfreebsd/grantpt.c
===================================================================
--- trunk/glibc-ports/kfreebsd/grantpt.c	2013-07-09 22:13:30 UTC (rev 4726)
+++ trunk/glibc-ports/kfreebsd/grantpt.c	2013-07-10 05:37:09 UTC (rev 4727)
@@ -11,6 +11,8 @@
 
 #include "pty-private.h"
 
+int __syscall_closefrom(int fd);
+libc_hidden_proto (__syscall_closefrom)
 
 /* Close all file descriptors except the one specified.  */
 static void
@@ -21,7 +23,7 @@
     for (i = 0 ; i < PTY_FILENO; i++)
         close_not_cancel_no_status (i);
         
-    syscall(SYS_closefrom, PTY_FILENO + 1L);
+    INLINE_SYSCALL(closefrom, 1, PTY_FILENO + 1L);
 
     int nullfd = open_not_cancel_2 (_PATH_DEVNULL, O_RDONLY);
     assert (nullfd == STDIN_FILENO);

Modified: trunk/glibc-ports/kfreebsd/syscalls.list
===================================================================
--- trunk/glibc-ports/kfreebsd/syscalls.list	2013-07-09 22:13:30 UTC (rev 4726)
+++ trunk/glibc-ports/kfreebsd/syscalls.list	2013-07-10 05:37:09 UTC (rev 4727)
@@ -20,6 +20,7 @@
 sys_clock_gettime	-	clock_gettime		i:ip		__syscall_clock_gettime
 sys_clock_settime	-	clock_settime		i:ip		__syscall_clock_settime
 sys_close		-	close			i:i		__syscall_close
+sys_closefrom		EXTRA	closefrom		i:i		__syscall_closefrom
 sys_connect		-	connect			i:ipi		__syscall_connect
 sys_cpuset_getaffinity	-	cpuset_getaffinity	i:iiiip		__syscall_cpuset_getaffinity
 sys_cpuset_setaffinity	-	cpuset_setaffinity	i:iiiip		__syscall_cpuset_setaffinity




More information about the Glibc-bsd-commits mailing list