1 diff -urN libc.orig/sysdeps/unix/sysv/linux/alpha/setregid.c libc/sysdeps/unix/sysv/linux/alpha/setregid.c
2 --- libc.orig/sysdeps/unix/sysv/linux/alpha/setregid.c 1970-01-01 00:00:00.000000000 +0000
3 +++ libc/sysdeps/unix/sysv/linux/alpha/setregid.c 2004-10-30 12:35:20.000000000 +0000
5 +/* Copyright (C) 1998, 2000, 2003, 2004 Free Software Foundation, Inc.
6 + This file is part of the GNU C Library.
8 + The GNU C Library is free software; you can redistribute it and/or
9 + modify it under the terms of the GNU Lesser General Public
10 + License as published by the Free Software Foundation; either
11 + version 2.1 of the License, or (at your option) any later version.
13 + The GNU C Library is distributed in the hope that it will be useful,
14 + but WITHOUT ANY WARRANTY; without even the implied warranty of
15 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 + Lesser General Public License for more details.
18 + You should have received a copy of the GNU Lesser General Public
19 + License along with the GNU C Library; if not, write to the Free
20 + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
25 +#include <sys/types.h>
28 +#include <sys/syscall.h>
30 +#include <linux/posix_types.h>
31 +#include "kernel-features.h"
32 +#include <pthread-functions.h>
36 +__setregid (gid_t rgid, gid_t egid)
40 + result = INLINE_SYSCALL (setregid, 2, (signed int)rgid, (signed int)egid);
42 +#if defined HAVE_PTR__NPTL_SETXID && !defined SINGLE_THREAD
43 + if (result == 0 && __libc_pthread_functions.ptr__nptl_setxid != NULL)
45 + struct xid_command cmd;
46 + cmd.syscall_no = __NR_setregid;
49 + __libc_pthread_functions.ptr__nptl_setxid (&cmd);
56 +weak_alias (__setregid, setregid)
58 diff -urN libc.orig/sysdeps/unix/sysv/linux/alpha/setresgid.c libc/sysdeps/unix/sysv/linux/alpha/setresgid.c
59 --- libc.orig/sysdeps/unix/sysv/linux/alpha/setresgid.c 1970-01-01 00:00:00.000000000 +0000
60 +++ libc/sysdeps/unix/sysv/linux/alpha/setresgid.c 2004-10-30 12:35:34.000000000 +0000
62 +/* Copyright (C) 1998, 2000, 2003, 2004 Free Software Foundation, Inc.
63 + This file is part of the GNU C Library.
65 + The GNU C Library is free software; you can redistribute it and/or
66 + modify it under the terms of the GNU Lesser General Public
67 + License as published by the Free Software Foundation; either
68 + version 2.1 of the License, or (at your option) any later version.
70 + The GNU C Library is distributed in the hope that it will be useful,
71 + but WITHOUT ANY WARRANTY; without even the implied warranty of
72 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
73 + Lesser General Public License for more details.
75 + You should have received a copy of the GNU Lesser General Public
76 + License along with the GNU C Library; if not, write to the Free
77 + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
82 +#include <sys/types.h>
85 +#include <sys/syscall.h>
87 +#include <linux/posix_types.h>
88 +#include "kernel-features.h"
89 +#include <pthread-functions.h>
93 +__setresgid (gid_t rgid, gid_t egid, gid_t sgid)
97 + result = INLINE_SYSCALL (setresgid, 3, (signed int)rgid, (signed int)egid, (signed int)sgid);
99 +#if defined HAVE_PTR__NPTL_SETXID && !defined SINGLE_THREAD
100 + if (result == 0 && __libc_pthread_functions.ptr__nptl_setxid != NULL)
102 + struct xid_command cmd;
103 + cmd.syscall_no = __NR_setresgid;
107 + __libc_pthread_functions.ptr__nptl_setxid (&cmd);
113 +libc_hidden_def (__setresgid)
115 +weak_alias (__setresgid, setresgid)
117 diff -urN libc.orig/sysdeps/unix/sysv/linux/alpha/setresuid.c libc/sysdeps/unix/sysv/linux/alpha/setresuid.c
118 --- libc.orig/sysdeps/unix/sysv/linux/alpha/setresuid.c 1970-01-01 00:00:00.000000000 +0000
119 +++ libc/sysdeps/unix/sysv/linux/alpha/setresuid.c 2004-10-30 12:35:49.000000000 +0000
121 +/* Copyright (C) 1998, 2000, 2003, 2004 Free Software Foundation, Inc.
122 + This file is part of the GNU C Library.
124 + The GNU C Library is free software; you can redistribute it and/or
125 + modify it under the terms of the GNU Lesser General Public
126 + License as published by the Free Software Foundation; either
127 + version 2.1 of the License, or (at your option) any later version.
129 + The GNU C Library is distributed in the hope that it will be useful,
130 + but WITHOUT ANY WARRANTY; without even the implied warranty of
131 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
132 + Lesser General Public License for more details.
134 + You should have received a copy of the GNU Lesser General Public
135 + License along with the GNU C Library; if not, write to the Free
136 + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
141 +#include <sys/types.h>
144 +#include <sys/syscall.h>
146 +#include <linux/posix_types.h>
147 +#include "kernel-features.h"
148 +#include <pthread-functions.h>
152 +__setresuid (uid_t ruid, uid_t euid, uid_t suid)
156 + result = INLINE_SYSCALL (setresuid, 3, (signed int)ruid, (signed int)euid, (signed int)suid);
158 +#if defined HAVE_PTR__NPTL_SETXID && !defined SINGLE_THREAD
159 + if (result == 0 && __libc_pthread_functions.ptr__nptl_setxid != NULL)
161 + struct xid_command cmd;
162 + cmd.syscall_no = __NR_setresuid;
166 + __libc_pthread_functions.ptr__nptl_setxid (&cmd);
172 +libc_hidden_def (__setresuid)
174 +weak_alias (__setresuid, setresuid)
176 diff -urN libc.orig/sysdeps/unix/sysv/linux/alpha/setreuid.c libc/sysdeps/unix/sysv/linux/alpha/setreuid.c
177 --- libc.orig/sysdeps/unix/sysv/linux/alpha/setreuid.c 1970-01-01 00:00:00.000000000 +0000
178 +++ libc/sysdeps/unix/sysv/linux/alpha/setreuid.c 2004-10-30 12:36:04.000000000 +0000
180 +/* Copyright (C) 1998, 2000, 2003, 2004 Free Software Foundation, Inc.
181 + This file is part of the GNU C Library.
183 + The GNU C Library is free software; you can redistribute it and/or
184 + modify it under the terms of the GNU Lesser General Public
185 + License as published by the Free Software Foundation; either
186 + version 2.1 of the License, or (at your option) any later version.
188 + The GNU C Library is distributed in the hope that it will be useful,
189 + but WITHOUT ANY WARRANTY; without even the implied warranty of
190 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
191 + Lesser General Public License for more details.
193 + You should have received a copy of the GNU Lesser General Public
194 + License along with the GNU C Library; if not, write to the Free
195 + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
200 +#include <sys/types.h>
203 +#include <sys/syscall.h>
205 +#include <linux/posix_types.h>
206 +#include "kernel-features.h"
207 +#include <pthread-functions.h>
211 +__setreuid (uid_t ruid, uid_t euid)
215 + result = INLINE_SYSCALL (setreuid, 2, (signed int)ruid, (signed int)euid);
217 +#if defined HAVE_PTR__NPTL_SETXID && !defined SINGLE_THREAD
218 + if (result == 0 && __libc_pthread_functions.ptr__nptl_setxid != NULL)
220 + struct xid_command cmd;
221 + cmd.syscall_no = __NR_setreuid;
224 + __libc_pthread_functions.ptr__nptl_setxid (&cmd);
231 +weak_alias (__setreuid, setreuid)