mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
unistd: move setpgrp(2) to the __BSD_VISIBLE section
Our setpgrp(2) differs from the specified by POSIX, which only has one argument, and is only meant for compatibility with BSD. Reference: http://pubs.opengroup.org/onlinepubs/009695399/functions/setpgrp.html Pointed-out in: openbsd-tech (2014-09-16) MFC after: 6 weeks
This commit is contained in:
parent
7162347871
commit
d9446691c8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271792
|
@ -453,7 +453,6 @@ int encrypt(char *, int);
|
|||
long gethostid(void);
|
||||
int lockf(int, int, off_t);
|
||||
int nice(int);
|
||||
int setpgrp(pid_t _pid, pid_t _pgrp); /* obsoleted by setpgid() */
|
||||
int setregid(gid_t, gid_t);
|
||||
int setreuid(uid_t, uid_t);
|
||||
|
||||
|
@ -567,6 +566,7 @@ int setkey(const char *);
|
|||
int setlogin(const char *);
|
||||
int setloginclass(const char *);
|
||||
void *setmode(const char *);
|
||||
int setpgrp(pid_t _pid, pid_t _pgrp); /* obsoleted by setpgid() */
|
||||
void setproctitle(const char *_fmt, ...) __printf0like(1, 2);
|
||||
int setresgid(gid_t, gid_t, gid_t);
|
||||
int setresuid(uid_t, uid_t, uid_t);
|
||||
|
|
Loading…
Reference in a new issue