summaryrefslogtreecommitdiffstats
path: root/usr.bin/rdist/message.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mkstemp() returns -1 on failurederaadt2019-06-281-2/+2
|
* Avoid compiler warning about zero-length printf format strings.millert2016-03-301-5/+7
| | | | | | Allow a NULL format in message() and switch the two calls to error() and message() with an empty format string to using NULL. OK deraadt@
* Split out from rdist/defs.h the client-only and server-only bits intoguenther2015-01-201-1/+10
| | | | | | | | | rdist/client.h and rdistd/server.h Only put #includes in .h files that are necessary for the .h to be used; all other #includes go in the .c files Move all extern variable declarations to the .h files, renaming local variables to avoid shadowing Replace me_type member of mntent_t with an "is NFS?" flag bit
* We all have syslog() now; assume LOG_PID and LOG_DAEMONguenther2015-01-201-8/+2
|
* Move MF_* to message.c tooguenther2015-01-201-1/+9
|
* Move struct distoptinfo into distopt.c, killing the DISTOPTINFO typedefguenther2015-01-201-19/+37
| | | | | | Move struct msgtype and msgfacility into message.c, killing the MSGTYPE and MSGFACILITY typedefs Make getdistopt() static to distopt.c
* Move #include <syslog.h> to the one file that needs itguenther2015-01-201-1/+2
|
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+2
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* Assume C89: stdargs, const, and setvbuf()guenther2014-07-051-105/+5
| | | | Assume POSIX: O_NONBLOCK and S_IS{DIR,REG,LNK}
* Use void* in malloc/realloc/calloc wrappersguenther2014-07-051-2/+2
|
* Constipate some functionsguenther2013-12-211-9/+9
|
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-18/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* remove some warnings:chl2007-09-141-3/+2
| | | | | | | unused variable `variable' `variable' might be used uninitialized in this function ok gilles@ ray@
* use strcspn to properly overwrite '\n' in fgets returned buffergilles2007-09-111-4/+3
| | | | ok pyr@, ray@, millert@, moritz@, chl@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* o Sync w/ freerdist 0.92 minus the compress optionmillert2003-05-141-175/+108
| | | | | | | o KNF and ANSIfy the function headers Sparse file support is currently a no-op since it didn't work. Proper sparse file support will be added later.
* strcpy/strcat/sprintf removal; krw@ OKmillert2003-04-191-4/+5
|
* kill another strcat; ok krwderaadt2003-04-061-4/+5
|
* strings; ok miod ho krwderaadt2003-04-051-25/+27
|
* kill more registersmpech2001-11-191-15/+15
| | | | millert@ ok
* seperate -> separate, okay aaron@provos2000-11-101-3/+3
|
* Fix a serious memory consumption problem when running over directoriesmillert1999-02-041-4/+4
| | | | | that contain many hard-linked files; johnh@isi.edu Also add an xstrdup() that behaves like xmalloc() on failure.
* rdist 6.1.4 + OpenBSD patches + some -Wallmillert1998-06-261-20/+25
|
* Now have a common message.c instead of two copies.millert1996-07-291-5/+4
|
* Updated to rdist 6.1.3. Used real snprintf() (instead of string lengthmillert1996-07-251-14/+15
| | | | in the format) since we have it.
* rcsidderaadt1996-06-261-1/+3
|
* mkstemp & fdopenderaadt1996-06-251-3/+8
|
* rdist 6.1.2dm1996-03-051-1/+1
|
* rdist 6.1.1dm1996-02-031-0/+868