Commit Graph

25 Commits

Author SHA1 Message Date
christos a8d19c80ee time_t casts 2012-03-21 00:34:54 +00:00
matt 504f867176 Use C89 Prototypes.
Remove use of __P
2012-03-20 17:44:17 +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
joerg 608276435f Remove self-assignment of an argument that is later used. 2011-05-23 14:34:29 +00:00
pooka 79b560da8c Don't do highestFD check with USE_POLL. It provides no benefit
but causes a dependency between RLIMIT_NOFILE and rumphijack FDOFF.

christos ok
2011-02-09 09:46:59 +00:00
christos e942b6ecb2 expose res_check. 2009-10-24 17:24:01 +00:00
christos 249296c41c Add a knote to keep track when resolv.conf gets changed and re-initialize.
While here fix a memory leak when calling res_vinit with an already inited
res_state.
2009-10-24 05:35:37 +00:00
christos 59a755a40f merge libbind and bump. 2009-04-12 17:07:16 +00:00
mrg 798e718222 fix a very old resolver bug:
when looping over the current list of sockets we're connected to,
use getpeername() not getsockname() to find out who the remote
end is.  avoid spurious close()s and (rare) failure.

apparently known as ISC bug #18625, and fixed in libbind 6.0
2009-01-27 05:13:23 +00:00
christos 461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
christos 7ce5e09d1b - protect DEBUG again because we should be able to set it from the Makefile
- add a missing cast to pacify lint.
2008-06-21 23:37:53 +00:00
christos 3873655b27 updates from bind-9-5-0 2008-06-21 20:41:48 +00:00
ghen 225c5452c3 Resolve conflicts. 2007-03-30 20:23:03 +00:00
christos 59bba4a15c Although we don't have a kqueue implementation yet, there is no point in
limiting the max fd in the poll case. Pointed out by Jan Schaumann, original
patch from FreeBSD/John Baldwin.
2007-03-02 22:56:15 +00:00
christos 91eccc4aa8 Fix minor compilation issues. 2007-01-27 23:02:12 +00:00
christos d73eb73dc8 merge in resolver portion of bind-9.4.0-rc2 2007-01-27 22:26:43 +00:00
christos 0126713300 don't re-define DEBUG 2006-01-24 17:39:44 +00:00
kleink fd5cb0acea A little libc namespace housekeeping exercise:
* Make vfprintf_unlocked() an internal function, c.f. __svfscanf_unlocked().
* Add internal names for arc4random(), endnetpath(), fhstatvfs(),
  fstatvfs(), mkstemp(), shquote(), statvfs(), taddr2uaddr(), uaddr2taddr(),
  uuid_create_nil(), uuid_is_nil(), and wcwidth().
* Include namespace.h where supposed to.
2005-02-09 21:35:46 +00:00
christos 0766545fc7 resolve conflicts. 2004-11-07 02:25:01 +00:00
christos 5ce4c264ed disable weak aliases for now; the resolver header file adds __ to all the
names.
2004-05-21 16:03:05 +00:00
christos 6f3786f41c namespace protection for resolver routines. 2004-05-21 15:35:05 +00:00
christos ca31adbdcc netbsd rcsid. 2004-05-20 19:43:39 +00:00
christos 50d86ec259 more lint fixes. 2004-05-20 19:31:52 +00:00
christos 1ad5eecb0b - add casts to appease lint
- fix unreachable condition pointed out by lint.
2004-05-20 17:59:43 +00:00
christos 2b237084d1 Import libc portion of the resolver from bind9 2004-05-20 17:18:54 +00:00