lukem
d3d3aa621a
Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare)
2009-04-19 06:06:39 +00:00
lukem
cea4b7cdfd
Simplify ypdb_open() API and just use it for opening the DB for reading.
...
Provide a separate ypdb_mktemp() API to open a temporary file read-write.
Use mkstemp() instead of mktemp().
NOTE: makedbm & mkalias tested ok. I couldn't test ypxfer.
2008-02-29 03:00:47 +00:00
lukem
3a5ea89a68
Correct the argument order to ypdb_open().
2008-02-27 01:27:35 +00:00
thorpej
5b0ca568cb
YP -> NIS
2005-02-26 16:33:46 +00:00
dsl
3cca093e74
Add (unsigned char) cast to ctype functions
2004-10-30 15:51:20 +00:00
grant
cacf2d0f45
s/netbsd.org/NetBSD.org/i
2003-11-12 13:31:07 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz
8891dbdc2d
ANSIfy, de-__P(), and remove unused SIG_PF define.
2002-07-06 00:46:12 +00:00
wiz
067d6673ab
Use standard headers, mark up AUTHORS section.
2002-02-02 02:29:15 +00:00
wiz
a2d753e3ef
Whitespace nits.
2002-01-19 11:44:57 +00:00
cgd
25bdbb661e
convert to use getprogname()
2001-02-19 23:22:40 +00:00
lukem
631bc8fbd3
oops, forgot syslog.h
2001-01-11 01:54:08 +00:00
lukem
74590d002a
add openlog(...,pid, daemon)
2001-01-11 00:16:11 +00:00
thorpej
a12b66cf79
Don't abort if pushing to one server in the ypservers map fails.
...
There might be serveral more waiting to be pushed to.
This is only 1/2 of the fix. ypxfer(8) also needs a change to
avoid a false error, but this allows pushes to continue to work,
at least.
Problem noted by aflury@zembu.com and agordon@zembu.com .
2000-09-13 21:40:15 +00:00
matt
3ab02a8704
More #include <stdlib.h> string, etc. cleanup
2000-07-04 20:27:35 +00:00
fvdl
07af740946
The interal SVCXPRT field xp_sock was used, but this is now xp_fd.
2000-06-03 14:33:18 +00:00
lukem
7dc5b4fed5
don't call ypdb_close() until after we're finished using data returned
...
by a previous ypdb_*() operation. seems to fix a problem noted in [bin/8064]
1999-07-25 09:36:02 +00:00
mycroft
d77575d3c8
Clean up SYNOPSIS formatting.
1999-03-07 11:58:22 +00:00
kleink
3ed4fcf61e
In userland, pull in <errno.h> instead of <sys/errno.h> for the declaration
...
of errno.
1999-01-11 22:39:59 +00:00
tv
767b9acc8e
"featch" -> "fetched"
1998-08-19 12:29:00 +00:00
thorpej
e07f4ba47c
Need <string.h> for prototypes.
1997-11-18 22:58:00 +00:00
lukem
8e4ac5fee0
use warn("%s", func()) instead of warn(func())
1997-11-18 07:01:50 +00:00
lukem
48b4356758
rewritten yppush from Chuck Cranor.
1997-11-18 00:32:57 +00:00
lukem
721843cf7a
use ".Tn YP" instead of "YP", fix up some .Nd entries, use .Pa for mapnames
1997-11-08 15:03:21 +00:00
mycroft
6af5bbb01a
Use S_IS*(), not S_IF*.
1997-10-19 19:53:54 +00:00
lukem
88b87b1582
add rcsid
1997-10-13 07:38:09 +00:00
lukem
93c1ffe13c
use err instead of errx, so the user has some idea why the file wasn't opened
1997-10-07 14:59:37 +00:00
lukem
dc497bdd46
cleanup typos, grammaros, thinkos, and misuse of mdoc macros
1997-10-07 14:23:50 +00:00
lukem
ac64718550
- build common/* once, into a library, rather than recompiling each of
...
the files multiple times in the other subdirectories (saves about
10% on compilation time)
- clean up the manual pages
1997-10-02 14:16:12 +00:00
thorpej
3d8138fc0e
Fix compiler warnings (and an awful lot of annoying little bugs).
1997-07-18 21:57:00 +00:00
gwr
10e180cc49
Back out the .PATH.c changes. The .depend problem (and others)
...
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
gwr
012e528f2e
Use .PATH.c: ...
1997-05-06 20:44:56 +00:00
thorpej
5bf41ee467
Error out if we can't determine the YP domain name to be used for
...
the RPC.
1996-08-09 20:24:34 +00:00
thorpej
34ca0ef5c8
Use the key, not the val from the datum when reading the `ypservers'
...
map. SunOS ypservers maps place the host name in the key and the val,
but HP-UX and NetBSD ypservers maps place the hostname only in the
key, leaving the val empty. Since there is no clear standard for this map,
best to play it safe.
1996-08-09 20:18:50 +00:00
thorpej
60aa689c94
A ypserv implementation, originally written by Mats O Jansson, with
...
some changes by me, including misc. cleanup, minor bug fixes, and
brand-new access control list code.
1996-08-09 10:14:49 +00:00