mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
fix minor namespace issue in unistd.h
the F_* macros associated with the lockf function are XSI-shaded (like the lockf function itself) and should only be exposed when the function is.
This commit is contained in:
parent
d93c0740d8
commit
a3f7bcdeaa
1 changed files with 1 additions and 2 deletions
|
@ -128,12 +128,11 @@ long fpathconf(int, int);
|
|||
long sysconf(int);
|
||||
size_t confstr(int, char *, size_t);
|
||||
|
||||
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||
#define F_ULOCK 0
|
||||
#define F_LOCK 1
|
||||
#define F_TLOCK 2
|
||||
#define F_TEST 3
|
||||
|
||||
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||
int setreuid(uid_t, uid_t);
|
||||
int setregid(gid_t, gid_t);
|
||||
int lockf(int, int, off_t);
|
||||
|
|
Loading…
Add table
Reference in a new issue