The NetBSD Project

CVS log for src/lib/libc/resolv/res_private.h

[BACK] Up to [cvs.NetBSD.org] / src / lib / libc / resolv

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.5 / (download) - annotate - [select for diffs], Tue Jan 23 17:24:38 2024 UTC (2 months, 3 weeks ago) by christos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +6 -1 lines
Diff to previous 1.4 (colored) to selected 1.1.1.3.22.1 (colored)

fix nested extern warnings

Revision 1.3.48.1 / (download) - annotate - [select for diffs], Tue Oct 5 11:06:58 2021 UTC (2 years, 6 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored) next main 1.4 (colored) to selected 1.1.1.3.22.1 (colored)

Pull up following revision(s) (requested by christos in ticket #1356):

	lib/libc/resolv/res_init.c: revision 1.32
	lib/libc/resolv/res_private.h: revision 1.4

kqueue(2) file descriptors are not inherited across fork(2). A
process that that calls getaddrinfo(3) will end up cacheing the
kqueue(2) file descriptor in its res_state structure. If that
process fork(2)s and calls getaddrinfo(3) again might end up closing
that cached file descriptor which can end up pointing to a different
file object than the kqueue(2) original one. To fix this, associate
the kqueue(2) file descriptor with the process id that created it,
and don't close(2) it if it is being closed from a different process.

An alternative fix would be to attach the resolver to a fork(2) hook
to cleanup the res_state, but handling it internally in the resolver
is less intrusive. This was discovered by Dima Veselov when using
the FreeRADIUS package.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Sep 30 12:35:55 2021 UTC (2 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored) to selected 1.1.1.3.22.1 (colored)

kqueue(2) file descriptors are not inherited across fork(2). A
process that that calls getaddrinfo(3) will end up cacheing the
kqueue(2) file descriptor in its res_state structure. If that
process fork(2)s and calls getaddrinfo(3) again might end up closing
that cached file descriptor which can end up pointing to a different
file object than the kqueue(2) original one. To fix this, associate
the kqueue(2) file descriptor with the process id that created it,
and don't close(2) it if it is being closed from a different process.
An alternative fix would be to attach the resolver to a fork(2) hook
to cleanup the res_state, but handling it internally in the resolver
is less intrusive. This was discovered by Dima Veselov when using
the FreeRADIUS package.

Revision 1.1.1.3.24.1 / (download) - annotate - [select for diffs], Mon Jan 10 00:42:20 2011 UTC (13 years, 3 months ago) by riz
Branch: netbsd-5-0
Changes since 1.1.1.3: +5 -3 lines
Diff to previous 1.1.1.3 (colored) next main 1.1.1.4 (colored) to selected 1.1.1.3.22.1 (colored)

Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.

Revision 1.1.1.3.28.1 / (download) - annotate - [select for diffs], Sun Jan 9 20:43:29 2011 UTC (13 years, 3 months ago) by riz
Branch: netbsd-5-1
CVS Tags: netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE
Changes since 1.1.1.3: +5 -3 lines
Diff to previous 1.1.1.3 (colored) next main 1.1.1.4 (colored) to selected 1.1.1.3.22.1 (colored)

Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.

Revision 1.1.1.3.18.1 / (download) - annotate - [select for diffs], Thu Jan 6 21:42:48 2011 UTC (13 years, 3 months ago) by riz
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.1.1.3: +5 -3 lines
Diff to previous 1.1.1.3 (colored) next main 1.1.1.4 (colored) to selected 1.1.1.3.22.1 (colored)

Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Oct 24 17:24:01 2009 UTC (14 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-premerge-20091211, matt-nb8-mediatek-base, matt-nb8-mediatek, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, localcount-20160914, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, cherry-xenmp-base, cherry-xenmp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: netbsd-9
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (colored) to selected 1.1.1.3.22.1 (colored)

expose res_check.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Oct 24 05:35:37 2009 UTC (14 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.1: +8 -3 lines
Diff to previous 1.1 (colored) to selected 1.1.1.3.22.1 (colored)

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.

Revision 1.1.1.3.22.1 / (download) - annotate - [selected], Wed May 13 19:18:26 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.1.1.3: +1 -1 lines
Diff to previous 1.1.1.3 (colored) next main 1.1.1.4 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.1.1.4 / (download) - annotate - [select for diffs] (vendor branch), Sun Apr 12 16:35:48 2009 UTC (15 years ago) by christos
Branch: ISC
CVS Tags: libbind-6-0rc1, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.1.1.3: +1 -1 lines
Diff to previous 1.1.1.3 (colored) to selected 1.1.1.3.22.1 (colored)

libc portion of libbind from external/bsd/libbind

Revision 1.1.1.1.12.1 / (download) - annotate - [select for diffs], Sun Jun 3 17:25:59 2007 UTC (16 years, 10 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.1.1.1: +3 -1 lines
Diff to previous 1.1.1.1 (colored) next main 1.1.1.2 (colored) to selected 1.1.1.3.22.1 (colored)

Catch up with now-somewhat-dated netbsd-4. These changes took longer
than expected for me to actually get around to merging.

Revision 1.1.1.1.10.2 / (download) - annotate - [select for diffs], Thu May 17 21:25:18 2007 UTC (16 years, 11 months ago) by jdc
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0
Changes since 1.1.1.1.10.1: +0 -0 lines
Diff to previous 1.1.1.1.10.1 (colored) to branchpoint 1.1.1.1 (colored) next main 1.1.1.2 (colored) to selected 1.1.1.3.22.1 (colored)

Add missing BIND 9.4.x include file and library changes (requested by
tron in ticket #662).

Revision 1.1.1.1.10.1 / (download) - annotate - [select for diffs], Thu May 17 00:43:53 2007 UTC (16 years, 11 months ago) by jdc
Branch: netbsd-4
Changes since 1.1.1.1: +3 -1 lines
Diff to previous 1.1.1.1 (colored) to selected 1.1.1.3.22.1 (colored)

Update BIND to version 9.4.1 (requested by christos in ticket #602).
Thanks to tron for the patches, upgrade script and testing.

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Fri Mar 30 20:16:22 2007 UTC (17 years ago) by ghen
Branch: ISC
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, mjf-devfs2-base, mjf-devfs2, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, christos-time_t-nbase, christos-time_t-base, christos-time_t, bind-9-4-0
Branch point for: netbsd-5-1, netbsd-5-0, netbsd-5, jym-xensuspend
Changes since 1.1.1.2: +1 -1 lines
Diff to previous 1.1.1.2 (colored) to selected 1.1.1.3.22.1 (colored)

Import bind 9.4.0.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sat Jan 27 21:45:39 2007 UTC (17 years, 2 months ago) by christos
Branch: ISC
CVS Tags: bind-9-4-0-rc2
Changes since 1.1.1.1: +3 -1 lines
Diff to previous 1.1.1.1 (colored) to selected 1.1.1.3.22.1 (colored)

import resolver portion of bind-9.4.0-rc2

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Thu May 20 17:18:54 2004 UTC (19 years, 11 months ago) by christos
Branch: ISC
CVS Tags: netbsd-4-base, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, bind9_3_0beta3, bind-9-3-0, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.1.1.3.22.1 (colored)

Import libc portion of the resolver from bind9

Revision 1.1 / (download) - annotate - [select for diffs], Thu May 20 17:18:54 2004 UTC (19 years, 11 months ago) by christos
Branch: MAIN
Diff to selected 1.1.1.3.22.1 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>