Commit Graph

2464 Commits

Author SHA1 Message Date
lukem
9311657fdc replace bootp{d,ef,gw,test} with bootp 1998-03-15 01:16:32 +00:00
lukem
7b9e551896 move (using repository copy) bootp{d,ef,gw,test} into a common hierarchy
with a libcommon - to stop unnecessary recompilation of the source.
add Makefile* to suit.
1998-03-15 01:13:24 +00:00
lukem
0cab215df5 remove WARNS=0 1998-03-14 04:43:06 +00:00
lukem
9493bb7939 warnsify 1998-03-14 04:39:53 +00:00
thorpej
294dcf56b9 Fix typos lossage on the Alpha. 1998-03-11 17:44:02 +00:00
fair
95f309a67f adjust documentation to reflect reality per PR#4859 1998-03-11 05:40:06 +00:00
christos
50e0331ef5 Resolve conflicts. 1998-03-06 18:17:13 +00:00
christos
eed5e96410 Import xntp 3-5-92 1998-03-06 16:32:56 +00:00
tron
924093ca0b Include unistd.h to import declaration of getopt(3) 1998-03-05 23:23:29 +00:00
christos
15a8029930 WARNSify 1998-03-05 18:23:31 +00:00
christos
b1af8732b4 Remove WARNS=0 1998-03-05 18:03:35 +00:00
christos
150424aaf5 WARNSify 1998-03-05 14:02:00 +00:00
cgd
83202075dd allow LDSTATIC definition to be overridden by bsd.own.mk/mk.conf 1998-03-04 01:38:57 +00:00
cgd
af8d9682ca NOLINT isn't necessary here, so don't define it. 1998-03-04 01:38:38 +00:00
cgd
0c1dd0740a update for ipf/Makefile LDSTATIC changes 1998-03-03 19:24:27 +00:00
cgd
5de00677ba fix the "Back out the ipnat static change." commit (rev 1.18). Bernd
accidentally clobbered ipf's LDSTATIC/BINDIR defn's, instead of ipnat's.
(Noticed when he reminded me to update the script for my ipf LDSTATIC
changes.)
1998-03-03 19:23:16 +00:00
thorpej
a14f3dad40 Fix printf formats on Alpha: cast quads to long long for printing w/
%qd.
1998-03-03 07:35:50 +00:00
cgd
8aaf609a0a allow LDSTATIC definition to be overridden by bsd.own.mk/mk.conf 1998-03-02 19:42:25 +00:00
fvdl
6559ed7a58 Fix these for ufs/ufs/ufsmount.h usage. Missed in the merge. 1998-03-01 23:48:58 +00:00
fvdl
e5bc90f40c Merge with Lite2 + local changes 1998-03-01 02:20:01 +00:00
perry
9724404197 gettable is long obsolete. 1998-02-27 16:00:17 +00:00
perry
ae09a69c7e htable is long obsolete. 1998-02-27 15:59:19 +00:00
perry
56bd64fcbd remove gettable and htable, + resort/reformat 1998-02-27 15:57:07 +00:00
christos
0499e8aedb WARNSify 1998-02-22 12:17:31 +00:00
fvdl
ed4bb065a1 When getting an unmount request from a non-reserved port, don't loop
forever.
1998-02-21 23:32:19 +00:00
mycroft
4462053ab3 Fill in missing (default) mmap(2) flags. 1998-02-20 09:27:18 +00:00
wrstuden
6cd4f9d65d Up the minor number for libamu.so to 1. The update in January
added new routines, so we have a new interface.

Aproved by christos.
1998-02-20 07:43:09 +00:00
thorpej
129a20a049 Fix a think'o that caused "config netbsd root on ? type ffs" to fail.
Fixes PR #5021.
1998-02-20 00:11:02 +00:00
thorpej
a522c869e5 Fix a few semantic problems wrt. file-system, deffs, and options, pointed
out by Chris Demetriou.
1998-02-19 06:13:51 +00:00
thorpej
d12d850cfe Add a "deffs" keyword, similar to "defopt", that defines file systems.
Only things defined with this keyword will be allowed on "file-system"
lines in the kernel config files.

