fcntl: Make it possible to namespace the defined symbol.
commit80d79168c515cd27f3a7268bc8ea633b98dd858c
authorBruno Haible <bruno@clisp.org>
Thu, 4 Oct 2018 22:22:57 +0000 (5 00:22 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 4 Oct 2018 22:22:57 +0000 (5 00:22 +0200)
treefc2167323fda30b2b4f909dc94af8fe292a55397
parent976a1a0f7d5486433eeb9d9e4519c3d1434ec0ff
fcntl: Make it possible to namespace the defined symbol.

* lib/fcntl.c (fcntl): Undefine only after the replacement function has
been defined.
(fcntl): Renamed from rpl_fcntl.
(rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
from fcntl.
(klibc_fcntl): Move to the end of the compilation unit.
ChangeLog
lib/fcntl.c