Created attachment 5189 [details]
patch to add getgid to SH arch
When i used "getgid()" on my SH4 machine with glibc-2.11 it didn't work, but "getegid()" worked. The problem is the missing file "sysdeps/unix/sysv/linux/sh/getgid.c". I think i should be the same as "sysdeps/unix/sysv/linux/sh/getegid.c". (basically including the getgid.c file from "sysdeps/unix/sysv/linux/i386/")
This will impact for example the sshd as it uses "getgid()" to do some checks.
I checked also the the last release from the gnu-ftp (2.12.2) the file is also missing there so the error still exists.
I appended a patch that will add this file to the appropriate dir and should work.
(In reply to comment #0)
> Created attachment 5189 [details]
> patch to add getgid to SH arch
Looks fine. Could you please send it to the libc-alpha list
with the ChangeLog entry?
I pushed this now to glibc git for glibc 2.18. Thanks,
Author: Christian Grönke <email@example.com>
Date: Fri May 10 20:40:48 2013 +0200
Add getgid.c for SH
* sysdeps/unix/sysv/linux/sh/getgid.c: New file.