summaryrefslogtreecommitdiff
path: root/lib/libc/net/hesiod.c
Commit message (Collapse)AuthorAgeFilesLines
* libc: do not include <sys/types.h> where <sys/param.h> was already includedAndriy Voskoboinyk2016-04-181-1/+0
| | | | | | | | | According to style(9): > normally, include <sys/types.h> OR <sys/param.h>, but not both. (<sys/param.h> already includes <sys/types.h> when LOCORE is not defined). Notes: svn path=/head/; revision=298226
* libc: Make various internal file descriptors from fopen() close-on-exec.Jilles Tjoelker2013-08-231-1/+1
| | | | Notes: svn path=/head/; revision=254700
* Fix struct FILE * leak on error (in disabled by default hesiod support code).Konstantin Belousov2011-01-081-0/+1
| | | | | | | | | Submitted by: henning petersen <henning.petersen t-online de> PR: 153756 MFC after: 1 week Notes: svn path=/head/; revision=217143
* Back out the `hiding' of strlcpy and strlcat. Several peopleJacques Vidrine2003-05-011-3/+1
| | | | | | | vocally objected to this safety belt. Notes: svn path=/head/; revision=114443
* `Hide' strlcpy and strlcat (using the namespace.h / __weak_referenceJacques Vidrine2003-04-291-1/+3
| | | | | | | | | | technique) so that we don't wind up calling into an application's version if the application defines them. Inspired by: qpopper's interfering and buggy version of strlcpy Notes: svn path=/head/; revision=114256
* Check for truncation in calls to res_send/res_query/res_search.Jacques Vidrine2002-09-151-2/+2
| | | | | | | Fail when it is detected. Notes: svn path=/head/; revision=103350
* Fix the style of the SCM ID's.David E. O'Brien2002-03-221-3/+4
| | | | | | | I believe have made all of libc .c's as consistent as possible. Notes: svn path=/head/; revision=92986
* Remove __P() usage.David E. O'Brien2002-03-211-4/+4
| | | | Notes: svn path=/head/; revision=92905
* strcpy -> strlcpy paranoiaJacques Vidrine2001-02-021-1/+4
| | | | | | | | Submitted by: Mike Heffner <mheffner@vt.edu> Reviewed by: freebsd-audit Notes: svn path=/head/; revision=71929
* Use issetugid instead of comparing get[ug]id and gete[ug]id.Jacques Vidrine2000-09-301-5/+2
| | | | | | | Suggested by: Don Lewis <Don.Lewis@tsc.tdk.com> Notes: svn path=/head/; revision=66485
* Ignore HESIOD_CONFIG and HES_DOMAIN environmental variables forJacques Vidrine2000-09-291-2/+12
| | | | | | | | | set-user-ID and set-group-ID programs. Suggested by: Danny Braniss <danny@cs.huji.ac.il> Notes: svn path=/head/; revision=66451
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you canJacques Vidrine2000-09-061-0/+572
configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod. = Hesiod has been added to libc (see hesiod(3)). = A library routine for parsing nsswitch.conf and invoking callback functions as specified has been added to libc (see nsdispatch(3)). = The following C library functions have been modified to use nsdispatch: . getgrent, getgrnam, getgrgid . getpwent, getpwnam, getpwuid . getusershell . getaddrinfo . gethostbyname, gethostbyname2, gethostbyaddr . getnetbyname, getnetbyaddr . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr = host.conf has been removed from src/etc. rc.network has been modified to warn that host.conf is no longer used at boot time. In addition, if there is a host.conf but no nsswitch.conf, the latter is created at boot time from the former. Obtained from: NetBSD Notes: svn path=/head/; revision=65532