summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_descrip.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-07-21 13:02:11 +0000
committerkib <kib@FreeBSD.org>2012-07-21 13:02:11 +0000
commite04825c920221bef72b0adc4386073fe8e20a946 (patch)
treea58a2bd91bd7f63390dffff4655ddf9fa36192ab /sys/kern/kern_descrip.c
parent7ed4ca833736cc3a06dfc656f7df505a24bacf6a (diff)
downloadFreeBSD-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/kern_descrip.c')
-rw-r--r--sys/kern/kern_descrip.c2
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;
OpenPOWER on IntegriCloud