Commit Graph

808 Commits

Author SHA1 Message Date
martin
9200e999a5 Avoid gcc 4.5.3 compiler bug on ia64 by compiling hesiod.c with -O1 only. 2012-12-27 07:08:59 +00:00
christos
6d9727ba24 fix outdated includes list. 2012-11-07 15:48:13 +00:00
christos
911623fbd4 add and document AF_LOCAL (and the rest that were not) 2012-09-26 23:13:00 +00:00
christos
98fae1dfe3 implement no-check-names 2012-09-09 16:42:23 +00:00
darrenr
3ec957d580 bin/46703: BSD r-commands use wrong source address for stderr
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=46703
Bump libc minor for the addition of rresvport_af_addr()
2012-07-14 15:06:26 +00:00
abs
9e66e6d75e Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
2012-06-25 22:32:43 +00:00
martin
4df6c44b48 Henning Petersen in PR lib/46561: cosmetic change: avoid self assignement. 2012-06-08 07:54:14 +00:00
matt
504f867176 Use C89 Prototypes.
Remove use of __P
2012-03-20 17:44:17 +00:00
kardel
5d92cd82ed PR pkg/46206
re-establish fqdn lookup when AI_ADDRCONFIG is used in hints
AI_ADDRCONFIG led to fqdn lookup being skipped as the systems didn't
configure any PF_UNSPEC addresses - check was too strict here.
Thnaks to Ryo ONODERA for testing.
2012-03-20 12:04:01 +00:00
kardel
52f5a00d5c PR 46206: fix programmed SIGSEGV
more work is needed as tests seem to indicate that name resolution now
does no seem to work (firefox reports Server not found)
thanks to Ryo ONODERA for testing.
2012-03-20 10:34:33 +00:00
christos
2a6850a9bf Add AI_ADDRCONFIG, which makes getaddrinfo() return only address with families
that are already configured in the system.
2012-03-17 21:56:40 +00:00
christos
c5e820cae4 PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
  would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
  builds)

approved by core@
2012-03-13 21:13:30 +00:00
christos
3a7a306503 fix signature according to TOG. 2012-03-04 03:23:35 +00:00
joerg
e8bec33be1 Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressions
again. This was changed in sys/socket.h r1.51 to work around fallout
from the IPv6 aux data migration. It broke the historic ABI on some
platforms. This commit restores compatibility for netbsd32 code on such
platforms and provides a template for future changes to the CMSG_*
alignment. Revert PCC/Clang workarounds in postfix and tmux.
2012-01-20 14:08:04 +00:00
tsutsui
cabc3353b8 Apply fix for previous changes per request from joerg@:
http://mail-index.NetBSD.org/source-changes-d/2011/12/25/msg004454.html

XXX1: More Makefiles should be fixed otherwise they will be
      copy-and-pasted blindly again and again.
XXX2: Probably we need more explicit and simple macro to check active CC.
2011-12-25 12:32:36 +00:00
tsutsui
d1ac98d51b Specify "-fno-tree-ter" to getaddrinfo.c and gethnamaddr.c on arm and gcc45
for workaround of a possible optimazation bug.

On my W-ZERO3 and Zaurus, hostname lookup against CNAME by some commands
(ping(8), ftp(1) etc.) fails even though nslookup(8) returns a proper name
against the same CNAME, after NetBSD/arm ports has been switched to
gcc 4.5 since 201110311420Z (i.e 201110310000Z binaries worked but
201111010000Z ones not).

Building getaddrinfo.c and gethnamaddr.c in libc with "-O2 -fno-tree-ter"
(or using objects built by old gcc 4.1) seems to fix this issue.

Accroding to nonaka@, the following gcc bugzilla test case also fails
with -O2 but works with -O2 -fno-tree-ter on NetBSD/zaurus 5.99.57:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48863#c4
but CNAME lookup didn't fail on his environment even without this workaround.
2011-12-24 04:59:00 +00:00
christos
9292cfb210 close on exec fixes:
- open + fcntl -> open O_CLOEXEC
- configuration database file descriptors that can stay open are now opened
  fopen(db, "re")
2011-10-15 23:00:01 +00:00
christos
2204ab6ba8 use fparseln 2011-10-15 22:57:57 +00:00
wiz
d66479d008 New sentence, new line. 2011-07-14 22:12:30 +00:00
jruoho
bce528f484 Complete prototypes, markup NULL, complete return values, more markup. 2011-07-14 21:25:42 +00:00
christos
98715cd1ec PR/45007: rcmd_af(3) and thusly rsh(1) ignore requested address family
Pass in the address family to rshrcmd and DTRT.
While here KNF.
2011-05-31 06:49:26 +00:00
jruoho
5517207853 Xref bswap(3). Simplify STANDARDS. 2011-05-03 04:07:39 +00:00
wiz
1536c249f7 Markup fixes. 2011-04-28 16:16:23 +00:00
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