standards/123688: POSIX standard changes in unistd.h and grp.h

Pedro F. Giffuni giffunip at tutopia.com
Wed May 14 23:00:11 UTC 2008


>Number:         123688
>Category:       standards
>Synopsis:       POSIX standard changes in unistd.h and grp.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-standards
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 14 23:00:11 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Pedro F. Giffuni
>Release:        6.3-Release (amd64)
>Organization:
>Environment:
not-relevant
>Description:
Bruno Haible did a port of glibc to FreeBSD; in the process he found important differences between glibc and FreeBSD's libc. I looked at some of them to see how they related to POSIX documentation and I found arguments for adopting this changes:

Note about <unistd.h>
- getgrouplist() declaration is moved to <grp.h>.
- initgroups() declaration is moved to <grp.h>.
- setgroups() declaration is moved to <grp.h>.
- mknod() declaration is moved to <sys/stat.h>
Note about <grp.h>:
- setgrent() return type changes from int to void.

Of course the documentation for those 5 functions would also have to change



>How-To-Repeat:
The complete changes are mentioned here:

http://sourceware.org/ml/libc-alpha/2002-10/msg00326.html

but of course things have changed between 2002 and now and some changes, like moving valloc(),in there would break BSD tradition.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-standards mailing list