By default, -D... directives for file systems are not generated, since
they are not needed for most file systems now that vfs_conf.c is gone.
However, some file systems must have dependencies generated on them
(e.g. NFS, UNION).  So, provide a way to specify an option file for
these file systems.
1998-02-19 00:27:00 +00:00
thorpej
ed063c61d5 Emit the default set of file systems as vfs_list_initial[]. 1998-02-18 07:00:27 +00:00
perry
ba7b5f16ff add -DPMAP_NEW if PMAP_NEW is on in mk.conf 1998-02-18 03:54:58 +00:00
thorpej
ea4d1b7ea1 Rather than using a separate "class" keyword, treat device classes like
special attributes.  From Chris Demetriou.
1998-02-16 22:05:35 +00:00
lukem
e8664c7183 revert; we can't break the existing ABI and API 1998-02-12 03:32:51 +00:00
lukem
e2d55944f4 minor knf 1998-02-10 07:04:21 +00:00
lukem
80d1e4afc8 use %d instead of %ld to print rpc version 1998-02-10 06:46:10 +00:00
lukem
f18da82e69 use u_int32_t instead of u_long 1998-02-10 06:32:42 +00:00
mrg
8a1743897f nit: order rcsid/sccsids 1998-02-10 03:50:24 +00:00
mrg
92e05e0e2c add a verbose (-v) flag for when adding/deleting arp entries. 1998-02-10 03:45:05 +00:00
mrg
279ce528ce add -DUVM to CPPFLAGS if defined(UVM) 1998-02-09 06:25:15 +00:00
thorpej
b06b31d8e2 Sendmail configuration for zhadum.netbsd.org. 1998-02-08 06:57:00 +00:00
cgd
0aa4deb7f3 lint 1998-02-07 00:03:19 +00:00
jonathan
0ed5e261c4 Tell user to use xnptdc to view kern.ntptime, as a workaround until
sysctl and libntp agree about "progname".
Based on a patch suggested by Soren S. Jorvang <soren@t.dk> in PR bin/4433.
1998-02-06 21:18:46 +00:00
mikel
e134619946 must track changes to src/sys/lkm/netinet/if_ipl/Makefile here 1998-02-06 06:44:47 +00:00
perry
34a98169f0 macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:54:12 +00:00
gwr
f4889dbff7 Begone KERNBASE, and KERNTEXTOFF too! 1998-02-05 03:46:46 +00:00
thorpej
7137b45cd0 Cast time_t to long for printing. 1998-02-04 21:51:44 +00:00
christos
6efeed277f Don't hardcode 1900 1998-02-04 15:29:19 +00:00
christos
c27c461ff9 Use strftime. 1998-02-04 15:27:28 +00:00
christos
9f5b6131b3 Y2K fixes: in arpadate (currently not used) format the time using strftime,
using the format other mail programs use.
1998-02-04 15:27:19 +00:00
perry
75a6e03535 change includes to fix compiler warning 1998-02-03 04:55:59 +00:00
perry
6cbd3cb0ff change #ifdef around include to fix compiler warning 1998-02-03 04:51:29 +00:00
perry
a12002f43a change includes to fix compiler warning 1998-02-03 04:39:14 +00:00
frueauf
fbebae54cf check_error uses type "const char *" instead of "char *" as argument.
reflects recent change to cron.h.
1998-02-01 14:36:36 +00:00
christos
cced5db98f Determine endian-ness and define WORDS_BIGENDIAN if appropriate. 1998-02-01 13:48:08 +00:00
christos
1773ee5638 Add -DLBL_ALIGN to handle architectures that need memory alignment. 1998-02-01 13:46:53 +00:00
christos
12a6e4b92e Add missing ARGS_MAX 1998-01-31 15:07:14 +00:00
christos
0335fca704 Remove crappy globbing stubs. If the feature needs to be added it should
be using glob(3).
1998-01-31 14:44:47 +00:00
christos
9ac7be0692 Warnsify:
- add __RCSID
	- remove nested comments
	- remove register and auto keywords
	- change into posix signals
	- fix prototypes
1998-01-31 14:40:13 +00:00
veego
48b59e11c5 Back out the ipnat static change. 1998-01-24 19:15:04 +00:00
veego
ccd79b8dca Update for the static ipnat programm. 1998-01-23 22:34:12 +00:00
veego
a0f14625a7 Build ipnat statically and install it into /sbin. Fix pr4879. 1998-01-23 22:32:08 +00:00
lukem
93480d2ed5 use .Tn YP instead of YP 1998-01-23 13:38:24 +00:00
lukem
a985fee84c * -insecure is for binding to insecure *servers*, not insecure *clients*.
noted by Bill Studenmund <skippy@macro.stanford.edu>.
* use .Tn YP instead of YP
1998-01-23 13:36:57 +00:00
mikel
332409ce59 update to match new reality (/usr/lib/supfiles -> /etc/supfiles) 1998-01-21 09:10:40 +00:00
mikel
ef33c3eddc Add -DEE_XXX to CPPFLAGS so that system supfiles are obtained from
/etc/supfiles instead of /usr/lib/supfiles.
1998-01-21 09:07:04 +00:00
christos
9fab7a4ffa PR/4837: Jeff Thieleke: inetd does not compile without libwrap. 1998-01-20 16:44:22 +00:00
hubertf
fdbf4d9eec Quote filenames handed off to tar, chmod, chown. (Fixes possible security
problem discovered while looking at pkgsrc/audio/tracker).
1998-01-19 00:24:03 +00:00
christos
02f88f3555 PR/4835: Izumi Tsutsui: rarpd does not set the link level address length.
While there change "6" to "ETHER_ADDR_LEN"
1998-01-17 11:38:36 +00:00
cgd
27ef674380 (char)-1 != (int)-1 on unsigned-char machines. 1998-01-15 22:58:28 +00:00
enami
491b9bd801 Remove redundant assignment. 1998-01-14 01:15:24 +00:00
hubertf
9bc65afc99 Check length of given user name to (slip)login. Fixed the exploit in
http://www.rootshell.com/archive-Rbf4ahcmxzw5qn2S/199801/sliplogin.c.
1998-01-12 08:59:56 +00:00
thorpej
bc1733bc88 Add code to emit the cfdriver structures into ioconf.c. This requires
a change to the config grammar, to specify a device's class (i.e. DV_xxx)
like:

