This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: glibc-2.0.99 build problems


Matt McLean <keys@yikes.com> writes:

> Try this patch, I think the part that fixes this is where the extra
> pread/write get removed in the syscalls list. The other pread/write entry
> has already been fixed for this.

The patch seems not to be 100% ok.

> 	* sysdeps/unix/sysv/linux/powerpc/setgid.c: New file.
> 	* sysdeps/unix/sysv/linux/powerpc/setresgid.c: New file.
> 	* sysdeps/unix/sysv/linux/powerpc/setresuid.c: New file.
> 	* sysdeps/unix/sysv/linux/powerpc/setuid.c: New file.
> 	* sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_setgid,
> 	s_setresgid, s_setresuid, and s_setuid.

Why do you do this?  For PPCs the size of the uid_t and gid_t tpy ein
the kernel and userland is the same.  Therefore you shouldn't need the
wrappers.

If this

> -s_pread64	pread64	pread		4	__syscall_pread64 
> -s_pwrite64	pwrite64 pwrite		4	__syscall_pwrite64 

fixes the problem it's fine.

Could someone give me a final analysis?

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]