Commit Graph

2449 Commits

Author SHA1 Message Date
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
mikel bee22c9c19 xref ypbind(8), not nonexistent ypbind(1) 1997-10-18 06:50:50 +00:00
lukem f5bf267d90 enable WARNS=1 by default, but disable in unclean 3rd party code 1997-10-18 06:42:25 +00:00
lukem 7866707a39 minor .Nm cleanup 1997-10-18 06:33:48 +00:00
lukem 149f1867d1 rcsid fascism 1997-10-18 04:36:50 +00:00
lukem 272b4a406a getopt returns -1 not EOF, WARNSify 1997-10-18 04:11:01 +00:00
lukem 98ec13d8d9 WARNSify 1997-10-18 04:08:16 +00:00
lukem 2c30449e9c getopt returns -1 not EOF, turn off WARNS 1997-10-18 04:08:12 +00:00
lukem 188f2b35aa WARNSify 1997-10-18 04:08:11 +00:00
lukem 03a401c4d5 getopt returns -1 not EOF, turn off WARNS 1997-10-18 04:08:08 +00:00
lukem acbb568349 WARNSify 1997-10-18 04:06:28 +00:00
lukem 61f747bdbc getopt returns -1 not EOF, turn off WARNS 1997-10-18 04:05:50 +00:00
lukem 9aeee5cb77 getopt returns -1 not EOF, turn off WARNS 1997-10-18 04:05:46 +00:00
lukem b9a4b3321c getopt returns -1 not EOF, turn off WARNS 1997-10-18 04:05:38 +00:00
lukem 1b31876813 WARNSify 1997-10-18 04:01:10 +00:00
lukem dc0e957a43 WARNSify 1997-10-18 03:54:00 +00:00
lukem 4e5fdf217a WARNSify 1997-10-18 03:50:58 +00:00
thorpej 1849d27507 Note net.inet.ip.subnetsarelocal. 1997-10-17 21:24:01 +00:00
lukem 021be7fd11 WARNSify; generate ansi c code with rpcgen, cleanup manpage, add rcsids 1997-10-17 16:12:48 +00:00
lukem 489b57b190 fix .Nm usage 1997-10-17 16:12:03 +00:00
lukem 90a9b36a70 WARNSify; generate ansi c code with rpcgen, cleanup manpage, add rcsids 1997-10-17 16:02:51 +00:00
lukem 6d66b6be40 WARNSify; generate ansi c code with rpcgen, cleanup manpage 1997-10-17 15:59:05 +00:00
carrel d2f6e52d96 WARNS-ification 1997-10-17 15:44:08 +00:00
lukem 05941d095a WARNSify, cleanup Makefiles 1997-10-17 14:53:18 +00:00
lukem bb2c8b04e6 ntp_getopt returns -1 not EOF, disable WARNS here 1997-10-17 14:34:38 +00:00
lukem 14e91f97ec WARNSify 1997-10-17 14:26:43 +00:00
lukem 31bc9c50ba WARNSify 1997-10-17 13:59:34 +00:00
lukem 8b8cc0b749 minor .Nm cleanup 1997-10-17 13:57:46 +00:00
lukem 2ba239a7a3 getopt returns -1 not EOF 1997-10-17 13:57:02 +00:00
lukem a352e573d5 fix use of unix domain socketname length, and signal error if this
is exceeded. from enami tsugutomo <enami@ba2.so-net.or.jp> [bin/3369]
1997-10-17 13:53:30 +00:00
lukem 47852f1f67 getopt returns -1 not EOF 1997-10-17 13:49:37 +00:00
lukem d2d85e1519 minor .Nm cleanup 1997-10-17 13:46:09 +00:00
lukem 745600d863 WARNSify 1997-10-17 13:36:36 +00:00
lukem eea5ba720b add Makefile.inc to use ../Makefile.inc, and cleanup subdir Makefiles 1997-10-17 13:32:28 +00:00
lukem aa5b34a6f5 call msync() correctly 1997-10-17 13:21:06 +00:00
lukem 8d79db1093 WARNSify 1997-10-17 13:13:40 +00:00
lukem 166448c2dc WARNSify 1997-10-17 13:02:01 +00:00
lukem 0a9c07ac82 getopt returns -1 not EOF 1997-10-17 12:52:25 +00:00
lukem d0f8d5f560 minor .Nm cleanup 1997-10-17 12:49:57 +00:00
lukem bffabae34b WARNSify 1997-10-17 12:40:03 +00:00
lukem 756f7931f0 minor .Nm cleanup 1997-10-17 12:36:36 +00:00
lukem d07d094491 WARNSify 1997-10-17 12:36:30 +00:00
lukem 95ce1aeabe WARNSify, getopt returns -1 not EOF 1997-10-17 12:18:16 +00:00
lukem aef4182020 WARNSify 1997-10-17 12:16:54 +00:00
lukem 2b042c28d8 add Makefile.inc to use ../Makefile.inc, and cleanup subdir Makefiles 1997-10-17 12:07:28 +00:00
lukem e94356b174 fix make -j race condition building lib/ , use ../Makefile.inc for BINDIR 1997-10-17 12:03:36 +00:00
lukem 1dc35d9949 getopt returns -1 not EOF, minor cleanup 1997-10-17 12:01:19 +00:00
lukem c80b353465 WARNSify 1997-10-17 11:53:25 +00:00
lukem 4eb7653054 WARNSify, getopt returns -1 not EOF 1997-10-17 11:46:30 +00:00
lukem cb37f89394 WARNSify 1997-10-17 11:25:37 +00:00
lukem 25a12a5eab WARNSify 1997-10-17 11:18:10 +00:00
lukem bc741e3624 WARNSify 1997-10-17 10:38:25 +00:00
lukem ea649a155d fix race condition when building libcommon.a with make -j, use ../Makefile.inc 1997-10-17 10:38:21 +00:00
lukem c73b1c8336 WARNSify 1997-10-17 10:38:20 +00:00
lukem d85b07eb41 fix race condition when building libcommon.a with make -j, use ../Makefile.inc 1997-10-17 10:38:11 +00:00
lukem 593df3da4c WARNSify 1997-10-17 10:28:39 +00:00
lukem fcfec169df WARNSify 1997-10-17 10:18:36 +00:00
lukem e5436d326b WARNSify, getopt returns -1 not EOF 1997-10-17 10:14:59 +00:00
lukem ffaa76b353 WARNSify, getopt returns -1 not EOF 1997-10-17 09:54:27 +00:00
mrg 1dc6e4f898 merge lite-2 rcsids 1997-10-17 09:04:12 +00:00
lukem 77a8cb6e83 WARNSify 1997-10-17 09:03:53 +00:00
mrg 18b882a973 merge lite-2 1997-10-17 08:49:29 +00:00
enami dd88a36ade Fix typo; `symbolic link' -> `a symbolic link'. 1997-10-17 08:10:22 +00:00
enami 38b64e4e86 Fix typo; `symbolic link' -> `a symbolic link'. 1997-10-17 08:10:10 +00:00
mrg 3bbeacd12c merge lite-2 1997-10-17 08:05:18 +00:00
lukem f680483348 WARNSify, rcsid police 1997-10-17 08:00:23 +00:00
mrg efba0505b4 merge lite-2 1997-10-17 07:35:05 +00:00
mrg b3e461525d 4.4BSD-Lite2 1997-10-17 07:06:38 +00:00
lukem b5229aee10 WARNSify, rcsid police 1997-10-17 07:06:04 +00:00
lukem 03b56f7f94 WARNSify 1997-10-17 06:58:54 +00:00
lukem f738e698e8 WARNSify 1997-10-17 06:58:37 +00:00
mrg c72a99c7d0 merge lite-2 1997-10-17 06:46:02 +00:00
mrg d8bc5f0aa6 merge lite-2 1997-10-17 06:34:19 +00:00
lukem 03e80bf7ea WARNSify (XXX: as best as I could on an i386; could an hp300 user please fix 1997-10-17 06:09:11 +00:00
lukem e67cc03557 minor cleanup, turn off WARNS=1 1997-10-17 05:58:23 +00:00
lukem 065400a1f3 WARNSify, use err/warn, cleanup manpage 1997-10-17 05:47:27 +00:00
mrg 4c8ecdc3eb oops, didn't mean part of last merge. 1997-10-17 05:40:16 +00:00
mrg 68136a9566 merge lite-2 1997-10-17 05:37:32 +00:00
lukem e4e7016851 WARNSify, use err/warn, use opendisk 1997-10-17 05:31:02 +00:00
mrg 590bf19cde merge lite-2 1997-10-17 05:24:29 +00:00
mrg 9463544113 merge lite-2 1997-10-17 05:06:40 +00:00
lukem e477b94d93 remove unnecessary externs 1997-10-17 04:57:31 +00:00
lukem e38303c1b4 sort SUBDIR list 1997-10-17 04:54:33 +00:00
lukem 13a5e774a4 remove WARNS?=1 - it's inherited 1997-10-17 04:53:19 +00:00
lukem 955c39c7ef minor cleanup 1997-10-17 04:31:55 +00:00
lukem a8a5cfb5e0 WARNSify, deprecate bcmp/perror et al in favour of memcmp/err* et al 1997-10-17 04:24:20 +00:00
lukem 699d25a64e WARNSify, deprecate bcmp/perror et al in favour of memcmp/err* et al 1997-10-17 02:25:02 +00:00
lukem 328c1f1d90 WARNSify 1997-10-17 00:16:55 +00:00
lukem a210b9277f getopt returns -1 not EOF, deprecate register 1997-10-17 00:12:51 +00:00
lukem 0a469c567a WARNSify, getopt returns -1 not EOF 1997-10-17 00:12:49 +00:00
lukem cdede3a245 getopt returns -1 not EOF, deprecate register 1997-10-17 00:12:46 +00:00
lukem 2bc4f43c42 WARNSify, getopt returns -1 not EOF 1997-10-17 00:12:43 +00:00
lukem ca32e63825 getopt returns -1 not EOF 1997-10-17 00:10:42 +00:00
lukem df4958aa0b getopt returns -1 not EOF 1997-10-17 00:07:21 +00:00
lukem 409801916f WARNSify 1997-10-16 23:46:38 +00:00
lukem 95dff5caaf WARNSify 1997-10-16 23:41:32 +00:00
lukem 3fbb7cea25 WARNSify 1997-10-16 23:39:17 +00:00
christos c36a502364 msync needs a third argument. 1997-10-16 23:32:27 +00:00
lukem 07ed891089 - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
1997-10-16 23:24:50 +00:00
lukem b3f8f59032 - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
1997-10-16 23:24:18 +00:00
mikel 0ed58c18f2 fix typo in CLEANFILES 1997-10-16 08:26:50 +00:00
lukem c518f62858 - compile common code once (into libcommon.a), and link that in.
cut's compilation time by half!
- build a common version.c in libcommon.a
- don't build version.h - nothing uses it
- comment out the ifdef INFO and -DINFO stuff - it's always compiled in
- XXX: don't compile mopprobe with -DNODL (which actually changes the
  compilation of stuff in common/*). nothing else does this, and it
  meant that mopprobe would have had different behaviour. if this behaviour
  is desired, a workaround can be put in place
1997-10-16 07:36:12 +00:00
lukem 29689d8440 clean up previous 1997-10-16 05:22:37 +00:00
lukem f0923775df fix race condition when building libamu with make -j 1997-10-16 05:18:41 +00:00
lukem 4d10189f4c fix race condition when building libcommon with make -j 1997-10-16 05:10:14 +00:00
hubertf ca6157bdca - document $PKG_PATH
- use -v on pkg_add for dependent packages (forgot on last commit)
 - most important: do string-magic on the right variable when trying
   to find dependent packages on the local disk (i.e. package given as
   filename, not URL)
1997-10-16 00:55:01 +00:00
hubertf 508ee08a34 Second part of intrgration of FreeBSD pkg_install as of 971013.
This patch adds @option preserve and handling for -s (SrcDir)
option.
1997-10-16 00:50:20 +00:00
hubertf d0245e3952 First cut on importing pkg_install as of FreeBSD 971013:
- warn()/err() instead of whinge()/barf()
 - Update RCS Id strings
 - Update manpages (mostly)
1997-10-16 00:31:32 +00:00
lukem 7cb9d0d79c database routines:
- rename OPTDB to OPTIMIZE_DB
- if OPTIMIZE_DB, in ypdb_open(), close a database if the open failed
  with ENFILE or EMFILE [from openbsd].
- because of the above, don't bother checking first if any FDs are
  available (with open("/", RDONLY) - it's a superfluous check.
- ensure that *map_info is set if a database was a cached open -
  without this fix OPTIMIZE_DB didn't work too well...
- enable OPTIMIZE_DB by default - should speed up lookups

secure map support:
- add ypdb_secure(), which returns non-zero if the map has the YP_SECURE
  private key set (which makedbm(8) -s adds) [from openbsd]
- modify various functions to check if a map is secure, and if so,
  refuse to serve information to clients not requesting from an
  IPPORT_RESERVED port [from openbsd]
- ensure that domainnames and map names are valid (don't contain
  "/"'s, aren't too long, etc) [idea from openbsd, but using our
  _yp_invalid_domain() et al, which does more checking.]

misc:
- add rcsid's
- implement _yp_invalid_map() (complements _yp_invalid_domain() in
  libc - eventually _yp_invalid_map() may move to libc...)
- use %#x instead of 0x%x in debug log messages
1997-10-15 05:01:07 +00:00
lukem b252d2a436 - major cleanup of Makefile.yp to use modern make(1) variables, and
follow our formatting convetions.
- add support for aliases, amd.home, master.passwd and netgroup maps
  [initially from openbsd, reworked as above]
- if INSECURE != "yes" then the passwd.by* maps will not contain the
  encrypted version of the passwd - privileged clients will request
  info from the master.passwd.by* maps.
  FreeBSD originally implemented this, and & OpenBSD supports it too.
  [from openbsd].

  By default, passwd maps are INSECURE, but in a *BSD-only environment,
  this could be disabled to allow for a [slightly] higher degree of
  security from non-root users...
1997-10-15 03:01:57 +00:00
mellon 8e6f88f680 Fix command-line argument processing 1997-10-14 20:38:09 +00:00
cjs 808e7bd9b8 Add hack to avoid gcc warnings. 1997-10-14 05:17:35 +00:00
cjs 5e411157a1 Ugly hack to make this compile without warnings on alpha. 1997-10-13 20:45:40 +00:00
cjs 83c227ec28 If you're going to pass a u_char as an int, cast it first. 1997-10-13 20:44:09 +00:00
lukem ec79495f83 add rcsid 1997-10-13 07:44:01 +00:00
lukem 16199f1de9 don't use home-grown ether_ntoa() - ether_toa(3) in libc works fine... 1997-10-13 07:41:48 +00:00
lukem 88b87b1582 add rcsid 1997-10-13 07:38:09 +00:00
lukem 7eaa3f736a add rcsid 1997-10-13 04:00:27 +00:00
lukem 2a43cbe64c add rcsid 1997-10-13 03:51:58 +00:00
lukem 9e8a6cf527 s/LINT/lint 1997-10-13 03:48:49 +00:00
lukem 21504c46eb - ignore trailing NUL in database key/value pairs (which sendmail's
aliases.db has)
- add rcsid
1997-10-13 03:47:07 +00:00
lukem 652dc94093 - hack ypdb_open() to try the standard hash (for sendmail's aliases.db)
if the initial open fails with EFTYPE. if a different database
  format is found to be more efficient, just add the code to open it
  prior to that of the other formats; this maintains backward
  compatibility with older databases whilst providing new functionality...
- add rcsid's
1997-10-13 03:42:27 +00:00
lukem 64718e58ff add rcsid 1997-10-13 03:15:30 +00:00
veego 066829337c Only install the available m4 files. 1997-10-12 19:14:27 +00:00
mycroft ccacc504e5 Make this work again, and add ethers to the list of recursive targets. 1997-10-12 11:53:11 +00:00
hubertf e10ebcabe2 pass the "-v"-switch on pkg_add to any pkg_add-calls
made for dependent packages
1997-10-11 22:25:16 +00:00
christos 3a2d682898 Fix for WARNS?= 1 1997-10-11 21:48:50 +00:00
christos f8dba09cca Cleanup for WARNS = 1
- add prototypes
- comment out rfc931(); it conflicts with the one in -lwrap and is not needed
  anyway.
- remove unused variables
- add NetBSD rcsids.
1997-10-11 21:41:34 +00:00
mycroft 26a3dbe1c4 GC some garbage variables. 1997-10-11 20:26:58 +00:00
hubertf 0df6d19df1 add case PLIST_UNEXEC in show_plist();
makes "pkg_info -v" barf no more when @unexec command are present in PLIST
1997-10-11 20:26:22 +00:00
mycroft 3ec2ebdb68 GC some garbage variables. 1997-10-11 20:25:53 +00:00
veego e288b27b29 Don't install this libraries, we only this during the build. 1997-10-11 19:42:34 +00:00
veego 0751ae9b9b Use \" for /'s in Makefile defines. 1997-10-11 18:11:41 +00:00
enami 136d7f791b Add -h option to usage. 1997-10-11 03:14:12 +00:00
christos fcc796698e Fix printf format warnings. 1997-10-10 16:12:10 +00:00
christos 81dbba7d10 PR/4082, PR/4149: amd dumps core if a server is down, amd cannot mount
filesystems from servers that fail the portmapper version test [lanman].
1997-10-10 16:11:12 +00:00
mycroft e8f7fd90c1 Actually, punt the `library' keyword; it does the same thing as `object',
and we really only need one of them.
1997-10-10 10:41:18 +00:00
mycroft 7d58ce9471 Add `object' and `library' keywords to pull in precompiled .o and .a files.
Syntax is like the `file' keyword; e.g.:
object	arch/i386/i386/mumble.o		[mumble] [needs-flag]
Largely from Michael Richardson in PR 3833, with some changes by me.
1997-10-10 10:27:53 +00:00
mycroft 054b6cb773 Allow options and makeoptions to take an empty string as a value. 1997-10-10 09:32:03 +00:00
lukem 0acf0ef008 only compile common_source/* once (25% faster), remove unused printcap.c 1997-10-10 09:26:35 +00:00
mrg 74f573d85d remove advertising clause from all my licenses. 1997-10-10 05:39:47 +00:00
hubertf b979def939 Fix typo: hte -> the 1997-10-10 03:42:18 +00:00
cjs b1caf63d0a Build smrsh to use /usr/libexec/sm.bin and install in /usr/libexec/smrsh. 1997-10-09 20:09:38 +00:00
cjs cec80a9c8c Bring sendmail/cf fully into sync with sendmail-8.8.7. 1997-10-09 19:39:51 +00:00
mrg 38811f7fea document -d, -s. remove bogus #port. fix getopt(). 1997-10-09 07:58:39 +00:00
jtc 3bc5599f8b Fix tipo inherited from old version of TNF copyright template. 1997-10-08 22:19:18 +00:00
cjs faa16d67af Include <string.h> and use proper types for str*() so that this compiles
on the Alpha. Also remove register decl's while I'm here.
1997-10-08 20:47:38 +00:00
cjs 2c695bcd2a Include <string.h> and use proper types for str*() so that this compiles
on the Alpha. Also remove register decl's while I'm here.
1997-10-08 20:25:24 +00:00
veego 98d951955c s/CURDIR/.CURDIR/ and add a missing " 1997-10-08 18:59:38 +00:00
mycroft b1f70b30ce Byte-swap the ethernet type field as required. From Dave Huang in PR 4215. 1997-10-08 16:57:04 +00:00
kleink fde532da89 getopt(3) usage police: EOF is deprecated, check against -1. 1997-10-08 16:55:41 +00:00
lukem f5eefd0a1d - set the umask to 077, to protect the created directory
- clean up a couple of the messages
1997-10-08 14:09:19 +00:00
lukem 7b926dd1c9 - print a message and exit if the port returned by clnt(udp|tcp)_create isn't
a reserved port
- don't define optarg/optind - it comes from <unistd.h>
- deprecate register
1997-10-08 13:45:21 +00:00
mycroft c5aacdd3b3 Don't sleep if we get EINTR from select(2) (e.g. because we got
a SIGCHLD when something died).  From PR 4056, by David Holland.
1997-10-08 07:15:59 +00:00
lukem 91b6547967 fix cutnpasto 1997-10-08 00:11:51 +00:00
lukem 87ca3b181a minor KNFify 1997-10-07 15:00:35 +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 5f88ebd1a3 fix & simplify test for skippable lines 1997-10-07 14:56:11 +00:00
lukem 6ea62c3327 simplify test for skippable lines 1997-10-07 14:46:48 +00:00
lukem 0d2bc0fdb6 use err instead of errx, so the user has some idea why the file wasn't opened 1997-10-07 14:45:18 +00:00
lukem 618db68108 grabage collect this 1997-10-07 14:43:44 +00:00
lukem 55d8f20490 use err instead of errx, so the user has some idea why the file wasn't opened 1997-10-07 14:42:32 +00:00
lukem c0495ebb45 nuke register & unnecessary extern's, factor out common code 1997-10-07 14:39:06 +00:00
lukem dc497bdd46 cleanup typos, grammaros, thinkos, and misuse of mdoc macros 1997-10-07 14:23:50 +00:00
thorpej 738a90b1b7 Build sup. 1997-10-07 01:36:21 +00:00
thorpej b7b213b4f5 Add a README describing how to build this on a non-NetBSD system (yes,
that's actually useful :-) using the Makefile in the source/ subdirectory.
1997-10-07 01:33:30 +00:00
thorpej b92a5b9b37 Add NetBSD Makefile infrastructure for building the sup programs. 1997-10-07 01:31:07 +00:00
thorpej 42d99e64c5 Garbage-collect the USE_CRYPT stuff. 1997-10-07 01:27:14 +00:00
hubertf c6393b5c9a Fix off-by-one error, closing PR bin/4067 by myself. 1997-10-07 01:24:05 +00:00
enami b6cd49460e Document -h flag, option to manupilate symbolic link. 1997-10-06 13:33:54 +00:00
enami 7bb0a4feb9 Change the noop flag -h to do the real work. Now if -h is given,
owner/group of symbolic link is changed.
1997-10-06 13:28:00 +00:00
lukem 07e169df74 add mkalias & revnetgroup 1997-10-06 06:55:50 +00:00
lukem 7307c9a9a5 KNF & WARNSify 1997-10-06 06:54:09 +00:00
lukem 6a8388c539 - KNFify
- cleanup for WARNS
- cleanup man page
1997-10-06 06:10:15 +00:00
lukem 42f1aa0434 revnetgroup - generate extra netgroup maps for YP 1997-10-06 05:01:30 +00:00
lukem 56b7c4c7c7 mkalias - generate YP version of sendmail aliases 1997-10-06 04:59:13 +00:00
lukem e14f5c8e03 clarify that "domainname" in various pathnames is the actual domain name 1997-10-06 01:20:15 +00:00
lukem a2de9f91bf use WARNS?=1 not WARNS=1, cleanup manpage 1997-10-06 00:57:08 +00:00
lukem b34611f260 use WARNS?=1 not WARNS=1 , cleanup manpage typo 1997-10-06 00:52:51 +00:00
lukem af8294fc63 - WARNS?=1 not WARNS=1
- fix .Nm usage
1997-10-06 00:33:18 +00:00
lukem 132501b5d3 rcsid facism 1997-10-06 00:08:43 +00:00
mrg 1bb06f8aab fix alpha compile warnings. 1997-10-05 16:45:43 +00:00
mrg 2d06dcebcd WARNS?=1 1997-10-05 16:40:24 +00:00
mrg 7d7091ccdd merge lite2 [actually, just update ucb sccs id's] 1997-10-05 16:16:10 +00:00
mrg d66fe73851 in rcleanup() don't unlink() the dfname if it contains a /. noted
by matt power <mhpower@mit.edu>.
1997-10-05 15:21:46 +00:00
mrg fe7ed7ce37 - WARNS?=1
- be safe with unlinking files (from freebsd)
- remove register
- clean up $NetBSD$'s.
- use inet_ntoa() in one place (from openbsd)
- nul terminate after a bunch of strncpy()'s
- #ifdef __STDC__ rather than #if (from freebsd)
- be safe with a bunch of string operations (from freebsd)
- use warn()/err() over home grown versions (some from freebsd)
- rename warn() to nodaemon() to remove conflict with above
- check errno from failed kill(2) against ESRCH (from freebsd)
- use getopt() rather than home grown versions (from freebsd)
- clean up a bunch of man pages (some from freebsd)
- check for hostname spoof (from freebsd)
- use POSIX wait() interfaces
- use sysconf(_SC_OPEN_MAX) in preference to NOFILE (from freebsd)
- deal with fork() failure
- index/rindex -> strchr/strrchr (some from freebsd)
- add B57600 and B115200 speeds (from freebsd)
- some KNF
- be safe with files passed in over the network (some from freebsd)
- check return value of malloc(), calloc() and strdup()
1997-10-05 15:11:58 +00:00
mrg 90778e67aa add rcsid, use FILES, etc., in Makefile. 1997-10-05 12:48:35 +00:00
mrg bf7db08c40 freebsd's lp frontend for lpr 1997-10-05 12:40:42 +00:00
mrg cf3fe2a0b6 oops; did not mean to import these. 1997-10-05 12:35:50 +00:00
mrg e6a91a0997 merge 4.4 lite2 1997-10-05 11:52:17 +00:00
mrg e5d28dbbe3 lite-2 1997-10-05 11:20:29 +00:00
christos f2a271f76d Make imports easier. 1997-10-04 16:33:04 +00:00
christos 89ab9fcd0f Fix conflicts. 1997-10-04 16:31:24 +00:00
mrg 3bf140db34 merge BIND 4.9.6 1997-10-04 15:11:25 +00:00
mrg 25916a62c6 BIND 4.9.6 1997-10-04 14:08:21 +00:00
christos 313a9cff6b Import LBL's traceroute-1.4a5 1997-10-03 22:25:12 +00:00
christos 0382099526 Revert decrementing the length too early; this was broken before the merge... 1997-10-03 20:38:03 +00:00
christos f9b3c069f3 Import assistance. 1997-10-03 20:04:32 +00:00
christos b03548c3bc Resolved conflicts. 1997-10-03 19:54:07 +00:00
christos f42c6d42a2 Import LBL's tcpdump 3.4a5 1997-10-03 17:24:11 +00:00
mikel 7e0384f892 replace -W flags in CFLAGS with WARNS?=1, cleanup 1997-10-03 05:39:03 +00:00
mikel f06175c4c6 apm is new in 1.3, update HISTORY to say so 1997-10-03 05:37:05 +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
enami 3aeffdc83c - Xref opendisk(3).
- Refer vnode disk as vnd0 instaed of vnd0c.
- Rename argument to specify vnode disk from special_file to vnode_disk.
- Explain that vnode_disk is a special file or name like vnd0.
- Add one example which uses vnd0 instead of /dev/vnd0c.
1997-10-01 01:32:59 +00:00
christos 16848faf66 PR/4145: Dave Huang: pppd unable to change interface addr when demand dialing
w/unspecified local address
1997-09-30 16:45:16 +00:00
scottr dbeee4956b Implement the -T flag, used to (optionally) specify the kernel text
start address for a.out executables.  This is useful in the case that
kernel text starts in the second physical page, in which case the
clever hack to work around the problem is defeated.

This option was patterned after the -T flag documented in the ld(1)
man page.  (It does not support the undocumented '-Ttext <addr>'
usage, however, since that would require a parser or getopt(3) hacks.)
1997-09-30 06:20:16 +00:00
christos 6a39b449bc Add back the NetBSD specific lack of ppp in kernel message, and remove a
NetBSD1_2 ifdef
1997-09-29 19:05:53 +00:00
christos ac0debcff2 Set clocal while processing chat scripts [this was changed on 2.3.1 and
broke all existing chat scripts].
1997-09-29 16:57:51 +00:00
enami 24a227ce40 In the function config(),
- Back to use `rdev' which the name of raw partition, since now opendisk(3)
  initializes `buf' except in very trivial case (it is `buf' is NULL).
- Use `rdev' instead of `dev' in verbose output.
- Output `rdev' when warn ioctl failure.
1997-09-29 06:43:14 +00:00
enami 9babafd737 In the function config(),
- Use `dev' instead of `rdev' to warn, since latter may not initialized.
- Don't use device file name as a format of warn().  Instead, pass "%s"
  explicitly.
1997-09-29 05:44:19 +00:00
enami 7dcf4bfe8e Use opendisk(3). 1997-09-29 05:24:24 +00:00
christos 2f3fcf9d35 Enable CBCP support by default. 1997-09-29 03:53:38 +00:00
christos 64b94f4c92 PR/2705: Jim Bernard: pppd exits with 0 error code when connection fails 1997-09-29 03:52:37 +00:00
christos 3e6d71d911 We don't have if_ether.h... 1997-09-26 20:28:47 +00:00
christos d9447f387e From Stephen Ma, discussed in tech-net and verified by paulus
mru computation was off-by-one
1997-09-26 20:24:12 +00:00
christos 16f22c5efc remove unused variable 1997-09-26 20:23:00 +00:00