[Glibc-bsd-commits] r2608 - in trunk/glibc-ports/kfreebsd: . i386
Petr Salinger
ps-guest at alioth.debian.org
Thu Jun 25 20:53:28 UTC 2009
Author: ps-guest
Date: 2009-06-25 20:53:26 +0000 (Thu, 25 Jun 2009)
New Revision: 2608
Modified:
trunk/glibc-ports/kfreebsd/faccessat.c
trunk/glibc-ports/kfreebsd/fchmodat.c
trunk/glibc-ports/kfreebsd/fchownat.c
trunk/glibc-ports/kfreebsd/fexecve.c
trunk/glibc-ports/kfreebsd/futimesat.c
trunk/glibc-ports/kfreebsd/fxstatat.c
trunk/glibc-ports/kfreebsd/fxstatat64.c
trunk/glibc-ports/kfreebsd/i386/iopl.c
trunk/glibc-ports/kfreebsd/linkat.c
trunk/glibc-ports/kfreebsd/mkdirat.c
trunk/glibc-ports/kfreebsd/openat.c
trunk/glibc-ports/kfreebsd/readlinkat.c
trunk/glibc-ports/kfreebsd/readonly-area.c
trunk/glibc-ports/kfreebsd/renameat.c
trunk/glibc-ports/kfreebsd/symlinkat.c
trunk/glibc-ports/kfreebsd/unlinkat.c
trunk/glibc-ports/kfreebsd/xmknodat.c
Log:
* use internal entry points to avoid PLT lookups
Modified: trunk/glibc-ports/kfreebsd/faccessat.c
===================================================================
--- trunk/glibc-ports/kfreebsd/faccessat.c 2009-06-25 10:59:45 UTC (rev 2607)
+++ trunk/glibc-ports/kfreebsd/faccessat.c 2009-06-25 20:53:26 UTC (rev 2608)
@@ -81,14 +81,14 @@
mib[2] = KERN_PROC_FILEDESC;
mib[3] = __getpid ();
- if (sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
}
kf_buf = alloca (kf_len + strlen (file));
- if (sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
Modified: trunk/glibc-ports/kfreebsd/fchmodat.c
===================================================================
--- trunk/glibc-ports/kfreebsd/fchmodat.c 2009-06-25 10:59:45 UTC (rev 2607)
+++ trunk/glibc-ports/kfreebsd/fchmodat.c 2009-06-25 20:53:26 UTC (rev 2608)
@@ -80,14 +80,14 @@
mib[2] = KERN_PROC_FILEDESC;
mib[3] = __getpid ();
- if (sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
}
kf_buf = alloca (kf_len + strlen (file));
- if (sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
Modified: trunk/glibc-ports/kfreebsd/fchownat.c
===================================================================
--- trunk/glibc-ports/kfreebsd/fchownat.c 2009-06-25 10:59:45 UTC (rev 2607)
+++ trunk/glibc-ports/kfreebsd/fchownat.c 2009-06-25 20:53:26 UTC (rev 2608)
@@ -79,14 +79,14 @@
mib[2] = KERN_PROC_FILEDESC;
mib[3] = __getpid ();
- if (sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
}
kf_buf = alloca (kf_len + strlen (file));
- if (sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
Modified: trunk/glibc-ports/kfreebsd/fexecve.c
===================================================================
--- trunk/glibc-ports/kfreebsd/fexecve.c 2009-06-25 10:59:45 UTC (rev 2607)
+++ trunk/glibc-ports/kfreebsd/fexecve.c 2009-06-25 20:53:26 UTC (rev 2608)
@@ -69,14 +69,14 @@
mib[2] = KERN_PROC_FILEDESC;
mib[3] = __getpid ();
- if (sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
}
kf_buf = alloca (kf_len);
- if (sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
Modified: trunk/glibc-ports/kfreebsd/futimesat.c
===================================================================
--- trunk/glibc-ports/kfreebsd/futimesat.c 2009-06-25 10:59:45 UTC (rev 2607)
+++ trunk/glibc-ports/kfreebsd/futimesat.c 2009-06-25 20:53:26 UTC (rev 2608)
@@ -77,7 +77,7 @@
mib[2] = KERN_PROC_FILEDESC;
mib[3] = __getpid ();
- if (sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
@@ -88,7 +88,7 @@
else
kf_buf = alloca (kf_len + strlen (file));
- if (sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
Modified: trunk/glibc-ports/kfreebsd/fxstatat.c
===================================================================
--- trunk/glibc-ports/kfreebsd/fxstatat.c 2009-06-25 10:59:45 UTC (rev 2607)
+++ trunk/glibc-ports/kfreebsd/fxstatat.c 2009-06-25 20:53:26 UTC (rev 2608)
@@ -98,14 +98,14 @@
mib[2] = KERN_PROC_FILEDESC;
mib[3] = __getpid ();
- if (sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
}
kf_buf = alloca (kf_len + strlen (file));
- if (sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
Modified: trunk/glibc-ports/kfreebsd/fxstatat64.c
===================================================================
--- trunk/glibc-ports/kfreebsd/fxstatat64.c 2009-06-25 10:59:45 UTC (rev 2607)
+++ trunk/glibc-ports/kfreebsd/fxstatat64.c 2009-06-25 20:53:26 UTC (rev 2608)
@@ -92,14 +92,14 @@
mib[2] = KERN_PROC_FILEDESC;
mib[3] = __getpid ();
- if (sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
}
kf_buf = alloca (kf_len + strlen (file));
- if (sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
Modified: trunk/glibc-ports/kfreebsd/i386/iopl.c
===================================================================
--- trunk/glibc-ports/kfreebsd/i386/iopl.c 2009-06-25 10:59:45 UTC (rev 2607)
+++ trunk/glibc-ports/kfreebsd/i386/iopl.c 2009-06-25 20:53:26 UTC (rev 2608)
@@ -32,7 +32,7 @@
if (__iopl_fd != -1)
return 0;
- __iopl_fd = open ("/dev/io", O_RDWR);
+ __iopl_fd = __open ("/dev/io", O_RDWR);
if (__iopl_fd == -1)
{
if (errno == EACCES)
@@ -43,7 +43,7 @@
case 0:
if (__iopl_fd != -1)
- if (close (__iopl_fd) == -1)
+ if (__close (__iopl_fd) == -1)
return 1;
return 0;
Modified: trunk/glibc-ports/kfreebsd/linkat.c
===================================================================
--- trunk/glibc-ports/kfreebsd/linkat.c 2009-06-25 10:59:45 UTC (rev 2607)
+++ trunk/glibc-ports/kfreebsd/linkat.c 2009-06-25 20:53:26 UTC (rev 2608)
@@ -82,14 +82,14 @@
mib[2] = KERN_PROC_FILEDESC;
mib[3] = __getpid ();
- if (sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
}
kf_buf = alloca (kf_len);
- if (sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
Modified: trunk/glibc-ports/kfreebsd/mkdirat.c
===================================================================
--- trunk/glibc-ports/kfreebsd/mkdirat.c 2009-06-25 10:59:45 UTC (rev 2607)
+++ trunk/glibc-ports/kfreebsd/mkdirat.c 2009-06-25 20:53:26 UTC (rev 2608)
@@ -71,14 +71,14 @@
mib[2] = KERN_PROC_FILEDESC;
mib[3] = __getpid ();
- if (sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
}
kf_buf = alloca (kf_len + strlen (file));
- if (sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
Modified: trunk/glibc-ports/kfreebsd/openat.c
===================================================================
--- trunk/glibc-ports/kfreebsd/openat.c 2009-06-25 10:59:45 UTC (rev 2607)
+++ trunk/glibc-ports/kfreebsd/openat.c 2009-06-25 20:53:26 UTC (rev 2608)
@@ -79,14 +79,14 @@
mib[2] = KERN_PROC_FILEDESC;
mib[3] = __getpid ();
- if (sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
}
kf_buf = alloca (kf_len + strlen (file));
- if (sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
@@ -187,14 +187,14 @@
mib[2] = KERN_PROC_FILEDESC;
mib[3] = __getpid ();
- if (sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
}
kf_buf = alloca (kf_len + strlen (file));
- if (sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
Modified: trunk/glibc-ports/kfreebsd/readlinkat.c
===================================================================
--- trunk/glibc-ports/kfreebsd/readlinkat.c 2009-06-25 10:59:45 UTC (rev 2607)
+++ trunk/glibc-ports/kfreebsd/readlinkat.c 2009-06-25 20:53:26 UTC (rev 2608)
@@ -73,14 +73,14 @@
mib[2] = KERN_PROC_FILEDESC;
mib[3] = __getpid ();
- if (sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
}
kf_buf = alloca (kf_len + strlen (path));
- if (sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
Modified: trunk/glibc-ports/kfreebsd/readonly-area.c
===================================================================
--- trunk/glibc-ports/kfreebsd/readonly-area.c 2009-06-25 10:59:45 UTC (rev 2607)
+++ trunk/glibc-ports/kfreebsd/readonly-area.c 2009-06-25 20:53:26 UTC (rev 2608)
@@ -44,14 +44,14 @@
mib[2] = KERN_PROC_VMMAP;
mib[3] = __getpid ();
- if (sysctl (mib, 4, NULL, &kve_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, NULL, &kve_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return 1;
}
kve_buf = alloca (kve_len);
- if (sysctl (mib, 4, kve_buf, &kve_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, kve_buf, &kve_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return 1;
Modified: trunk/glibc-ports/kfreebsd/renameat.c
===================================================================
--- trunk/glibc-ports/kfreebsd/renameat.c 2009-06-25 10:59:45 UTC (rev 2607)
+++ trunk/glibc-ports/kfreebsd/renameat.c 2009-06-25 20:53:26 UTC (rev 2608)
@@ -72,14 +72,14 @@
mib[2] = KERN_PROC_FILEDESC;
mib[3] = __getpid ();
- if (sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
}
kf_buf = alloca (kf_len);
- if (sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
@@ -156,6 +156,6 @@
}
}
- return rename (old, new);
+ return __rename (old, new);
#endif
}
Modified: trunk/glibc-ports/kfreebsd/symlinkat.c
===================================================================
--- trunk/glibc-ports/kfreebsd/symlinkat.c 2009-06-25 10:59:45 UTC (rev 2607)
+++ trunk/glibc-ports/kfreebsd/symlinkat.c 2009-06-25 20:53:26 UTC (rev 2608)
@@ -71,14 +71,14 @@
mib[2] = KERN_PROC_FILEDESC;
mib[3] = __getpid ();
- if (sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
}
kf_buf = alloca (kf_len + strlen (to));
- if (sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
Modified: trunk/glibc-ports/kfreebsd/unlinkat.c
===================================================================
--- trunk/glibc-ports/kfreebsd/unlinkat.c 2009-06-25 10:59:45 UTC (rev 2607)
+++ trunk/glibc-ports/kfreebsd/unlinkat.c 2009-06-25 20:53:26 UTC (rev 2608)
@@ -76,14 +76,14 @@
mib[2] = KERN_PROC_FILEDESC;
mib[3] = __getpid ();
- if (sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
}
kf_buf = alloca (kf_len + strlen (file));
- if (sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
Modified: trunk/glibc-ports/kfreebsd/xmknodat.c
===================================================================
--- trunk/glibc-ports/kfreebsd/xmknodat.c 2009-06-25 10:59:45 UTC (rev 2607)
+++ trunk/glibc-ports/kfreebsd/xmknodat.c 2009-06-25 20:53:26 UTC (rev 2608)
@@ -88,14 +88,14 @@
mib[2] = KERN_PROC_FILEDESC;
mib[3] = __getpid ();
- if (sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, NULL, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
}
kf_buf = alloca (kf_len + strlen (file));
- if (sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
+ if (__sysctl (mib, 4, kf_buf, &kf_len, NULL, 0) != 0)
{
__set_errno (ENOSYS);
return -1;
More information about the Glibc-bsd-commits
mailing list