summaryrefslogtreecommitdiffstats
path: root/lib/libc
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 /lib/libc
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 'lib/libc')
-rw-r--r--lib/libc/sys/fcntl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/sys/fcntl.c b/lib/libc/sys/fcntl.c
index 470f8ab..480cc40 100644
--- a/lib/libc/sys/fcntl.c
+++ b/lib/libc/sys/fcntl.c
@@ -41,7 +41,7 @@ __fcntl_compat(int fd, int cmd, ...)
{
va_list args;
long arg;
- struct oflock ofl;
+ struct __oflock ofl;
struct flock *flp;
int res;
OpenPOWER on IntegriCloud