summaryrefslogtreecommitdiffstats
path: root/lib/libc/include/un-namespace.h
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-03-29 22:43:43 +0000
committermarkm <markm@FreeBSD.org>2002-03-29 22:43:43 +0000
commit76fe441a7bf75d73962641b785f158b5cc9dc7f8 (patch)
tree4e267e060bfb6d96f46ab0d79c49b277402c0dd0 /lib/libc/include/un-namespace.h
parent6085f75ded37ec415ded7d6373ecd09bcb088ac4 (diff)
downloadFreeBSD-src-76fe441a7bf75d73962641b785f158b5cc9dc7f8.zip
FreeBSD-src-76fe441a7bf75d73962641b785f158b5cc9dc7f8.tar.gz
Do not use __progname directly (except in [gs]etprogname(3)).
Also, make an internal _getprogname() that is used only inside libc. For libc, getprogname(3) is a weak symbol in case a function of the same name is defined in userland.
Diffstat (limited to 'lib/libc/include/un-namespace.h')
-rw-r--r--lib/libc/include/un-namespace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/include/un-namespace.h b/lib/libc/include/un-namespace.h
index 855c101..3b21900 100644
--- a/lib/libc/include/un-namespace.h
+++ b/lib/libc/include/un-namespace.h
@@ -52,6 +52,7 @@
#undef getdirentries
#undef getlogin
#undef getpeername
+#undef getprogname
#undef getsockname
#undef getsockopt
#undef ioctl
OpenPOWER on IntegriCloud