device	sd class disk: ...

Also emit an ioconf.h, which contains extern declarations of the
cfdriver structures.

While I'm here, add support for specifying multiple options per defopt
line, as well as specifying the file name in which the options will
appear.

defopt	foo bar baz

generates "opt_foo.h", "opt_bar.h", and "opt_baz.h"

defopt	opt_mumble.h foo bar baz

generates "opt_mumble.h" which contains all three options.

Also, clean up and fix some bugs in the code that generates header files.
1998-01-12 07:37:40 +00:00
perry
3fe138c146 RCS Id Police. 1998-01-09 08:03:16 +00:00
perry
4db5a54188 RCS Id Police. 1998-01-09 06:06:02 +00:00
lukem
028802f851 document net.inet.ip.anonport{min,max} 1998-01-05 09:59:03 +00:00
lukem
0acc42ca87 fix rcsid 1998-01-05 05:59:45 +00:00
thorpej
1679a04502 Change a couple of exit()s to _exit(), to make it safe for vfork(). 1997-12-31 06:59:54 +00:00
mikel
1f38aba134 auto-rebuild /etc/aliases.db to match 'traditional' behavior,
suggested by perry
1997-12-22 05:53:06 +00:00
kleink
b90b902782 Update a comment: neither does POSIX define the `-h' option, nor does it
define symbolic links.
1997-12-21 18:34:30 +00:00
kleink
65d1679f46 Add a paragraph to document the clearing of the setuid and setgid bits unless
invoked by the super-user.
1997-12-21 18:11:19 +00:00
christos
0c52e80b3e Install the docs. 1997-12-21 16:14:41 +00:00
christos
24209f3874 Obj dir and groff fixes. 1997-12-21 16:00:49 +00:00
christos
8f09e5bcdb Use obj dirs 1997-12-21 15:53:38 +00:00
veego
65e263edc6 You can't use %\ns in a fprintf. 1997-12-21 13:35:34 +00:00
darrenr
19ab75620c add missing \n's for fprintf 1997-12-21 12:53:01 +00:00
christos
16c7b8eb7e PR/4569: Phil Nelson: inconsistent documentation / examples. 1997-12-20 20:36:04 +00:00
christos
24ef784453 PR/4383: Martin Husemann: ipnat fails to mention file name on open errors 1997-12-20 20:29:12 +00:00
christos
5e54e11fbe PR/3830: Enami Tsugutomo: ipnat -l prints netmask in dot-notation even if
contiguous.
1997-12-20 20:18:47 +00:00
christos
96b7728cb2 PR/3576: Enami Tsugutomo: getline overruns and bugs 1997-12-20 20:07:47 +00:00
bad
0a833b6587 Remove leftovers from last rcsmerge. 1997-12-15 16:23:46 +00:00
mrg
1d8157e01a use MAP_PRIVATE|MAP_FILE 1997-12-15 04:21:33 +00:00
thorpej
c3b579a571 Mention net.inet.tcp.init_win. 1997-12-11 23:38:01 +00:00
thorpej
406a5ad503 Fix a paste-o. 1997-12-11 18:50:58 +00:00
mycroft
a88cef6970 Ignore SIGPIPE, which may be caused by non-forking internal TCP services if
the remote side closes the connection before we answer.
1997-12-04 06:39:02 +00:00
mikel
57c740296d eliminate invalid options from SYNOPSIS; from Johan Danielsson in PR 4570 1997-12-02 08:21:45 +00:00
kleink
96720d8f9c Remove a paragraph obsoleted by the recently implemented `-h' option; add
Xref to lchown(2).
1997-11-26 17:37:53 +00:00
is
d4fc5fab1b If we answer a RARP request, also add the mapping to the local arp cache.
[This was broken when the 4.4BSD ARP table changes were done, and never
repaired.]
Inspired by Jarle Greipsland, PR 4531; code stolen from arp.a and cleaned
up (mostly removing global variables).
XXX As pointed out in the PR, this should be in some library (libutil?),
to be usable by other servers like bootpd and dhcpd.
1997-11-24 18:43:12 +00:00
veego
e7c9edc89c - New FILES section for /dev/ipauth, /dev/ipl and /dev/ipstate
- Add ipl(4), ipmon(8) and ipnat(8) to the SEE ALSO section
1997-11-24 14:39:27 +00:00
veego
c72cabd3ae - Add /dev/ipauth, /dev/ipl, /dev/ipstate and /usr/share/examples/ipf
to the FILES section
- Add iptest(1), ipf(4), ipnat(5) and ipfstat(8) to the SEE ALSO section
- s/ipftest(8)/ipftest(1)/
1997-11-24 14:38:34 +00:00
veego
cb4b3eba6c - New FILES section for /dev/ipauth, /dev/ipl, /dev/ipnat and /dev/ipstate
- Add ipl(4) and ipnat(4) to the SEE ALSO section
1997-11-24 14:36:27 +00:00
veego
0845d43628 Add ipsend(5) and resort the SEE ALSO section. 1997-11-24 14:35:52 +00:00
veego
398c9613b6 Add ipsend(1), iptest(1), hosts(5), protocols(5), and services(5) to the
SEE ALSO section.
1997-11-24 14:34:40 +00:00
veego
72c99f0790 s/ipsend(1)/ipsend(5)/ 1997-11-24 14:33:14 +00:00
veego
ec33220e8b - remove the the empty FILES section
- s/ipresend(1)/ipsend(1)/ and add ipsend(5)
1997-11-24 14:31:30 +00:00
veego
111d2c1172 - New FILES section for /dev/ipnat and /usr/share/examples/ipf
- Remove ipftest(1) from the SEE ALSO section
1997-11-24 14:30:02 +00:00
veego
d58e05351c - Add /dev/ipnat and /usr/share/examples/ipf to the FILES section
- Add hosts(5), services(5) and ipf(8) to the SEE ALSO section
1997-11-24 14:28:33 +00:00
veego
e8363d9e81 New FILES section for /dev/ipnat and move the BUGS section at the end. 1997-11-24 14:27:45 +00:00
veego
da4678c8db - Add /dev/ipnat and /dev/ipstate to the FILES section
- Add ipl(4) and ipnat(8) to the SEE ALSO section
1997-11-24 14:27:14 +00:00
veego
a8799fada7 remove the empty FILES section and resort the SEE ALSO section 1997-11-24 14:26:17 +00:00
veego
04c6eee3a5 - s/vmunix/netbsd/
- s/ipl/ipstate/
- Add /dev/ipstate to the FILES section
1997-11-24 14:25:28 +00:00
veego
be87239f57 Remove the reference to snoop(1m), etherfind(8c) and dlpi(7p). 1997-11-24 08:35:44 +00:00
veego
89b8e7ca72 Remove the refernce to etherfind(8c). 1997-11-24 08:34:35 +00:00
lukem
0e3b290810 fix .Nx usage (use 1.0 instead of 0.9a, etc), and other minor cleanups 1997-11-24 06:28:50 +00:00
veego
754a245e76 Sync with the ipresend changes. 1997-11-23 23:20:08 +00:00
veego
6e1753fbee Add the ipresend directory and sort the SUBDIR entries. 1997-11-23 23:14:34 +00:00
veego
8e1315283a Add ipft_pc.c to the SRCS line to fix a build error. 1997-11-23 23:06:32 +00:00
veego
68c9310ae3 s/IPF/MKFILTERS/ and add a FILES section. 1997-11-23 22:12:03 +00:00
veego
95fbaa5446 Fix the SEE ALSO section:
old: ipfstat(1), ipftest(1), ipf(5), mkfilters(1)
new: ipf(4), ipf(5), ipfstat(8), ipftest(1), mkfilters(1)
1997-11-23 21:58:51 +00:00
veego
77f0313d88 Fix the SEE ALSO section:
old: ipf(1), ipftest(1), mkfilters(1)
new: ipf(8), ipftest(8), mkfilters(1)
1997-11-23 21:58:28 +00:00
veego
47f9129923 Fix the formated SYNOPSIS section and fix the SEE ALSO section:
old: ipfstat(1), ipf(1), ipf(5)
new: ipf(5), ipf(8), ipfstat(8)
1997-11-23 21:57:55 +00:00
veego
95eb61a865 Remove the reference to dlpi(7p). 1997-11-23 21:57:02 +00:00
veego
e805977ac0 This is section 8 and not 1.
Fix the SEE ALSO section:
old: ipfstat(1), ipftest(1), ipf(1), ipnat(5)
new: ipnat(5), ipf(8), ipfstat(8), ipftest(1)
1997-11-23 21:56:00 +00:00
veego
24ef9d9374 Fix the SEE ALSO section:
old: ipnat(1), ipf(5), ipnat(4)
new: ipf(5), ipnat(4), ipnat(8)
1997-11-23 21:55:30 +00:00
veego
f70c10d1d4 Fix the formated SYNOPSIS section and fix the SEE ALSO section:
old: ipfstat(1), ipf(1), ipf(4), ipnat(5)
new: ipf(4), ipf(8) ipnat(5), ipnat(8), ipfstat(8)
1997-11-23 21:55:00 +00:00
veego
78cd44279b Fix the SEE ALSO section: ipf and ipfstat are in section 8 and not in
section 1.
1997-11-23 21:05:38 +00:00
veego
91cc2be060 Fix the SEE ALSO section: ipf(8) and not ipf (1) 1997-11-23 21:01:58 +00:00
veego
ca3ac8917a update for mkfilters(1). 1997-11-23 20:59:42 +00:00
veego
423fabec06 Remove the '.if make(install)' for the rules subdirectory to build the
manpage for mkfilters.
1997-11-23 20:56:35 +00:00
veego
02effaf52c Add the mkfilters perl script and the manpage for it. 1997-11-23 20:54:14 +00:00
veego
69b4e69ea3 import missing files from ip-filter 3.2.1 1997-11-23 20:46:46 +00:00
mellon
0c2e0b74fe Build the dhclient.leases and dhclient-script man pages 1997-11-22 09:37:25 +00:00
mellon
911d9b399b Build the dhcpd.leases man page 1997-11-22 09:32:12 +00:00
mellon
5c92c77573 Build the dhcp-options man page 1997-11-22 09:31:00 +00:00
mellon
eab517a1d1 ISC DHCP Snapshot on November 22, 1997 1997-11-22 09:13:21 +00:00
veego
a77f2190fd Fix the case problem of the flags field and a problem with a # in the
middle of a line (pr#4545). Thx Ted.
1997-11-20 10:35:15 +00:00
christos
ffb419d374 Enable CHAPMS and MSLANMAN. Make them compile. I don't have access to a test
setup to verify that it works.
1997-11-19 11:59:58 +00:00
fvdl
9bef2d1d82 If the arp cache is empty, don't even attempt to retrieve it. Fixes
'bad address' message when the cache is empty.
1997-11-18 23:14:38 +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
6236ac0333 use .Tn YP 1997-11-18 06:52:15 +00:00
mrg
732e64a580 fix PR#4412 (from darren reed). 1997-11-18 06:09:25 +00:00
lukem
e91c20c007 overhaul code, provide saner error messages, etc 1997-11-18 00:44:19 +00:00
lukem
a2a60bf6a6 note that INSECURE=no isn't yet supported for netbsd clients 1997-11-18 00:37:23 +00:00
lukem
48b4356758 rewritten yppush from Chuck Cranor. 1997-11-18 00:32:57 +00:00
mrg
8ad67291ce document -F s (from darren reed). 1997-11-17 14:57:47 +00:00
agc
5c0d2a645d Implement default -Ia arg to pkg_info a bit differently. 1997-11-17 12:08:59 +00:00
christos
f5024bbed0 PR/4509: Jarle F. Greipsland: avoid redefinition of rfc931_timeout. 1997-11-16 21:30:25 +00:00
is
c4aac00e95 Make deleting proxy arp entries on ARCnet interfaces work again.
Fixes my own last PR, whose number I don't know yet.
1997-11-16 11:25:08 +00:00
msaitoh
39c2acb633 fix typo 1997-11-15 21:01:36 +00:00
msaitoh
6bbe51cef1 fix typo 1997-11-15 17:42:07 +00:00
mrg
d2143111bd merge ip-filter 3.2.1 1997-11-14 12:57:55 +00:00
mrg
61cbfaca09 import ip-filter 3.2.1 1997-11-14 08:03:01 +00:00
thorpej
ade3ce9789 Fix int vs. size_t lossage. 1997-11-13 18:35:57 +00:00
thorpej
0e42d89fac Oops! Forgot this yesterday: Add read_line.o goo. 1997-11-13 17:09:04 +00:00
thorpej
481e558f6c Oops! Forgot to commit this: build read_line.o 1997-11-13 17:05:20 +00:00
hubertf
793d82f785 Alter the default behaviour of pkg_info. With no options given, behave as
if -Ia was given, instead of showing usage.
1997-11-13 15:15:48 +00:00
veego
84123ddbb6 - s/samples\/ipf/examples\/ipf/
- Added missing ipf examples from the import of 3.2
1997-11-13 09:46:41 +00:00
thorpej
e6889efbce Make sup(1) handle lines continued with '\'. Fixes PR #4430, from
Ty Sarna <tsarna@endicor.com>.
1997-11-13 01:05:28 +00:00
veego
67ed3b4d0c Add the ipftest.1 manpage. 1997-11-11 10:14:42 +00:00
veego
5048b71642 Fix some manpage section numbers and remove the SEE ALSO entry for
snoop(1m).
1997-11-11 10:11:19 +00:00
mrg
dc05f41d80 add missing .Nm sections 1997-11-11 10:07:34 +00:00
veego
13cfd2b17f Updated for the missing ipftest.1 manpage. 1997-11-11 10:07:31 +00:00
veego
525c710d19 import a missing manpage from ip-filter 3.2 1997-11-11 10:02:25 +00:00
hubertf
fa829ce599 Document $PKG_PATH and $PKG_DBDIR 1997-11-10 00:29:21 +00:00
cjs
60c8449a61 sendmail 8.8.8 merge 1997-11-09 22:25:58 +00:00
cjs
3016f7f3b8 sendmail 8.8.8 import 1997-11-09 22:15:17 +00:00
cjs
3acc53a34a sendmail 8.8.8 import 1997-11-09 22:14:04 +00:00
lukem
4cda73731b more fixes for OPTIMIZE_DB (seems like this code was an unfinished idea;
i've fixed a lot of bugs in it):
* implement yp_close_map(struct opt_map *), to close a specific map,
  using the guts of yp_close_last()
* simplify yp_close_last() to use yp_close_map()
* ypdb_open_db(): add the st_dev, st_ino, and st_mtime of each map to
  the cached info, and check if changes if the db is cached; if so, close
  the map and reopen it fresh. also uncache entries if the domain or
  file disappear
1997-11-08 15:36:09 +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
thorpej
3d2b522093 Don't prototype ether_aton() here if __NetBSD__. 1997-11-08 05:57:15 +00:00
mrg
507e5c88b3 use warn not warnx to find out why the open failed (as old quot did). 1997-11-06 14:36:45 +00:00
lukem
699d49fc00 don't ignore blank lines after a continuation backslash 1997-11-06 00:27:58 +00:00
fair
f97bb69df7 grammatical errors fix from PR#4409 1997-11-05 18:46:07 +00:00
lukem
71d53f5fd6 use in-house localhostname instead of gethostname - returns FQDN 1997-11-04 11:43:49 +00:00
lukem
1140eceb13 add { } in the right place; indentation alone isn't sufficient for
if (test1)
		if (test2)
			error()
	else {
		...
	}
this happened when i changed test2 from a void statement to actually
checking its return value.

the effect of this? a YP_MASTER_KEY value wasn't being added to the
generated databases, which was Not Good.
1997-11-04 11:28:46 +00:00
ross
4b634c4e10 Much cleaner fix for alignment error bug. 1997-11-03 21:17:17 +00:00
lukem
a8b7ec8d99 ensure sizeof hostname buf for ether_(ntohost|line) is >= MAXHOSTNAMELEN + 1 1997-11-02 14:25:25 +00:00
lukem
c32b6d75d3 ensure sizeof hostname buf for ether_(ntohost|line) is >= MAXHOSTNAMELEN + 1 1997-11-02 14:25:23 +00:00
lukem
f4fb444bd9 * rewrite read_line(), partially based on get_line in netgroup_mkdb.c:
- use fgetln() instead of fgets()
	- store info in internal buffer
	- fix \\ support
	- count line numbers internally, so \\ lines don't mess up count
* ypdb_store():
	- ensure that the length of key or val doesn't exceed YPMAXRECORD
* makedbm, mknetid, revnetgroup, stdethers, stdhosts:
	- improve error handling
	- take advantage of rewritten read_line(), and cleanup line parsing
	- don't print trailing ` ' for key/val pairs with an empty val
* Makefile.yp:
	- fix up building of ypservers (from Chuck Cranor)
* ypinit.sh:
	- remove leading spaces in variable assignment (from Chuck Cranor)
1997-11-01 14:24:50 +00:00
enami
af29cb2306 Sync with release branch so that it compiles.
- include arpa/inet.h in ipsopt.c
- declare yyerror() in iplang_l.l
1997-11-01 09:12:21 +00:00
lukem
3e8e744696 getopt returns -1 not EOF 1997-11-01 06:49:14 +00:00
ross
ba9c8e00db Eliminate some alignment assumptions in packed IP/UDP frames. (port-alpha issue) 1997-10-31 23:32:24 +00:00
mrg
60c28e1f95 sigh. merge ipfilter 3.2 onto the trunk. merge to the branch was a mistake. 1997-10-30 16:08:54 +00:00
mrg
44c002beb1 import ip-filter 3.2 1997-10-30 05:27:24 +00:00
christos
1815a8d4a4 Resolve RCSID conflicts; hopefully this is the last time :-) 1997-10-26 00:24:41 +00:00
christos
5d8bee0f9f New version from Erez 1997-10-26 00:02:11 +00:00
lukem
736ba086df WARNSify, KNFify 1997-10-25 13:45:55 +00:00
fvdl
b592c266f8 3rd argument to msync() is now needed by NetBSD as well. 1997-10-25 10:49:36 +00:00
lukem
ad4916f857 fix spellos and incorrect man page references 1997-10-25 10:18:36 +00:00
lukem
0a94f4f077 use CPPFLAGS instead of CFLAGS 1997-10-25 06:57:53 +00:00
thorpej
bab116cf5f To print a size_t, cast to u_long and use %lu printf format so that
this works on the Alpha.
1997-10-25 01:29:30 +00:00
enami
7a8787ba53 Make this compile again on NetBSD/alpha; cast off_t variable to long long
so that it matches printf format `%qd'.
1997-10-24 03:12:06 +00:00
mrg
bc13fc9251 prefer snprintf() to sprintf() 1997-10-24 01:41:47 +00:00
mrg
d23e58fc15 while catman doesn't `work' properly yet, use snprintf() when creating the
man paths, and add man section 9.  hopefully, this program will actually
work soon.
1997-10-24 01:31:35 +00:00
enami
a5372bf523 Add missing newline at the end of exit message. 1997-10-23 12:35:12 +00:00
enami
758c6a0d0f Work around GCC uninitialized variable warning. 1997-10-23 12:30:32 +00:00
enami
7ffe3c6167 Make this compile on NetBSD/alpha; to print size_t variable,
- use %lu instead of %d.
- cast the variable to (u_long) so that this also compiled on NetBSD/i386.
1997-10-23 12:26:02 +00:00
lukem
44c22033e4 use CPPFLAGS instead of CFLAGS 1997-10-23 06:31:59 +00:00
lukem
6e1d64c8d1 quieten gcc -Wall 1997-10-23 06:29:16 +00:00
lukem
f0fe153c0a use CPPFLAGS instead of CFLAGS 1997-10-23 06:27:34 +00:00
fair
461f420e35 initialize "cp" in hasquota() to avoid gcc/sparc compiler error:
repquota.c:287: warning: `cp' might be used uninitialized in this function
1997-10-23 04:53:03 +00:00
fair
f23cf79ee0 Initialize "cp" to make gcc/sparc error go away:
quotaon.c:222: warning: `cp' might be used uninitialized in this function
1997-10-22 18:43:16 +00:00
christos
1175f55b11 Use a db(3) hash database instead of shared memory. Don't fork() to service
requests in the database when restarting.
1997-10-21 20:38:03 +00:00
is
3b81cd07b7 Only map 16MBytes of file, enough for some 16000 hosts on the LAN.
Stopgap fix for PR 4225 by Matthias Scheler (rpc.statd doesn't run on m68k).

XXX This should be done in a different way. XXX

Matthias proposes to use a PMAP capable of mapping more than 256 MB
per user process (You can do this by changing your vm_param constants
even now).

However, statd could use saner data structure to save on address space
easily. E.g., most host names will be much smaller than the allocated
1024(+1 for trailing zero) bytes. Using variable length names would
allow, depending on environment, a factor of 30 more hosts per address
space.

Btw, if anybody really needs more than 16k hosts handled by statd, the
data structure is unsuable anyway; currently, the array of entries is
linearly searched. Something like a DB_BTREE should be used.
1997-10-21 13:33:23 +00:00
mrg
6b8ca7ecc6 fix compile warning on the sparc (erik fair). 1997-10-21 06:40:40 +00:00
mellon
0cbb4ea470 NetBSD-style Makefile for statmsg 1997-10-21 00:04:47 +00:00
mellon
112397fa9d NetBSD-style Makefile for sysconfd 1997-10-21 00:03:54 +00:00
mellon
75ed7158ea Add sysconf.c 1997-10-21 00:02:55 +00:00
mellon
8f105dcd01 NetBSD 1.3 Alpha snapshot of ISC dhcp 1997-10-20 23:28:10 +00:00
drochner
24393e44bb Oops, mrg had a reason to use %ld format.
We really need a cast to print off_t values.
1997-10-20 18:42:17 +00:00
drochner
462ad8b47d fix printf format 1997-10-20 18:25:05 +00:00
drochner
41e3b9d2f4 The previous changes were not sufficient, we need more kvm reads. 1997-10-20 18:12:56 +00:00
drochner
c111d4e6c2 make compile after NFS (struct nfsnode) changes 1997-10-20 17:32:51 +00:00
drochner
2b0cbc07da include <sys/cdefs> before __RCSID 1997-10-20 17:18:04 +00:00
veego
42d21d7042 Add a SEE ALSO section for other graphics manpages. 1997-10-20 14:31:18 +00:00
scottr
94cf433266 Add support for DTR/CTS flow control, from Bill Studenmund. 1997-10-20 08:07:47 +00:00
mycroft
6af5bbb01a Use S_IS*(), not S_IF*. 1997-10-19 19:53:54 +00:00
mycroft
e8018f6da9 Use S_IS*(), not S_IF*. 1997-10-19 19:40:21 +00:00
mycroft
004f255040 Use S_IS*(), not S_IF*. 1997-10-19 19:27:40 +00:00
fvdl
88d9f0f6a9 Add a warning about exporting a filesystem using WebNFS and also exporting
it the normal way, read/write to specific clients.
1997-10-19 15:29:20 +00:00
mrg
a62207fee8 fix compile warnings on the alpha. 1997-10-19 09:56:10 +00:00
mrg
ca2afdd453 fix compile warnings on the alpha. 1997-10-19 09:39:35 +00:00
mrg
e180ed08d5 fix compile warnings on the alpha. 1997-10-19 09:23:29 +00:00
kml
6b86b260cb change sysctl net.inet.icmp.mtudisc to net.inet.ip.mtudisc 1997-10-18 21:18:28 +00:00
mrg
d71f6e87ae clean up, WARNS. 1997-10-18 17:31:35 +00:00
drochner
01a642fa68 The third argument to msync() got lost - bring it back. 1997-10-18 14:11:43 +00:00
lukem
ffbc1b4bf5 deprecate register, s/bcopy/memmove 1997-10-18 11:38:26 +00:00
lukem
b46ed65876 use memset instead of bzero 1997-10-18 11:37:45 +00:00
lukem
e5d6d67c63 deprecate register, use warn/err 1997-10-18 11:37:10 +00:00
lukem
7e8074195e use memcmp/memset/memmove instead of bcmp/bzero/bcopy 1997-10-18 11:27:49 +00:00
lukem
64bd1fd0d2 use memmove instead of bcopy 1997-10-18 11:23:55 +00:00
lukem
7f43427b52 use strchr/strrchr/memset/memmove instead of index/rindex/bzero/bcopy 1997-10-18 11:23:20 +00:00
lukem
22597304f5 use memset instead of bzero 1997-10-18 11:23:19 +00:00
lukem
dd30ff553b use strchr/strrchr/memset/memmove instead of index/rindex/bzero/bcopy 1997-10-18 11:23:03 +00:00
lukem
a13f0387b9 use memcmp/memset/memmove instead of bcmp/bzero/bcopy 1997-10-18 11:18:39 +00:00
lukem
de441420bd deprecate register, use err/warn instead of perror, memmove instead of bcopy 1997-10-18 11:11:18 +00:00
lukem
c355b33f75 deprecate register 1997-10-18 11:06:52 +00:00
lukem
2cd3ac027a use emset instead of bzero 1997-10-18 11:06:08 +00:00
lukem
031fee8254 use strchr/strrchr/memset/memmove instead of index/rindex/bzero/bcopy 1997-10-18 11:05:34 +00:00
lukem
88e3ac566e use memcmp/memset/memmove instead of bcmp/bzero/bcopy 1997-10-18 11:02:19 +00:00
lukem
fbafdc25f8 use memcmp/memset/memmove instead of bcmp/bzero/bcopy 1997-10-18 08:52:17 +00:00
lukem
c9fcc32882 deprecate register, use memset/memmove instead of bzero/bcopy 1997-10-18 08:40:40 +00:00
lukem
7e44e0ebc2 deprecate register, use memset/memmove instead of bzero/bcopy 1997-10-18 08:18:00 +00:00
lukem
5c351d3f52 use errx instead of perror 1997-10-18 08:13:06 +00:00
lukem
73d91b2129 WARNSify, deprecate register, remove unused functions 1997-10-18 07:58:56 +00:00
lukem
7cbe3d2c32 use __progname 1997-10-18 07:32:17 +00:00
lukem
8ff96fa48d use err() 1997-10-18 07:26:45 +00:00
lukem
9f6ff4ad6f use string.h instead of strings.h 1997-10-18 07:05:31 +00:00
mikel
af641bd13a xref tcpdump(8), not nonexistent tcpdump(1) 1997-10-18 07:01:38 +00:00