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
mbalmer
25c6d8b7c2
the doo doo doo, the daa daa daa...
2009-11-22 18:04:37 +00:00
christos
3b0d9a876a
don't read hostaliases using unbuffered reads. there is no security benefit.
2009-10-24 21:37:57 +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
2cca8c559f
Bring back binary compatibility with the previous version of the resolver.
...
There was no room to allocate 16 bytes for _rnd in the struct in the _LP64
case, so we dynamically allocate now. Also put the _rnd field last, so that
we are bitwise compatible too. Now of course we've run out of space, so
next time will need to perform more evil tricks to fit.
2009-04-20 14:42:12 +00:00
christos
1408cbc26a
we are not guaranteed that the ext pointer is going to be null at this point
...
so don't attempt to free.
2009-04-16 14:56:51 +00:00
christos
50ce2a6bdf
fix lint issues and actual bugs lint found (missing break statements)
2009-04-12 19:43:37 +00:00
christos
59a755a40f
merge libbind and bump.
2009-04-12 17:07:16 +00:00
christos
c6497e5b5f
libc portion of libbind from external/bsd/libbind
2009-04-12 16:35:44 +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
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
ghen
1c80da3072
Re-add missing file (removed by cvs import because it was added manually by
...
christos).
Hi Veego!
2007-03-30 20:40:52 +00:00
ghen
225c5452c3
Resolve conflicts.
2007-03-30 20:23:03 +00:00
ghen
e0bee3891d
Import bind 9.4.0.
2007-03-30 20:16:18 +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
233898bdaa
Only try free-ing a version of res if it is not supposed to be pre-inited
...
like before. Fixes issues with programs passing random uninitialized data
as res_state.
2007-02-09 22:29:40 +00:00
christos
41b0e71e94
Don't check for ext being NULL to destroy the res_state. Instead check
...
the option bits like we did before.
2007-01-28 07:54:01 +00:00
christos
5959955102
we don't need <irs.h>
2007-01-28 02:14:05 +00:00
christos
619824ce6d
try again.
2007-01-28 02:13:29 +00:00
christos
e519b45a11
missed one more file.
2007-01-28 02:11:44 +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
8e42b6c984
import resolver portion of bind-9.4.0-rc2
2007-01-27 21:45:34 +00:00
seanb
e17c2f7f45
- Function no longer matched prototype after
...
move to ansi prototype in last commit; restore.
- Not noticed as weak aliases are used so the
code is not compiled in.
2007-01-17 16:39:20 +00:00
christos
23b08f8966
Coverity CID 618: Comment out dead code.
2006-03-19 03:10:08 +00:00
christos
0126713300
don't re-define DEBUG
2006-01-24 17:39:44 +00:00
tsarna
064cb14faa
Rest of fix for PR#31184: getaddrinfo() now honors resolv.conf sortlist
...
directive for dns answers.
Also, unifdef the RESLVSORT (non-)option sillyness.
Reviewed by christos.
2005-09-15 23:33:41 +00:00
christos
5b84b3983f
compat core reorg.
2005-09-13 01:44:08 +00:00
christos
86741d79ab
- Fix the remaining indr_references so that they define lint symbols.
...
- Add an internal symbol for strerror_r (thanks klaus for noticing)
- Remove internal __strerror
2005-07-30 15:21:20 +00:00
lukem
88c3eadbfa
Add missing __RCSID()
2005-06-12 05:21:25 +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
f42653853a
Put back issetugid() check for hostaliases.
...
XXX: this is suboptimal, It would be better if we propelry checked
for access.
2004-09-25 05:33:01 +00:00
christos
4b05f4b58a
Jump through taller hoops to provide binary compatibility with programs
...
compiled with the older and shorter _res. We now use _nres internally
which is the new and bigger one. We define a _res which is the old
size one if COMPAT__RES is set, and then we consult selected values from
this old _res in res_init(), to emulate the old behavior.
2004-06-09 18:07:03 +00:00
christos
3c2635eac1
Do all the _res initialization in __res_get_state()
2004-05-23 16:55:09 +00:00
christos
ba991ec242
one more missing weak_alias
2004-05-23 05:09:52 +00:00
christos
162504ee9b
Provide access to the 8 symbols the bind8 resolver did, through weak aliases.
...
3 of them [res_send_*, and res_querydomain], were done incorrectly before...
2004-05-22 23:47:09 +00:00
christos
7168861fac
Provide access to _res in the non-threaded case, and abort in the threaded
...
case.
2004-05-22 15:44:26 +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
729d8bb9ff
#ifdef protect __weak_alias
2004-05-21 16:02:40 +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
7899178585
provide __h_errno_set()
2004-05-20 19:31:40 +00:00
christos
fa406da826
Add glue files.
2004-05-20 18:00:55 +00:00