Update.
2000-08-28 Martin Schwidefsky <schwidefsky@de.ibm.com> * shlib-versions: Add a rule for S/390 to the libm version list. * sysdeps/s390/Versions: New file. * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c. * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64. * sysdeps/unix/sysv/linux/s390/Versions: New file. * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file. * sysdeps/unix/sysv/linux/s390/chown.c: New file. * sysdeps/unix/sysv/linux/s390/fxstat.c: New file. * sysdeps/unix/sysv/linux/s390/getdents64.c: New file. * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file. * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file. * sysdeps/unix/sysv/linux/s390/lxstat.c: New file. * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file. * sysdeps/unix/sysv/linux/s390/readdir64.c: New file. * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file. * sysdeps/unix/sysv/linux/s390/scandir64.c: New file. * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file. * sysdeps/unix/sysv/linux/s390/syscalls.list: New file. * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file. * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
This commit is contained in:
parent
56c1ca9eb1
commit
ba55e591e7
23
ChangeLog
23
ChangeLog
|
@ -1,3 +1,26 @@
|
||||||
|
2000-08-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
||||||
|
|
||||||
|
* shlib-versions: Add a rule for S/390 to the libm version list.
|
||||||
|
* sysdeps/s390/Versions: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/Versions: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/chown.c: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/xstat.c: New file.
|
||||||
|
|
||||||
2000-08-28 Ulrich Drepper <drepper@redhat.com>
|
2000-08-28 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
|
* sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
libc {
|
||||||
|
GLIBC_2.0 {
|
||||||
|
# Functions from libgcc.
|
||||||
|
__divdi3; __moddi3; __udivdi3; __umoddi3;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,5 @@
|
||||||
clone.S
|
clone.S
|
||||||
|
oldgetrlimit64.c
|
||||||
setresuid.c
|
setresuid.c
|
||||||
setresgid.c
|
setresgid.c
|
||||||
setfsuid.c
|
setfsuid.c
|
||||||
|
|
|
@ -6,3 +6,7 @@ endif
|
||||||
ifeq ($(subdir),csu)
|
ifeq ($(subdir),csu)
|
||||||
CFLAGS-initfini.s += -DWEAK_GMON_START
|
CFLAGS-initfini.s += -DWEAK_GMON_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(subdir),resource)
|
||||||
|
sysdep_routines += oldgetrlimit64
|
||||||
|
endif
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
libc {
|
||||||
|
GLIBC_2.0 {
|
||||||
|
# Exception handling support functions from libgcc
|
||||||
|
__register_frame; __register_frame_table; __deregister_frame;
|
||||||
|
__register_frame_info; __deregister_frame_info; __frame_state_for;
|
||||||
|
__register_frame_info_table;
|
||||||
|
}
|
||||||
|
GLIBC_2.2 {
|
||||||
|
# functions used in other libraries
|
||||||
|
__xstat64; __fxstat64; __lxstat64;
|
||||||
|
|
||||||
|
# a*
|
||||||
|
alphasort64;
|
||||||
|
|
||||||
|
# New rlimit interface
|
||||||
|
getrlimit; setrlimit; getrlimit64;
|
||||||
|
|
||||||
|
# r*
|
||||||
|
readdir64; readdir64_r;
|
||||||
|
|
||||||
|
# s*
|
||||||
|
scandir64;
|
||||||
|
|
||||||
|
# v*
|
||||||
|
versionsort64;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
#include <sysdeps/unix/sysv/linux/i386/alphasort64.c>
|
|
@ -0,0 +1,118 @@
|
||||||
|
/* Copyright (C) 2000 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 Library General Public License as
|
||||||
|
published by the Free Software Foundation; either version 2 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
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||||
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include <sysdep.h>
|
||||||
|
#include <sys/syscall.h>
|
||||||
|
#include <shlib-compat.h>
|
||||||
|
#include <bp-checks.h>
|
||||||
|
|
||||||
|
#include <linux/posix_types.h>
|
||||||
|
#include "kernel-features.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
In Linux 2.1.x the chown functions have been changed. A new function lchown
|
||||||
|
was introduced. The new chown now follows symlinks - the old chown and the
|
||||||
|
new lchown do not follow symlinks.
|
||||||
|
The new lchown function has the same number as the old chown had and the
|
||||||
|
new chown has a new number. When compiling with headers from Linux > 2.1.8x
|
||||||
|
it's impossible to run this libc with older kernels. In these cases libc
|
||||||
|
has therefore to route calls to chown to the old chown function.
|
||||||
|
*/
|
||||||
|
|
||||||
|
extern int __syscall_chown (const char *__file,
|
||||||
|
__kernel_uid_t __owner, __kernel_gid_t __group);
|
||||||
|
|
||||||
|
/* Running under Linux > 2.1.80. */
|
||||||
|
|
||||||
|
#ifdef __NR_chown32
|
||||||
|
extern int __syscall_chown32 (const char *__file,
|
||||||
|
__kernel_uid32_t owner, __kernel_gid32_t group);
|
||||||
|
# if __ASSUME_32BITUIDS == 0
|
||||||
|
/* This variable is shared with all files that need to check for 32bit
|
||||||
|
uids. */
|
||||||
|
extern int __libc_missing_32bit_uids;
|
||||||
|
# endif
|
||||||
|
#endif /* __NR_chown32 */
|
||||||
|
|
||||||
|
int
|
||||||
|
__real_chown (const char *file, uid_t owner, gid_t group)
|
||||||
|
{
|
||||||
|
static int __libc_old_chown;
|
||||||
|
int result;
|
||||||
|
|
||||||
|
if (!__libc_old_chown)
|
||||||
|
{
|
||||||
|
int saved_errno = errno;
|
||||||
|
#ifdef __NR_chown32
|
||||||
|
if (__libc_missing_32bit_uids <= 0)
|
||||||
|
{
|
||||||
|
int result;
|
||||||
|
int saved_errno = errno;
|
||||||
|
|
||||||
|
result = INLINE_SYSCALL (chown32, 3, CHECK_STRING (file), owner, group);
|
||||||
|
if (result == 0 || errno != ENOSYS)
|
||||||
|
return result;
|
||||||
|
|
||||||
|
__set_errno (saved_errno);
|
||||||
|
__libc_missing_32bit_uids = 1;
|
||||||
|
}
|
||||||
|
#endif /* __NR_chown32 */
|
||||||
|
if (((owner + 1) > (uid_t) ((__kernel_uid_t) -1U))
|
||||||
|
|| ((group + 1) > (gid_t) ((__kernel_gid_t) -1U)))
|
||||||
|
{
|
||||||
|
__set_errno (EINVAL);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
result = INLINE_SYSCALL (chown, 3, CHECK_STRING (file), owner, group);
|
||||||
|
|
||||||
|
if (result >= 0 || errno != ENOSYS)
|
||||||
|
return result;
|
||||||
|
|
||||||
|
__set_errno (saved_errno);
|
||||||
|
__libc_old_chown = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return __lchown (file, owner, group);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)
|
||||||
|
/* Compiling for compatibiity. */
|
||||||
|
int
|
||||||
|
__chown_is_lchown (const char *file, uid_t owner, gid_t group)
|
||||||
|
{
|
||||||
|
return __lchown (file, owner, group);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)
|
||||||
|
strong_alias (__chown_is_lchown, _chown_is_lchown)
|
||||||
|
compat_symbol (libc, __chown_is_lchown, __chown, GLIBC_2_0);
|
||||||
|
compat_symbol (libc, _chown_is_lchown, chown, GLIBC_2_0);
|
||||||
|
|
||||||
|
strong_alias (__real_chown, _real_chown)
|
||||||
|
versioned_symbol (libc, __real_chown, __chown, GLIBC_2_1);
|
||||||
|
versioned_symbol (libc, _real_chown, chown, GLIBC_2_1);
|
||||||
|
#else
|
||||||
|
strong_alias (__real_chown, __chown)
|
||||||
|
weak_alias (__real_chown, chown)
|
||||||
|
#endif
|
|
@ -0,0 +1 @@
|
||||||
|
#include <sysdeps/unix/sysv/linux/i386/fxstat.c>
|
|
@ -0,0 +1 @@
|
||||||
|
#include <sysdeps/unix/sysv/linux/i386/getdents64.c>
|
|
@ -0,0 +1 @@
|
||||||
|
#include <sysdeps/unix/sysv/linux/i386/getrlimit.c>
|
|
@ -0,0 +1 @@
|
||||||
|
#include <sysdeps/unix/sysv/linux/i386/getrlimit64.c>
|
|
@ -0,0 +1 @@
|
||||||
|
#include <sysdeps/unix/sysv/linux/i386/lxstat.c>
|
|
@ -0,0 +1 @@
|
||||||
|
#include <sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c>
|
|
@ -0,0 +1 @@
|
||||||
|
#include <sysdeps/unix/sysv/linux/i386/readdir64.c>
|
|
@ -0,0 +1 @@
|
||||||
|
#include <sysdeps/unix/sysv/linux/i386/readdir64_r.c>
|
|
@ -0,0 +1 @@
|
||||||
|
#include <sysdeps/unix/sysv/linux/i386/scandir64.c>
|
|
@ -0,0 +1 @@
|
||||||
|
#include <sysdeps/unix/sysv/linux/i386/setrlimit.c>
|
|
@ -0,0 +1,4 @@
|
||||||
|
# File name Caller Syscall name Args Strong name Weak names
|
||||||
|
|
||||||
|
oldgetrlimit EXTRA getrlimit i:ip __old_getrlimit getrlimit@GLIBC_2.0
|
||||||
|
oldsetrlimit EXTRA setrlimit i:ip __old_setrlimit setrlimit@GLIBC_2.0
|
|
@ -0,0 +1 @@
|
||||||
|
#include <sysdeps/unix/sysv/linux/i386/versionsort64.c>
|
|
@ -0,0 +1 @@
|
||||||
|
#include <sysdeps/unix/sysv/linux/i386/xstat.c>
|
Loading…
Reference in New Issue