Commit Graph

785 Commits

Author SHA1 Message Date
christos 8056bccd98 Protect against stack smashes (Maksymilian Arciemowicz) 2011-04-03 22:14:15 +00:00
joerg 9674b81ed9 Introduce __weakref_visible to handle the different required visibility
for weak references. GCC 4.2+ and Clang require static, older GCC wants
extern. Change __weak_reference to include sym. This requires changes
the existing users to not reuse the name of the symbol, but avoids
further differences between GCC 4.1 and GCC 4.2+/clang.
2011-02-22 05:45:05 +00:00
joerg e189b01ad3 Support the different weakref semantic in GCC 4.2 and clang. 2011-02-18 23:41:57 +00:00
matt 90a7a07b86 Use RT_ROUNDUP instead of a private copy since that's what the kernel uses.
(t_getaddrinfo passes for both i386 (compat_netbsd32) and amd64 with this
change).
2011-02-04 02:01:12 +00:00
njoly 5488d3a23f Add section 3 for getpwuid_r xref. 2011-01-26 22:00:45 +00:00
wiz aff1729a2c Fix fdleak in error case. Found by cppcheck. 2011-01-05 00:09:43 +00:00
pooka 0c0346ae48 Don't __weak_alias non-existent symbols. Apparently the alpha
compiler doesn't like it.
2010-12-13 23:10:12 +00:00
pooka 5f35396ed8 last of the RUMP_ACTION syscall swappers 2010-12-13 21:07:54 +00:00
christos 75a9445418 use %option noinput 2010-12-08 03:19:19 +00:00
joerg 7a8f98483f input() is not used, so don't provide it. 2010-12-08 02:05:39 +00:00
pooka 2ddc760fc7 Need getifaddrs() for the rump client since it executes sysctl(2) 2010-11-05 16:23:56 +00:00
christos 33434557c9 dprintf is claimed by posix. 2010-08-29 15:40:35 +00:00
seanb 10f798a007 - remove extra len check as per discussion on tech-net. 2010-06-29 14:44:19 +00:00
joerg b9cf7d31ab Add the constant database reader (cdbr(3)) and writer ((cdbw(3)).
They implement a space efficent write-once database with fast access
path. Switch the services(5) database to use cdb. The size of the
database file decreases from 2.1MB disk space to 307KB. Access
performance is about the same if setservent(0) is used and about an
order of magnitude faster otherwise. services_mkdb defaults to the new
format, but can optionally create the old db(3) format as well for
statically linked legacy applications.
2010-04-25 00:54:44 +00:00
wiz 8cd16a22d0 Join URL. 2010-04-17 20:28:47 +00:00
jruoho 6d890644fe Use the common template for the USENIX paper. Add URL. 2010-04-17 10:08:21 +00:00
joerg 1c3412fa2f Use .In for header files instead of .Ar Pa and variations. 2010-03-22 19:30:53 +00:00
is 45845cf0d7 Print AppleTalk phase 2 range, too, if available. 2010-01-29 22:26:48 +00:00
is 000fbf6b41 Add AF_APPLETALK support to getnameinfo(); make "route show" use it.
Doesn't print "ranges" yet (should it be done here?); only numeric
output.
2010-01-26 21:27:54 +00:00
wiz 663935444d Bump date for previous. 2009-12-14 07:31:49 +00:00
dholland e2423fa273 getaddrinfo is defined to use the AF_* constants, even though perhaps its
interface ought to have been defined in terms of PF_*. Add a note about
how the distinction has been lost anyway. Fixes PR lib/42384.
2009-12-14 01:53:31 +00:00
christos 2853bbf4b7 use %option instead of #define YY_NO_... 2009-10-29 14:49:02 +00:00
joerg 178d0fc825 Do not nest displays, use lists instead. Discussed with wiz.
Fix markup.
2009-10-14 17:24:03 +00:00
wiz 3dee657aa5 Revert a -> an changes: Adding an 'n' follows pronunciation, not writing. 2009-10-02 07:41:08 +00:00
wiz b9f34d69ea Bump date for new allocaddrinfo. 2009-10-02 06:59:37 +00:00
cegger 45db136e91 fix grammar: a -> an 2009-10-02 06:49:23 +00:00
tsarna 1f4f234ea9 Introduce allocaddrinfo(3) to make writing getaddrinfo() nss plugins easier.
Discussed on tech-net.
2009-10-02 02:45:28 +00:00
seanb 612dfc4de9 Watch getservbyport_r() semantics. sv needs scope
while results are being looked at which in turn
are no longer valid after a endservent_r().
2009-08-12 20:24:30 +00:00
christos d9b57d2294 another missing \ 2009-06-08 17:18:11 +00:00
christos d6dbd2857d remove duplicated line 2009-06-08 17:06:22 +00:00
christos 64ef372149 missing \ 2009-06-08 17:00:40 +00:00
christos d37a1d1b07 sort, add missing, fix section 2009-06-08 16:59:52 +00:00
christos ecb120d5ca new resolver functions. 2009-06-08 16:57:09 +00:00
christos 190ebc6a17 merge our changes 2009-06-08 16:55:30 +00:00
dyoung 46db29bcf1 Bring getifaddrs(3) behavior in line with the documentation: the
ifa_data member of every AF_LINK struct ifaddrs points at the
corresponding struct if_data.  In ifconfig(8), do not try to suppress
duplicate AF_LINK ifaddrs by checking for a NULL ifa_data.

Don't copy out two AF_LINK struct ifaddrs for each active link-layer
address. getifaddrs(3) used to copy out one ifaddrs for the kernel's
RTM_IFINFO message, and one more for the kernel's RTM_NEWADDR message.
I suppress the first duplicate with a highly conservative change that
wastes a little bit of ifaddrs storage.  The storage is not leaked.
2009-04-27 20:10:49 +00:00
wiz 48f171ac9f Mark up NULL. New sentence, new line. Bump date for previous. 2009-04-22 07:26:52 +00:00
dyoung c378e7997c For non-AF_LINK ifaddrs, ifa_data is NULL. AFAICT, this has always been
so.  Say so in the documentation.
2009-04-21 23:27:09 +00:00
christos 59a755a40f merge libbind and bump. 2009-04-12 17:07:16 +00:00
joerg 592c0f8761 Remove reundant quote. 2009-04-11 15:32:03 +00:00
joerg 0e5f0af7e9 Fix preamble 2009-03-11 13:35:21 +00:00
joerg fa91a1ac51 Use .An for author list. 2009-03-10 23:36:10 +00:00
lukem da77f10ac5 sign-compare fix 2009-02-11 05:25:17 +00:00
lukem fc2df2f1c0 sign-compare fix 2009-02-05 23:22:39 +00:00
lukem 8bbffe062a sign-compare fix 2009-02-05 13:21:11 +00:00
lukem 8a09e86085 sign-compare fix 2009-01-30 23:35:35 +00:00
tls 8d33a6da32 Cause getaddrinfo() without socktype specification to work correctly for
numeric addresses.  The documentation appears to say this works, and some
other systems support it -- more importantly, why should it _not_ work?  If
it does not, getaddrinfo() cannot be used as a general-purpose textual to
binary address conversion utility function; yet it is the only such function
we have in the system, since inet_pton() requires a priori knowledge of the
address family.

This change also causes getaddrinfo() with NULL hint (expressly documented
as working) to work properly for numeric addresses.
2009-01-23 00:48:57 +00:00
gmcgarry 77023558e8 Changee __attribute(__weak__) to __weak_reference(). Produces same object code
and matches lib/csu/common_elf/common.h.  Fixes linkage with PCC.
2008-08-17 10:51:19 +00:00
christos 3873655b27 updates from bind-9-5-0 2008-06-21 20:41:48 +00:00
lukem edf03256a8 Fix possible memory leak in error path.
Part of PR 38677.
2008-05-18 22:36:15 +00:00
lukem 2713f76747 Convert getnetbyname(3) and getnetbyaddr(3) to the more "standard"
nsdispatch() backend method API.
2008-05-08 13:01:42 +00:00