diff options
author | kib <kib@FreeBSD.org> | 2012-07-21 13:02:11 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-07-21 13:02:11 +0000 |
commit | e04825c920221bef72b0adc4386073fe8e20a946 (patch) | |
tree | a58a2bd91bd7f63390dffff4655ddf9fa36192ab /sys/kern | |
parent | 7ed4ca833736cc3a06dfc656f7df505a24bacf6a (diff) | |
download | FreeBSD-src-e04825c920221bef72b0adc4386073fe8e20a946.zip FreeBSD-src-e04825c920221bef72b0adc4386073fe8e20a946.tar.gz |
(Incomplete) fixes for symbols visibility issues and style in fcntl.h.
Append '__' prefix to the tag of struct oflock, and put it under BSD
namespace. Structure is needed both by libc and kernel, thus cannot be
hidden under #ifdef _KERNEL.
Move a set of non-standard F_* and O_* constants into BSD namespace.
SUSv4 explicitely allows implemenation to pollute F_* and O_* names
after fcntl.h is included, but it costs us nothing to adhere
to the specification if exact POSIX compliance level is requested by
user code.
Change some spaces after #define to tabs.
Noted by and discussed with: bde
MFC after: 1 week
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_descrip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index b449846..53af37b 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -367,7 +367,7 @@ int sys_fcntl(struct thread *td, struct fcntl_args *uap) { struct flock fl; - struct oflock ofl; + struct __oflock ofl; intptr_t arg; int error; int cmd; |