[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: setresgid.o
- From: andy ritger <ritger wolfram com>
- To: axp-list redhat com
- Subject: Re: setresgid.o
- Date: Tue, 21 Mar 2000 09:51:40 -0600 (CST)
Looking at my glibc-2.1.1 installation on an XP1000, I can't find a
setresgid symbol in the static libc:
% nm /usr/lib/libc.a | grep setresgid
%
I did find a single occurance of it in the /usr/include tree:
% cd /usr/include
% grep setresgid * -r
customs/config.h:#define SETREGID(rgid,egid) setresgid(rgid,egid,-1)
%
which, when you look at it, is wrapped in "#ifdef hpux" (boo)
On an intel linux box with glibc-2.1.2, I was able to find:
% nm /usr/lib/libc.a | grep setresgid
setresgid.o:
00000000 T setresgid
% cd /usr/include/
% grep setresgid * -r
asm/unistd.h:#define __NR_setresgid 170
bits/syscall.h:#define SYS_setresgid __NR_setresgid
%
Then tracking through the glibc changelogs I found:
% cd /usr/doc/glibc-2.1.2
% grep setresgid * -r
ChangeLog.7: setresgid.
ChangeLog.9: * sysdeps/unix/sysv/linux/i386/Dist: Add setresuid.c,
setresgid.c,
ChangeLog.9: * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
ChangeLog.9: * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
ChangeLog.9: * sysdeps/unix/sysv/linux/i386/setresgid.c: Remove
#include of
ChangeLog.9: * sysdeps/unix/sysv/linux/arm/setresgid.c: New file.
ChangeLog.9: * sysdeps/unix/sysv/linux/i386/setresgid.c: New file.
ChangeLog.9: * sysdeps/unix/sysv/linux/m68k/setresgid.c: New file.
ChangeLog.9: * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New
file.
ChangeLog.9: s_setresgid, and s_setuid.
ChangeLog.9: (sysdep_routines): Add setfsgid, setfsuid, setresgid, and
setresuid.
But I can't find a mention of setresgid in relation to alpha :(
In fact, looking through the glibc reference manual, I can't find a
reference to setresgid at all.
The easy solution is to use a different function like setregid, unless
you really need to muck with the saved group ID of the process (it almost
looks like this isn't supported anymore). Otherwise, hopefully someone
with more wisdom than I can shed some light on this...
- andy
On Tue, 21 Mar 2000, Gerhard Schneider wrote:
[ >
[ > I hope it's not in the FAQ but:
[ >
[ > Why there is no setresgid.o on RedHat Linux/Alpha? (5.x and 6.1).
[
[ Sorry, I was wrong..
[
[ It's in the i386 version of Debian (I don't use RedHat on Intel).
[
[ There seems to be no setresgid.o for Alphas?
[
[ Gerhard Schneider
[
[ --
[ Gerhard Schneider e-Mail: gs@ilfb.tuwien.ac.at
[ Institute of Light Weight Structures (E317) Tel.: +43 1 58801 31716
[ Vienna University of Technology / Austria Fax: +43 1 58801 31799
[ A-1040 Wien, Gusshausstrasse 27-29 http://ilfb.tuwien.ac.at/~gs/
[
[ --
[ To unsubscribe: send e-mail to axp-list-request@redhat.com with
[ 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
[
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]