Commit Graph

8019 Commits

Author SHA1 Message Date
tron 903cbf25d1 Create and populate "/etc/bluetooth". Based on patch submitted by
Iain Hibbert on "current-users" mailing list.
2006-07-15 21:32:58 +00:00
yamt 6ea460924a mntsrv: wrap a long line. 2006-07-13 23:18:59 +00:00
martin a3b5baed42 Fix alignement problems for fhandle_t, exposed by gcc4.1.
While touching all vptofh/fhtovp functions, get rid of VFS_MAXFIDSIZ,
version the getfh(2) syscall and explicitly pass the size available in
the filehandle from userland.

Discussed on tech-kern, with lots of help from yamt (thanks!).
2006-07-13 12:00:24 +00:00
christos 3f33249541 We don't need sed to do trivial parsing. 2006-07-10 23:07:09 +00:00
rillig 591ed5a67e In header files, there shall be no variable definitions, only
declarations. Found by MIPSpro.
2006-07-10 21:42:18 +00:00
dillo 4b176d8d5e Fix pkg_info -Q for binary packages, noted by rillig.
Bump version to 20060701.
2006-07-01 19:31:23 +00:00
martin 1e34bd3ea3 struct ieee80211_node_sysctl does not align ns_tstamp properly to directly
access it as a 64bit int - memcpy to stack and use the aligned copy
instead.
2006-06-30 21:30:19 +00:00
wiz 12df45a0e6 Sort SEE ALSO.
XXX: this file has no license.
2006-06-28 21:10:08 +00:00
drochner 70de924429 there is no ural(4) on NetBSD, this is all ral(4) 2006-06-28 15:06:59 +00:00
drochner a2362baffb if a data read from the interface fails, print the "wreq" type
before erroring out
2006-06-28 15:05:54 +00:00
hubertf 611d442807 Update usage() to match the manpage - most important, add missing options 2006-06-27 23:33:21 +00:00
christos 5efc77fb1e use realloc instead of free+calloc 2006-06-27 12:39:23 +00:00
mrg d1e7efd01a commit the correct version of the previous. 2006-06-25 03:03:41 +00:00
mrg 5609a371c9 make MKCRYPTO=no work again. 2006-06-25 03:02:19 +00:00
wiz 4659bd50a3 Sort options in usage(). 2006-06-24 21:04:48 +00:00
wiz 4b8efa57bb Sort options. 2006-06-24 21:03:57 +00:00
christos ab547228f5 Add a -g switch to retrieve the current vt. 2006-06-24 19:57:32 +00:00
christos 876fcff6e8 warns=4 2006-06-24 19:57:17 +00:00
mrg 9bf1d4a9b8 work around some GCC4 internal problems on m68000 platform.
document the hack, and update another GCC4 list.
2006-06-24 05:21:11 +00:00
mrg 2ed89a9707 add support for MKISCSI=no. 2006-06-24 05:14:01 +00:00
drochner d02011e188 set NTP_KEYSDIR to "/etc/ntp" so that the crypto/autokey/leapseconds stuff
works as before
2006-06-23 16:58:58 +00:00
jdc f00029f865 Don't include <dev/raidframe/raidframevar.h> but define RF_PROTECTED_SECTORS
directly.

Including raidframevar.h needs several definitions adding to the compat
framework for the tools builds, which aren't needed here.

XXX It's probably sensible to split off the few defines from raidframevar.h
    into a separate header file.
2006-06-20 14:04:22 +00:00
jdc 373c752392 Add support for finding files on RAID partitions. This allows us to
add the block list of the 2nd stage boot loader to the 1st stage boot
loader when the partition is a RAID partition.  Tested on sparc.

Reviewed by gdt.
2006-06-20 05:37:24 +00:00
gdamore a5c89047c0 Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.)  This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.
2006-06-19 15:44:33 +00:00
reed 5fe28dc7e5 Fix typo or mispelling. 2006-06-17 04:58:14 +00:00
reed ad5640a8e8 Fix mispelling. 2006-06-17 02:22:02 +00:00
elad 51d6ae51f1 mark strcpy as safe 2006-06-17 00:16:13 +00:00
christos 8852dbf5f6 This has not worked since 2003. (Hello Itojun!) 2006-06-15 19:32:55 +00:00
he 255c2c88af We don't have the <ieeefp.h> header if we're compiling for vax, so
add an ifdef around HAVE_IEEEFP_H.
2006-06-14 20:30:56 +00:00
ginsbach d59a581d86 Adapt rpcbind(8) to new return value from socket(2) for unsupported
address families.
2006-06-14 16:25:17 +00:00
kardel 8704ff927b import and integrate NTP 4.2.2 2006-06-11 19:34:07 +00:00
martin 6da7ec83d0 Cast yytext values to unsigned char when testing with isspace() to avoid
sign extension effects for non-ASCII characters.
2006-06-11 19:25:19 +00:00
martin b9a75d90c7 Some windows .INF files are UNICODE - extend the scanner to deal with this. 2006-06-11 17:02:07 +00:00
tron 3421be369d Remove "/var/spool/clientmqueue" and "/var/spool/mqueue" from the list
of obsolete directories and handle them via the "sendmail" item in
postinstall(8), too. These directories are of course necessary on
systems using the "sendmail" package.

Problem pointed out by Hisashi T Fujinaka on "current-users" mailing list.
2006-06-09 21:19:40 +00:00
tron c5ddcac518 Remove the "sendmail" configuration files and startup scripts from the
list of obsolete files. Resurrect the "sendmail" item which now flags
these files as obsolete unless the "sendmail" package is installed.
2006-06-09 12:18:30 +00:00
simonb b93b04bf77 Sort the obsolete rc.conf(5) variables to check, and only check
sysctl once(!).
2006-06-08 20:58:38 +00:00
kardel d3390a5a9b merge timecounter branch 2006-06-07 20:59:28 +00:00
reed 4cfce7b21f Check return value for setgid(), initgroups(), and setuid().
Log error and exit if failure.
2006-06-05 16:41:34 +00:00
christos b3c28e1d64 kill explicit size printing in warning. 2006-06-03 21:55:28 +00:00
christos 98917af5f7 Increase the size of the array by two, so that we fit. 2006-06-03 17:29:56 +00:00
christos 842c42957f check the return value of setsid. 2006-06-03 16:02:30 +00:00
jnemeth b7899a65bc try again with the Coverity annotation 2006-06-02 21:44:37 +00:00
hubertf 924dbbdb7d Fix fix for Coverity CID 2751:
Move an error check to the right place, and instead of blindly insisting on
an argument for all of "no-emul-boot", "no-boot", "hard-disk-boot" and
"boot-load-segment", only require it for the last one, which is the only
one that requires/uses it.

OK'd by Christos
2006-06-01 21:06:37 +00:00
rpaulo 134b1ef326 Add missing coma. 2006-05-31 20:23:52 +00:00
rpaulo fc5eb63af6 It doesn't make sense to print the MPLS ttl here.
While here, make the output look like Cisco IOS. Suggested by Mihai CHELARU.
2006-05-31 20:22:52 +00:00
tron 300dbf11e5 Check whether user and group "postfix" exist. 2006-05-30 19:31:13 +00:00
tron 73575a68a2 After removal of "sendmail":
- Remove the code dealing with "sendmail" updates.
- Don't check for the existence of user and group "smmsp" any more.
- Remove "/etc/rc.d/smmsp" and "/etc/rc.d/sendmail" because there defaults
  have been removed from "/etc/defaults/rc.conf".
2006-05-30 05:53:24 +00:00
drochner 46e4eb1dd0 NetBSD has now "struct timespec" in ntptimeval 2006-05-29 10:04:13 +00:00
hubertf 5fdc69efae Xref a few more manpages: user(8), group(8), ... 2006-05-29 01:38:33 +00:00
jnemeth 4c99f4ecf2 unlink temp file in error case 2006-05-28 11:33:56 +00:00
martin ad53adb7c1 Make "entries" optional - so that `echo system > /etc/isdn/isdnd.rc; isdnd`
works.
2006-05-27 20:11:14 +00:00
jnemeth d9a7dcfba5 Coverity annotation -- although memsave free()s its first argument, it
will allocate memory and assign it to its first argument, so it is neutral
Coverity CID 3229:  memory leak -- failed to fclose() master in moduser()
Coverity CID 3228:  memory leak -- failed to free() newname in groupmod()
2006-05-27 03:41:48 +00:00
jnemeth 62381dbddf Coverity CID 3785: calling fclose() twice on same file pointer
Coverity CID 3780: dereference of NULL pointer
Approved by: christos@
2006-05-26 13:21:47 +00:00
jnemeth 305a7bfee2 In bincvt() use fdopen() on the fdesc returned by mkstemp(), instead
of fopen().
2006-05-26 11:45:31 +00:00
jnemeth 693e9aec19 Coverity CID 2977: failed to check for error return from ftell() 2006-05-26 11:13:20 +00:00
jnemeth e10c71d2be Coverity CID 3685: memory leak
While here, check for failure to create temp file in bincvt() and close
unused file descriptor.

XXX bincvt() should be rewritten to use fork()/exec() instead of system().
2006-05-26 10:59:58 +00:00
jnemeth 1124e30e6e Coverity CID 3027: possible dereference of NULL pointer.
Also don't bother zero'ing memory immediately before reading the
.SYS file into it and check for errors while reading the file.
2006-05-26 09:25:27 +00:00
jnemeth 14902917f6 Remove redundant check for end of list wrapping around on itself.
It this were to actually happen, then others parts would go into
infinite loop.  Also, fix KNF.  Found while checking Coverity
CID 3784.
2006-05-26 02:16:17 +00:00
christos e4dddba9c6 typo s/fp/fpw/ 2006-05-25 03:17:43 +00:00
christos 862f4856b8 typo s/fp/fpw/ 2006-05-25 03:17:26 +00:00
christos cc17521d3c Coverity CID 2959: Check before deref dammit. 2006-05-25 03:03:39 +00:00
christos 785022eb47 Coverity CID 2984: Static array overrun. 2006-05-25 03:02:25 +00:00
christos df7031b876 Add missing semicolon. 2006-05-25 02:53:10 +00:00
christos 57ff0c4946 remove dup && 2006-05-25 02:50:50 +00:00
christos fdb8821322 Coverity CID 1455: Make sure that we don't overrun the array. 2006-05-25 02:48:09 +00:00
rpaulo 024ed52e7d Add missing #endif. 2006-05-25 02:40:58 +00:00
christos a43996b8ca Coverity CID 783: Add an assertion for a NULL deref. 2006-05-25 02:37:38 +00:00
rpaulo 4264348cac Beautify. 2006-05-25 02:35:50 +00:00
christos 79fc501cb4 Coverity CID 2294: Fix memory leak.
While here remove some bogus casts.
2006-05-25 02:35:32 +00:00
christos 1716cd4ef4 Coverity CID 1070: Check for NULL deref that cannot happen. 2006-05-25 02:33:16 +00:00
rpaulo 3a387eb457 Time to remove __P(). 2006-05-25 02:32:56 +00:00
christos 25b83d98a5 Coverity CID 3653: Fix memory leak. 2006-05-25 02:31:38 +00:00
rpaulo d5c00ee8c6 Now it uses the RFC 3542 API. 2006-05-25 02:21:59 +00:00
christos 830feeb9f3 use memcpy instead of bcopy. 2006-05-25 02:10:53 +00:00
christos f5e466e11a Coverity CID 2537: Avoid double free, and random free. how did this work? 2006-05-25 02:05:40 +00:00
christos e86e72d9a8 Coverity CID 3194: Avoid NULL deref. 2006-05-25 02:01:40 +00:00
christos 180ca89a2b Coverity CID 3195: ifdef out dead code. 2006-05-25 01:58:39 +00:00
christos e30bfd160d Coverity CID 3396: Fix file pointer leak. 2006-05-25 01:51:21 +00:00
christos fb0d335338 Coverity CID 3377: Fix memory leak on error. 2006-05-25 01:49:30 +00:00
christos d8050237b6 Coverity CID 1188: Don't check for NULL just to log and then die
de-referencing; return instead.
2006-05-25 01:44:28 +00:00
christos 4aafa6340a Coverity CID 1189, 1190: Don't check for NULL just to log and then die
de-referencing; return instead.
2006-05-25 01:43:58 +00:00
christos 6388d5cc98 Coverity CID 1191, 1192: Don't check for NULL allocation, just to log it
and then die dereferencing. Return instead.
2006-05-25 01:41:13 +00:00
christos 43c323928f Coverity CID 2718: Avoid using free'd memory. 2006-05-25 01:38:41 +00:00
christos 76c4e27a2a Coveriy CID 797: Avoid NULL deref. 2006-05-25 01:22:53 +00:00
christos c94cfed796 Coverity CID 2282: Fix memory leak. 2006-05-25 01:20:21 +00:00
christos 64274c3774 Coverity CID 754: Fix erroneous check. How could this ever work? 2006-05-25 01:18:59 +00:00
christos c0dd54b15c Coverity CID 3214: Check getrawpartition return code. 2006-05-25 00:42:23 +00:00
christos 2046b10b5b Coverity CID 601: Remove unused code. 2006-05-25 00:37:03 +00:00
christos 75aa3e0d4e Coverity CID 3308: Free the head of the group list, not the tail. 2006-05-25 00:33:24 +00:00
christos bd00756294 Coverity CID 2524: Return error instead of trying to allocate random bytes
from the stack.
2006-05-25 00:27:56 +00:00
christos 323f38bde6 Coverity CID 2751: Avoid NULL deref. 2006-05-25 00:25:00 +00:00
christos ddd7ee439d Coverity CID 830: Avoid NULL deref. 2006-05-25 00:21:52 +00:00
christos ede17ba69d Coverity CID 3322: Fix memory leak. 2006-05-25 00:19:27 +00:00
christos dabaab767f Coverity CID 1463: Change code to unconfuse coverity. 2006-05-25 00:16:48 +00:00
christos 4eb1ef0701 PR/3205: Remove dead code. 2006-05-25 00:12:31 +00:00
christos 2a8477a7f9 Coverity CID 1860: Plug memory leak. 2006-05-25 00:07:59 +00:00
christos aa0a3ef501 Sprinkle static and use err/errx/warn instead of fprintf/perror 2006-05-25 00:05:45 +00:00
christos d62ef54061 Coverity CID 1442: Update the table, and use the table size instead of
hard-coded constant; fixes static buffer overflow.
2006-05-24 23:51:39 +00:00
christos 4f8217f507 Coverity CID 796: Add an extra test to pacify coverity. 2006-05-24 23:44:34 +00:00
christos aecdec648e Coverity CID 834: Add a test to pacify coverity. 2006-05-24 23:43:11 +00:00
christos 84a9244669 Coverity CID 1753: don't leak fp's. 2006-05-24 23:41:44 +00:00
christos ecae799d9b Coverity CID 803, 804, 805: Avoid NULL deref. 2006-05-24 23:34:59 +00:00
christos 6968fdf466 Coverity CID 1464: fix static overrun by returning an error. 2006-05-24 22:30:15 +00:00
christos 0b53fe2b9f Coverity CID 3233: Be nice and close the file you opened. 2006-05-24 22:08:53 +00:00
christos 675ee2be81 Coverity CID 2460,2459,2458,2457: Don't allocate smaller chunks, it is not
worth it, and it makes coverity mad. Also check the return of malloc, and
allocate using variables instead of types as the sizeof arg.
2006-05-24 22:07:42 +00:00
christos 10dfada83b Coverity CID 1321: False -gative detection. 2006-05-24 21:47:25 +00:00
christos 2a741c25dc Coverity CID 3777: Free envp in the success case too. 2006-05-24 21:43:43 +00:00
christos bcab7c84bf Coverity CID 3778: set tmp to NULL to shutup coverity. 2006-05-24 21:42:25 +00:00
christos bc796bc129 Coverity CID 1567: Fix memory leak. 2006-05-24 21:39:33 +00:00
christos 4c1a6c8705 Coverity CID 3671: Cast close to void and don't close negative fds. 2006-05-23 01:36:36 +00:00
christos 1dc235cd39 Coverity CID 2448: Remove extra NULL check. 2006-05-23 01:29:31 +00:00
christos ae76bda7d7 Coverity CID 3227, 3226: Don't leak fd's 2006-05-23 01:23:49 +00:00
christos ce35e5d7d7 Coverity CID 1567: Don't leak memory. 2006-05-23 01:18:19 +00:00
christos 1c2d89173e Coverity CID 2534: Avoid use after free; this cannot really happen, but
coverity cannot figure it out.
2006-05-23 01:16:33 +00:00
uwe 5ea47b2f6b That cast doesn't need to add const. 2006-05-22 20:17:03 +00:00
uwe 5efcb4b549 Use proper cast instead of gagging gcc4 with -Wno-pointer-sign. 2006-05-22 20:06:54 +00:00
mrg ad76e73707 apply -Wno-pointer-sign to tp.c. 2006-05-22 07:36:52 +00:00
christos 1ab2316281 use warn/warnx instead of perror/fprintf
use get/set progname.
2006-05-21 19:26:43 +00:00
christos fb4d7a1a6e - fix pointer problems and unsigned int -> int confusion that lead to
undetected errors.
- factor out the socket creation code so that we don't have 4 copies.
- add -p <port> argument
- fix the majority of the lint problems.
- change all the strncpy's to strlcpy's.
2006-05-20 20:03:28 +00:00
christos b956bc8c52 Add a man page derived from the one in the distribution. 2006-05-15 02:17:43 +00:00
christos 588239e93e We don't have a man page yet. 2006-05-15 00:58:46 +00:00
dyoung bfd03b170f Build and install wpa_passphrase, the utility for making a WPA
pre-shared key (PSK) from an SSID (802.11 "network name") and a
secret passphrase.
2006-05-14 19:51:15 +00:00
dyoung c0ef0302c7 If ioctl(SIOCS80211) fails, tell which operation was attempted,
and the ioctl length.
2006-05-14 19:49:22 +00:00
simonb b8fb2aedbe Sync rc.d file list with etc/rc.d/Makefile, adding ftpd, hostapd, and
irdaattach.
2006-05-14 15:46:40 +00:00
christos ebebb0245d Another uninitialized var XXX: GCC 2006-05-14 01:26:34 +00:00
christos 87e155c5c7 rename alloc() to emalloc(). 2006-05-13 22:34:50 +00:00
christos 01caf31f3a Cleanup KNF, WARNS=4.
Phew, this started just to make set() static so that coverity does not get
confused.
2006-05-13 20:46:15 +00:00
tron 2d77f6d3d5 Add "iscsi" target which install the iSCSI configuration files.
This will stop e.g. "/etc/security" complaining about these files
missing after a sucessful run of "postinstall"
2006-05-12 12:43:28 +00:00
tron ef526ff868 Check for and install "/etc/rc.d/iscsi_target". 2006-05-12 07:16:47 +00:00
mrg bf869c6019 apply -Wno-pointer-sign to print-802_11.c as well. 2006-05-12 02:00:46 +00:00
mrg e13fd87f5f use -Wno-pointer-sign with GCC4. 2006-05-12 01:54:57 +00:00
mrg 132e581078 remove a couple of extra externs 2006-05-12 01:54:32 +00:00
mrg accf138991 netbsd authunix_create() actually takes an array of int not gid_t. 2006-05-12 01:28:34 +00:00
mrg 3479c0a6a2 can't fit "256" in an 8bit value, don't have a switch case for it. 2006-05-12 01:27:27 +00:00
mrg 126f7e1139 since ar_tha() can return NULL, don't pass it directly to functions
that expect real addresses.  explicitly KASSERT() that it is not
NULL in the kernel and just avoid using it userland.

(the kernel could be more defensive about this, but, until now it
would have just crashed anyway.)
2006-05-12 01:20:33 +00:00
mrg 16efbf8575 don't do the -Wno-pointer-sign dance for host programs. 2006-05-12 01:18:25 +00:00
mrg 43419a069b sprinkle a little (char *) to quell GCC4. 2006-05-11 23:50:15 +00:00
mrg aadd7d4847 sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
mrg 2a5124235b if we are going to cast the 3rd argument to accept_info_request(),
use the right type.
2006-05-11 21:17:02 +00:00
mrg 4a7d55e29a our recvfrom() uses socklen_t *. 2006-05-11 19:25:28 +00:00
tron 203b156add Include "bsd.own.mk" to get the definition of "HAVE_GCC". 2006-05-11 10:32:37 +00:00
mrg 86533d64ca sprinkle some -fno-strict-aliasing with GCC4. 2006-05-11 09:08:09 +00:00
mrg 10c621b36e sprinkle some -Wno-pointer-sign for now. 2006-05-11 08:55:10 +00:00
mrg 9f5cbae0f8 res_search() takes u_char * as 4th argument - pass one. 2006-05-11 08:44:56 +00:00
mrg 757868b20a include <string.h> 2006-05-11 08:44:07 +00:00
mrg 953a812e66 le64 "big endian" is not printable by PRIu64 - cast via (u_int64_t). 2006-05-11 08:43:16 +00:00
mrg c6d4b90983 use -fno-strict-aliasing with GCC4. 2006-05-11 08:41:07 +00:00
mrg c48f394145 assign to wd.wd_recvtime rather than casting a pointer to it
to a time_t pointer to call time(3).
2006-05-11 08:40:28 +00:00
mrg 74e0882190 rs_data is u_char *, so assign it from a u_char *. 2006-05-11 08:38:38 +00:00
mrg c23edde436 inet_ntop() wants char[] not u_char[]. 2006-05-11 08:37:24 +00:00
mrg 9aae0c27f9 u_char -> char for several things:
- inet_ntop()
- if_indextoname()
- variable assignment matching
char -> u_char in one place for variable assignment matching
2006-05-11 08:35:47 +00:00
mrg 5b2e2e784b use -fno-strict-aliasing for dump.c with GCC4 2006-05-11 07:20:19 +00:00
mrg 8f1fc6cc86 use -fno-strict-aliasing for utils.c with GCC4 2006-05-11 07:19:33 +00:00
mrg 58d1fc7bc5 use -fno-strict-aliasing with GCC4. 2006-05-11 07:17:41 +00:00
mrg c90e965e45 only do the previous for GCC4 2006-05-11 07:15:17 +00:00
mrg fde08302e9 use -Wno-pointer-sign and -fno-strict-aliasing for now. 2006-05-11 07:13:24 +00:00
mrg 1eb16ad182 properly match char * with char * instead of u_char *. 2006-05-11 07:12:11 +00:00
mrg 9ef684e646 pass an array of gid_t, not int, to getgrouplist(). 2006-05-11 07:11:08 +00:00
mrg 0dc9fb54b5 u_char -> char in one place. 2006-05-11 07:08:40 +00:00
mrg a7416240a5 add -fno-strict-aliasing when using GCC4. 2006-05-11 07:07:08 +00:00
mrg 3bf6d5997d since i2ostrvis() is passed always passed u_char *, make it so. 2006-05-11 07:02:01 +00:00
mrg 1fa98f5b05 - use socklen_t where appropriate
- avoid lvalue casts
2006-05-11 06:59:40 +00:00
mrg 4bc6feceb6 end the argument list to exec*(3) with a NULL instead of a bare '0', as
the latter isn't a pointer context in these varargs functions.
2006-05-11 00:22:52 +00:00
rpaulo 12d9aaea8c PR 33462: default maxinterval was not being initialized properly.
From Matthias Scheller.

From KAME sources.
2006-05-10 22:30:33 +00:00
mrg 084c052803 quell GCC 4.1 uninitialised variable warnings.
XXX: we should audit the tree for which old ones are no longer needed
after getting the older compilers out of the tree..
2006-05-10 21:53:14 +00:00
mrg 67c9075410 rename clog to sup_clog. (ugh. we don't even have clog()) 2006-05-10 21:45:40 +00:00
perseant 49b22a9fa1 Fix yesterday's patch: use the correct field when printing partial segment
creation time in the version > 1 case.
2006-05-10 18:47:45 +00:00
perseant b1c92f5a16 Report segment and partial-segment timestamps correctly on big-endian systems. 2006-05-09 22:20:38 +00:00
mrg 0c37c63edc change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
2006-05-09 20:18:05 +00:00
christos 449dbee9f0 Compile with OPENSSL. 2006-05-06 17:51:46 +00:00
rpaulo de8db47547 Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).
* RFC 3542 isn't binary compatible with RFC 2292.
* RFC 2292 support is on by default but can be disabled.
* update ping6, telnet and traceroute6 to the new API.

From the KAME project (www.kame.net).
Reviewed by core.
2006-05-05 00:03:21 +00:00
skrll e8f1031be8 RCSId police. 2006-04-28 07:20:39 +00:00
drochner 741f357fc1 Build libpcap-0.9.4 from src/dist.
While there are some open issues, particulary wrt support of old
NetBSD-specific interfaces, it is better to get the code some public
testing before NetBSD-4 is branched.
2006-04-25 18:36:44 +00:00
christos 313c1811bf Coverity CID 1774, 1773: Don't leak open file descriptors or leave temp
file turds on error.
2006-04-25 18:02:02 +00:00
dillo d67db6407e HOMEPAGE is not required, noted by wiz. 2006-04-25 13:28:10 +00:00
wiz 7f1b30bfd9 Sort. 2006-04-24 22:04:12 +00:00
dsl f62f858cc2 Coverty CID 1643: free(ino_buf) on error return.
(There is only 1 call to print_inodes(), so it doesn't really matter...)
2006-04-24 21:20:44 +00:00
dsl 666b712c4d Coverty CID 1693: free() buffer used reading fs info.
(I think this leaks 1 buffer per LFS segment being dumped!)
2006-04-24 21:14:59 +00:00
snj a640fe8c43 It's "its." 2006-04-24 19:00:29 +00:00
dillo 845f7524ad Add support for creating summary file containing all information
about a package repository needed by package managing software.
This allows better use of remote binary package repositories.

Discussed on tech-pkg.
2006-04-24 13:36:22 +00:00
wiz 66784c2d94 Add -T to SYNOPSIS. 2006-04-23 16:51:56 +00:00
wiz c658b10ae0 Fix typo. 2006-04-23 16:51:18 +00:00
wiz bffaecaf07 Bump date for previous. Remove trailing comma in SEE ALSO. 2006-04-23 16:50:25 +00:00
christos 98a919c136 Coverity CID 55: Do things in a different order to appease coverity. 2006-04-22 19:57:04 +00:00
wiz 7e78208091 i.e. without a space. PR 33328 by Igor Sobrado. 2006-04-22 19:35:35 +00:00
christos 2e3cc3a126 Coverity CID 174: Add extra NULL test to appease coverity. 2006-04-22 17:40:49 +00:00
christos d9b764e5f1 Coverity CID 548: Fix resource leak. 2006-04-22 17:38:20 +00:00
christos be722641b9 Coverity CID 550: Resource leak. 2006-04-22 17:33:55 +00:00
yamt 8613dc06f0 update a comment. 2006-04-21 13:46:37 +00:00
christos df4a13ef08 New version from David Boggs 2006-04-20 16:53:19 +00:00
blymn 10df330c85 Prefix iostat structure elements with io_ 2006-04-20 12:13:51 +00:00
hannken 52d2a20915 Build and install the man page on all machine archs. 2006-04-20 11:29:08 +00:00
rittera f672e2e9eb Added the -f firmware information back, but commented it out. Now it should
be easy to add once support for these firmware files is added to NetBSD.
2006-04-20 02:56:42 +00:00
pavel 43bd0b5956 PR 32579: Add a -T flag to syslogd, which causes it to use local time for
messages received from the network. Useful for collecting logs from
devices which do not have correct time.

Add it to usage.

Document it, also document that syslogd adds a timestamp with the local
time if it does not recognize the original timestamp field. Bump date.

Approved by wrstuden@.
2006-04-19 21:18:50 +00:00
martin 36c96e27d5 Backout previous and redo it by eliminating a superflous production
instead - this eliminates the reduce/reduce conflict but leaves the
accepted language alone.
2006-04-19 20:38:49 +00:00
martin 8f6ebaa09e Remove a reduce/reduce conflict by splitting the "assign" non-terminal
into a assign_list one (comma separated list of assigns) and the simple
assign one.
2006-04-19 17:52:24 +00:00
rittera d4fa82ba2a Removed the entire section on firmware from ndiscvt.8 as I don't think this is
currently working for NetBSD (I don't have any cards available that use the
firmware modules discussed).  I also removed referances to the non-existing
man-pages ndis(4) and ndisapi(9) from FreeBSD.
2006-04-19 17:01:50 +00:00
christos ab0d027f23 Do the lex/yacc portions the sanctioned way, instead of adding Makefile gunk. 2006-04-19 15:45:21 +00:00
he 14efda3f28 Be sure to prefix explicitly mentioned source files with ${.CURDIR}/,
so that this can build with objects placed elsewhere.
2006-04-19 15:10:40 +00:00
hubertf 0161f34fc6 Bump for today's timeout change in ftpio.c 2006-04-18 20:40:48 +00:00
rittera be97fc5a95 A number of minor changes for NDIS. (OK'd by phil)
1. Removed the makeoptions line from arch/i386/conf/GENERIC.  Now
ndis_driver_data.h is simply copied into the kernel build directory instead
of editing the config file to specify its location.

2. Uncommented lines in files.i386 and files.pci related to NDIS.  NDIS will
not be compiled into the kernel unless the two lines are uncommented from
GENERIC (I checked using nm), so there is no reason for this to be commented
out.

3. Added ndiscvt to usr.sbin/Makefile.
2006-04-18 16:49:19 +00:00
hubertf 19ef9ca981 unpackURL():
Make timeout mechanism's granularity always per-file (inside package)
instead of per-package (if not -v) or per-file (inside package, if -v).
2006-04-18 13:11:05 +00:00
rpaulo 43c3d200d1 Remove -k. Should no longer be needed. 2006-04-17 20:55:28 +00:00
rpaulo 6e7b39c917 ipwctl is no longer used to load the firmware. 2006-04-17 17:50:51 +00:00
jmmv b345e2a3a3 WSDISPLAY_CHARFUNCS is gone. 2006-04-15 17:53:03 +00:00
blymn 8cf43bce86 New io statistics collection. 2006-04-14 13:20:48 +00:00
blymn 906131e6f3 Update to use the new kernel io statistics. 2006-04-14 13:14:57 +00:00
christos 71547fcffa Revert part of the previous coverity fix (Urban Boquist) 2006-04-13 21:48:54 +00:00
dsl c0b0ba1f18 If parameter don't have values, then 'continue' after setting the flag bit.
Fixes coverty CID 776 and removes the need for a 'val = NULL' added to
appease gcc's undefined variable tests.
This parsing code sucks though, it doesn't correctly check for the '='
between a parameter and its value, whitespace can be used instead.
2006-04-12 19:49:59 +00:00
rpaulo 5d6fb58006 Descend into hostapd{,_cli}. 2006-04-12 15:37:48 +00:00
rpaulo dc8d4a9fd1 Build framework for hostapd. Based on FreeBSD.
hostapd.conf.5 man page still incomplete.
2006-04-12 15:37:07 +00:00
rpaulo f8258633d6 NetBSD driver for hostapd based on FreeBSD driver. 2006-04-12 15:36:26 +00:00
rpaulo 33dfcd8fe4 Build framework for hostapd_cli. 2006-04-12 15:35:59 +00:00
rpaulo 927a27fefc Pull ../Makefile.inc and override PATH.c.
Adapt to WPA supplicant 0.4.8.
Change the logic behind ENABLE_WPA_SUPPLICANT_EAPOL: it's now enabled by
default (EAP code has been reviewed by FreeBSD folks according to Sam Leffer).
2006-04-12 15:35:34 +00:00
rpaulo 6d70fc8f1b Pull ../Makefile.inc and define PATH.c. 2006-04-12 15:32:45 +00:00
rpaulo af039b42a3 Don't define .PATH here as it'll be overridden by subdir Makefiles.
Add HOSTAPD_DISTDIR.
2006-04-12 15:31:51 +00:00
rpaulo 179fb23056 New functions/changes required by wpa_supplicant and hostapd 0.4.8. 2006-04-12 15:29:14 +00:00
hubertf 2e3214a0d4 Bump ftp timeout from 10 minutes to 1 hour.
When installing teTeX over a dog slow VPN, this can be necessary.
2006-04-11 10:36:19 +00:00
chuck d09fe2c467 modified man(1):
- avoid double slashes when displaying man pages (got tired
   of '/usr/share/man//cat1/man.0').
 - got rid of __P() while working on it.
 - incorporate some of my old notes explaining how manpath works into the
   comments of the code itself.
 - renamed some of the vars so that the code is consistent throughout
   (and hopefully clearer and easier to understand)
 - fixed relative man paths for multiple man pages (man did a chdir()
   on the first man page it had to format --- this broke any remaining
   relative path man pages left to process).   save old directory and
   fchdir() back to it after formatting.
 - improved doc on "man -h" which does more than just whatis(1) [e.g.
   "man -h fopen" prints the required include files and the prototypes
   rather than just the one-liner you get with whatis(1)]
 - manconf.c now fills in the "len" length field in the TAG/ENTRY
   structures (man now uses len).

revise man.conf file reading stuff to return error on failure in
addentry/gettag (fka getlist) rather than just err()ing out.   this
allows man(1) to call cleanup and delete its tmp files rather than
just leave them floating.  revise other apps using this code
(makewhatis, apropos, catman, whatis) to expect this.  also remove
__P on updated files.
2006-04-10 14:39:06 +00:00
wiz 91bfc3f2c9 Formatting nits. 2006-04-08 23:05:38 +00:00
reed 0078fc2ced pkg_add also now check for USE_ABI_DEPENDS.
Check if USE_ABI_DEPENDS or IGNORE_RECOMMENDED was set
when this package was built. IGNORE_RECOMMENDED is now historical.

Remove on space in warning (and add "ABI")
so will fit on standard 80 column console.
2006-04-06 06:45:08 +00:00
hubertf 3cdb8f0a5c http_expand_URL(): fclose() the fdopen()'ed filedescriptor
before leaving the function (for all cases).

Actual fix and sanity checking by Dillo & Wiz
Coverity CID 2340
2006-04-05 18:01:20 +00:00
hubertf a4ff1305f4 When recognizing a broken package version/name,
make sure to error out really, don't just print a warning
and the run into further problems.

Coverity CID 2739.
2006-04-05 17:50:48 +00:00
wiz 9f0633f5c3 Sort options. Add RCS Id. Adapt a bit for NetBSD; needs more work
(e.g. removing kldloader references)
2006-04-04 20:25:14 +00:00
martti b52bb48fee Fix compilation problems. 2006-04-04 16:18:27 +00:00
wiz da9647bfba Bump date, so that version in src and pkgsrc have the same
version _and_ the same code.
2006-04-04 06:38:53 +00:00
rittera 9f5b030f1a #included sys/lock.h which is apparently needed in order for ndiscvt to
compile on NetBSD.
2006-04-03 16:29:57 +00:00
christos 3cd2d0576e rename salloc to estrdup. 2006-04-02 01:39:48 +00:00
rpaulo e288e9d823 Show ECN ECE and CWR flags too. 2006-03-31 10:20:21 +00:00
rittera 6f0360f3e9 applied zul's ndiscvt patch 2006-03-30 23:21:06 +00:00
rittera 9f9573165d added the original files from FreeBSD in usr.sbin/ndiscvt/ 2006-03-30 23:00:02 +00:00
dsl 58cc83950f Remove a splurious check for a NULL pointer (always passed as &struct->member).
Stops Coverty SID:2362 complaint
2006-03-30 21:05:07 +00:00
tron 0b2d4e954a Use sigaction(2) to setup automatic disposal of child processes after
daemonizing. This is more portable and avoids zombie "rpc.statd"
processes after an NFS client running e.g. Mac OS X shuts down.

Reviewed by christos@.
2006-03-28 15:21:00 +00:00
christos 3b6811d33b PR/33123: Murray Armfield: standards compliance & glob.h
Certain fields in glob.h need to be size_t; fix this and version glob(3).
    http://www.opengroup.org/onlinepubs/000095399/basedefs/glob.h.html
2006-03-26 18:11:22 +00:00
wiz 2950a17537 Remove last Kerberos 4 support in non-3RDPARTY code. 2006-03-23 23:51:25 +00:00
wiz 417f570853 Remove some more references to kerberosIV. 2006-03-23 21:51:14 +00:00
dogcow 028f696b68 Since KerberosIV has gone away, so should NFSKERB. 2006-03-23 15:37:02 +00:00
riz a27001b755 Coverity CID 2757: Don't leak memory in error conditions. 2006-03-23 01:27:08 +00:00
bouyer 17cb72c505 In add_secure(), change
(status > 0) to (status == 0 && value). It doesn't make sense to handle value
only if there was an error.
Fix coverity ID 1709.
2006-03-22 19:54:13 +00:00
joerg 368cb1b951 Garbage collect cc in moduser, it is only set once, but never read as
noticed by lint.
2006-03-22 18:02:46 +00:00
joerg 5dc48904d3 Don't leak FILEs when flock fails. Found by Coverity (CID 1776, 1777 and
1778). Patch by Liam J. Foy, which handles one more case.
2006-03-22 18:01:11 +00:00
christos 83daacaaf8 Coverity CID 621: Remove dead code. 2006-03-22 17:16:09 +00:00
christos e5f6d71c5b Coverity CID 798: t can only be null if p is null. otherwise p needs to contain
a name.
2006-03-22 17:14:16 +00:00
christos 20a63f0a54 Coverity CID 888: Detect error when host is not found. 2006-03-22 17:10:33 +00:00
christos 2d056bacca Coverity CID 893: Check the pointer for NULL before using anyway, although
in the current situation it cannot happen.
2006-03-22 17:05:44 +00:00
christos 76ad3db40d Coverity CID 1644: Plug memory leak. 2006-03-22 17:03:29 +00:00
christos 84d29c783e Coverity CID 1645: Fix memory leak. 2006-03-22 17:01:47 +00:00
christos c8f598b3af Coverity CID 1646: Free storage on error 2006-03-22 16:58:30 +00:00
christos 2ed64bb14a Coverity CID 1647: Close file on error. 2006-03-22 16:57:18 +00:00
christos 4830490bed Coverity CID 1701: Fix memory and descriptor leak on error. 2006-03-22 16:56:10 +00:00
christos 821808de71 Coverity CID 1708: Close file on error. 2006-03-22 16:54:26 +00:00
christos b8595bc4e5 Coverity CID 2581: set variable to NULL after free. 2006-03-22 16:45:48 +00:00
christos 18358a0809 Coverity CID 2582: Set variables to NULL after freeing. 2006-03-22 16:44:30 +00:00
christos 17eb3e6ddd Coverity CID 2583: Appease error by setting name to NULL after free. 2006-03-22 16:42:41 +00:00
itojun d9a428ea1c avoid heap overrun. thanks goes to Susan Lan of zyxel. 2006-03-22 09:22:28 +00:00
christos db1dbe6ce9 Coverity CID 1225: Don't close negative fd. While here fix fd leak. 2006-03-21 22:49:43 +00:00
christos 4a6e5a625c Coverity CID 1750: Add a function to free a queue and use it. 2006-03-21 22:47:26 +00:00
christos 1f548f352a Coverity CID 1752: getq() always allocates a queue if nitems >= 0, so always
free it.
2006-03-21 22:37:34 +00:00
christos 85e611dd01 Goodbye KerberosIV 2006-03-20 04:03:10 +00:00
phil 01ec6393c4 Plug resource leak. (CID 1600) 2006-03-19 07:04:06 +00:00
dan bcff75cc37 actually toggle the value of dquote when seeing a '"', as I intuit the
author must have intended.  Found via coverity CID 579.
2006-03-18 22:07:15 +00:00
dan 6ff40a4cfb prevent a potential resource leak, not found by coverity (perhaps masked by previous) 2006-03-18 21:41:23 +00:00
dan 3713fec029 catch another possible error case and exit early; CID 990 2006-03-18 21:35:35 +00:00
bouyer d663834226 Fix memory leak if we're adding an existing group name.
Coverity ID 1568.
2006-03-18 14:33:07 +00:00
rtr b06fd00a81 free buf on error path
coverity 190 / run 5
2006-03-18 12:35:41 +00:00
dan 1c8b9fae53 CIDs 2649, 2650: buf used after free 2006-03-18 12:35:19 +00:00
dsl 1ec8e10fce Coverty 7449: Change 'return (0)' to 'goto done' so we free(bootstrapbuf)
before exiting with error.
2006-03-18 11:08:19 +00:00
elad d8af4d8962 Change MAX_BLOCKS for b_prop to MAX_PROPS, as it probably should've been.
Fixes overrun found by Coverity, CID 1550.
2006-03-18 02:06:38 +00:00
elad 615bdca25f Fix three off-by-ones found by Coverity, CID 1489. 2006-03-17 21:10:02 +00:00
elad 35ad67c75e Fix off-by-one found by Coverity, CID 1485. 2006-03-17 21:01:02 +00:00
elad 7d1c72d85d Fix off-by-one found by Coverity, CID 1486. 2006-03-17 20:48:09 +00:00
hubertf dc01675c5a Put check if "best" is empty back into the right place, messed up
in previous commit.
Noted by yamt@
2006-03-17 17:46:44 +00:00
christos fca770b32a Appease Coverity CID 2580 [not a bug] 2006-03-17 17:06:30 +00:00
christos 227e68b656 free memory on allocation failure. 2006-03-17 17:04:22 +00:00
elad fb41d90922 Proper bounds access, found by Coverity, CID 1470. 2006-03-17 14:40:11 +00:00
dmcmahill de309be996 put the array bounds check _before_ accessing the array.
Coverity  CID: 1479
2006-03-17 14:20:10 +00:00
dmcmahill ee00225705 put the array bounds check _before_ accessing the array.
Coverity  CID: 1480
2006-03-17 14:14:45 +00:00
erh 840c5222df Fix -uu handling so recursive updates of already installed packages work,
even if the initial package to install isn't installed yet.
Bump the version to 20060313.
2006-03-17 05:32:11 +00:00
elad 8adb45d48c Fix off-by-one found by Coverity, CID 1529. 2006-03-17 02:56:05 +00:00
elad 70b1ddf050 Overrun found by Coverity, CID 1549. 2006-03-17 02:41:31 +00:00
hubertf 986192d148 Add sanity check if there's a @cwd in the +CONTENT file.
If not abort, because we wouldn't know where to put the files.

Coverity CID 1358
2006-03-17 02:37:31 +00:00
hubertf 3c5de91c39 pkg_do(): only use cp2 if it's really set to something useful
Coverity CID 1176
2006-03-17 02:31:44 +00:00
hubertf fc4fb72e38 findbestmatchingname_fn(): catch possible problems if best (vp)
contains some strange name (shouldn't happen, but ...)

Coverity CID 869
2006-03-17 02:20:46 +00:00
hubertf 92acb1f6e9 findbestmatchingname_fn(): only do something sensible if the pointer
handed in is actually usable (not NULL)

Fixes Coverity ID 870
2006-03-17 02:10:55 +00:00
hubertf baf66cc3f1 We can't sprintf() into a NULL pointer - catch that properly
for ALL cases.

Coverity CID 861
2006-03-17 01:58:25 +00:00
hubertf 19dcd9a850 Fix filedescriptor leak
Coverity CID 1625
2006-03-17 01:10:53 +00:00
christos 62da5ad066 forgot to commit the links to sl* 2006-03-16 16:53:23 +00:00
christos cff2dad821 add a tar target. 2006-03-14 22:59:43 +00:00
christos 0c402ec936 provide a declaration for crypt(). Casting to char * will not work for
64 bit OS's.
2006-03-14 17:45:03 +00:00
christos d7571e6e65 Make building work on NetBSD again [in this directory with the standard
Makefile]
2006-03-14 17:42:06 +00:00
rpaulo 0f0ba22069 bump date 2006-03-12 11:18:31 +00:00
jschauma 25b6d6ab50 fix typo: explcitly -> explicitly 2006-03-11 22:56:57 +00:00
jmmv 582b13f281 Fix typo: inteface -> interface. 2006-03-08 22:47:40 +00:00
reed 1b379e628e Fix the "Cannot chdir" error message to actually show the
problem directory name for lsbest and lsall.

For example:

# pkg_admin -d /usr/packages/DragonFly/1.4.0/i386/All lsbest 'gmake>0'
pkg_admin: Cannot chdir to /var/db/pkg: No such file or directory

Should show:
pkg_admin: Cannot chdir to /usr/packages/DragonFly/1.4.0/i386/All: No such file or directory
2006-03-06 20:00:10 +00:00
rpaulo 8c2379fd97 NDP-related improvements:
RFC4191
	- supports host-side router-preference

	RFC3542
	- if DAD fails on a interface, disables IPv6 operation on the
          interface
	- don't advertise MLD report before DAD finishes

	Others
	- fixes integer overflow for valid and preferred lifetimes
	- improves timer granularity for MLD, using callout-timer.
	- reflects rtadvd's IPv6 host variable information into kernel
	  (router only)
	- adds a sysctl option to enable/disable pMTUd for multicast
          packets
	- performs NUD on PPP/GRE interface by default
	- Redirect works regardless of ip6_accept_rtadv
	- removes RFC1885-related code

From the KAME project via SUZUKI Shinsuke.
Reviewed by core.
2006-03-05 23:47:08 +00:00
christos 9867ff4817 pppstats now handles slstats 2006-03-02 17:34:17 +00:00
dyoung de42319b47 Makefile nit: put -Ddefinitions into CPPFLAGS instead of CFLAGS,
since we need the -Ddefinitions not just for cc(1), but for cpp(1),
lint(1), etc.
2006-03-02 04:49:25 +00:00
apb 9e61b51ee3 Fix default handling. etcupdate with no "-s" flag
should act like "etcupdate -s /usr/src".
Approved by christos.
2006-02-26 19:56:51 +00:00
apb 8cc0e19f2c Typo in comment. 2006-02-26 19:55:46 +00:00
apb 03f40d9364 Pass BUILD=1 in make environment.
Fixes PR 30385 from Rui Paulo.
Approved by chrisros.
2006-02-26 19:51:05 +00:00
simonb 5cfbf7bf76 Use MKPRIVATELIB instead of NOLINKLIB/NOMAN/NOPIC/NOLINT. 2006-02-25 12:04:23 +00:00
simonb bee087d4cc libcompat isn't needed any more here. 2006-02-25 12:00:24 +00:00
wiz 5d1e8b2745 Fix some typos. 2006-02-25 02:28:55 +00:00
wiz 6f38e00ba9 Fix typo. New sentence, new line. 2006-02-25 02:27:42 +00:00
wiz 1ad8067cb3 Fix typos, reported by Alexey Dobriyan ("Gathered from Linux"),
forwarded by jmc@openbsd.
2006-02-25 00:58:34 +00:00
christos aa3a9e822d By popular demand don't bail out if a user's shell is not in /etc/shells.
Issue a warning instead.
2006-02-23 22:45:25 +00:00
dogcow 4c1a82844d Since installboot is part of tools, and TIOCGWINSZ is not present on all
systems (PR/32878), make the window sizing stuff conditional.

Also, fix formatting of 'supported file system types are' line.
2006-02-22 07:10:26 +00:00
agc 756acb0ef7 Add an initial makefile for the iscsiconfig utility. We don't yet descend
into this directory, so no addition to the sets as yet.
2006-02-20 09:01:39 +00:00
apb 1f082bb8d2 Wording changes to clarify some the options presented after
a file is merged.
2006-02-19 14:56:56 +00:00
apb 32c588d6a3 Fix errors in previous. I accidentally committed the wrong code. 2006-02-19 11:36:10 +00:00
apb 7e321ef839 Give etcupdate the ability to use etc.tgz and xetc.tgz.
* Expand the "-s" flag to -s {srcdir|tgzfile|tempdir}.
* Deprecate the "-b" flag.  It is replaced by "-s tempdir".
* Change "-s srcdir" to refer to the top of the source tree (e.g.
  /usr/src) instead of the etc subdirectory.

In etcupdate's interactive phase, enhance the "s" command to be able
to invoke alternative diff commands.

Also some style changes.

Approved by christos
2006-02-18 19:29:48 +00:00
dsl 959e130a7f Changes to allow support for a reduced set of architectures.
In particular if SMALLPROG is set (eg for installation crunched ramdiskbin)
only build for the current MACHINE.
2006-02-18 14:54:53 +00:00
dsl 2fdbc8bd5f The fstypes table is only needed for adding 'stage2' bootstraps on some
platforms.  Compile out the code if NO_STAGE2 is defined.
2006-02-18 12:45:15 +00:00
dsl 200e1792a1 Define the ib_mach_xxx entries here in a way that will allocate them into
the bss if the MD file isn't linked into the installboot image.
2006-02-18 12:43:36 +00:00
dsl b22a0afa5c Ignore entre is in the 'machines' table that have no name.
Use terminal with to break line of machine names.
2006-02-18 12:42:26 +00:00
dsl 8c767ff592 Remove support for byteswapped file systems if NO_FFS_SWAP is defined.
For SAMLLPROG builds.
2006-02-18 12:39:38 +00:00
dsl 13b9ae1e99 Best to declare these structures 'extern' ... 2006-02-18 11:01:51 +00:00
dsl cce659e230 Move the MD definitions into the MD files, leaving machines.c with just
a list of the supported machines.
2006-02-18 10:08:07 +00:00
rpaulo 39c9cdcdbf Show MPLS ICMP extensions. Only available if -M is passed.
Example:
	RC02-02 (195.245.142.66)  45.707 ms  20.418 ms  34.042 ms [MPLS: label: 515, exp: 0x0, ttl: 1]
	gr1-p340.attga.ip.att.net (12.123.20.190)  241.878 ms  251.945 ms [MPLS: label: 32133, exp: 0x0, ttl: 1]


Based on PR 22523: By Jesper Skriver (updated by ww@parc.styx.org and Mihai
CHELARU).

Things not in the PR that I changed/added:
       * changed exp and label to lower case
       * added ttl (probably not worth it but who knows..)
       * KNF/style/indent
       * C99 uintXX_t
2006-02-17 21:31:18 +00:00
tsarna 55551a76e2 Add postinstall item for the rwhod de-preivledging.
Check and correct permissions on /var/rwho files so rwhod
will be able to update them.
2006-02-14 17:14:21 +00:00
dsl 9f26f448bf Need to read and swap cpustats separately from the dkstats.
I wonder how many more programs use the code in vmstat/dkstats.c
2006-02-12 22:11:54 +00:00
yamt 16b7c5d1dd print a header on each outputs if and only if the output has 2 or more lines. 2006-02-12 11:23:31 +00:00
christos 4fa128a6ab rcsids. 2006-02-11 23:02:10 +00:00
christos 8b766b8af0 New version from David Boggs. 2006-02-11 23:01:10 +00:00
agc 5fc129c4a1 Descend into the iscsi directory. 2006-02-08 18:59:39 +00:00
agc 97f0c7d9de Reachover files for the iSCSI target.
The test harness files are included here, but are not built or installed.
It is not envisaged that a typical NetBSD user will have much use for an
iSCSI test harness.
2006-02-08 18:57:49 +00:00
christos db38881997 Bye bye sushi (moved via repository copy to othersrc) 2006-02-08 00:46:13 +00:00
christos a04e414992 update to 6.1.3; bump library version 2006-02-05 16:29:00 +00:00
christos d8d9c20820 pass WARNS=4 2006-02-05 14:11:18 +00:00
christos f3d0b6c690 PR/32747: Michael van Elst: Set close on exec on /dev/power fd so that it
is not open from the child process. While I am here:
- KNF, pass lint.
- Fix a bug where the outer loop index was re-used in the inner loop.
- Check the return code of wait.
2006-02-05 14:03:46 +00:00
wiz 4679714200 Sort SEE ALSO. 2006-02-04 18:48:01 +00:00
dyoung 9d2dd62a57 Stop duplicating the ISO9660 sources in sys/fs/cd9660/ for makefs(8). 2006-02-01 22:19:34 +00:00
christos 5883cf1e6d PR/32681: Yves-Emmanuel JUTARD: Fix and document -d [hostname [pub]] 2006-01-31 17:47:04 +00:00
dsl 16ca1f6da7 Fix the detection of the bootstrap magic number when run on big-endian systems.
Correct another typo.
2006-01-30 21:15:37 +00:00
christos f49dbe00ee - use sizeof() instead of the buffer size.
- check write return.
- use MAXPATHLEN instead of BUFSIZ for a path buffer.
2006-01-29 18:55:46 +00:00
christos 85d0017934 Initialize loop master to -1 so that we don't accidentally close fd 0; should
fix smb's problem.
2006-01-29 17:52:38 +00:00
jmmv 1cd43a0b52 Add a missing space in the usage message. 2006-01-26 17:24:52 +00:00
martin 91378840b8 Add reference to installboot(8), as suggested by Patrick Welche. 2006-01-26 15:05:27 +00:00
joerg 32ce5ba905 Add conditional code to ignore the non-numeric part of an OS version
for the sake of compatibility tests in pkg_add.
E.g. DragonFly versions like
	1.4.0-RELEASE
are reduced to
	1.4.0

This code is disabled by default on NetBSD.
2006-01-25 00:17:34 +00:00
dsl 6c51ef9cb5 Fix spelling mistake in message 2006-01-24 18:35:18 +00:00
wiz ec5cd4a9b7 New sentence, new line. Bump date for previous. Properly case PostScript. 2006-01-22 21:31:17 +00:00
wiz 2d00c446d6 Bump date for previous. 2006-01-21 23:34:45 +00:00
rpaulo 78678b130a Better support of IPv6 scoped addresses.
- most of the kernel code will not care about the actual encoding of
  scope zone IDs and won't touch "s6_addr16[1]" directly.
- similarly, most of the kernel code will not care about link-local
  scoped addresses as a special case.
- scope boundary check will be stricter.  For example, the current
  *BSD code allows a packet with src=::1 and dst=(some global IPv6
  address) to be sent outside of the node, if the application do:
    s = socket(AF_INET6);
    bind(s, "::1");
    sendto(s, some_global_IPv6_addr);
  This is clearly wrong, since ::1 is only meaningful within a single
  node, but the current implementation of the *BSD kernel cannot
  reject this attempt.
- and, while there, don't try to remove the ff02::/32 interface route
  entry in in6_ifdetach() as it's already gone.

This also includes some level of support for the standard source
address selection algorithm defined in RFC3484, which will be
completed on in the future.

From the KAME project via JINMEI Tatuya.
Approved by core@.
2006-01-21 00:15:35 +00:00
wiz 771b656bd0 Add missing .El. From Nicolas Joly in PR 32546. 2006-01-20 21:50:54 +00:00
wiz 5fb854a4b2 Add reference to RFC 3164. From Pavel Cahyna in PR 32578. 2006-01-20 21:48:41 +00:00
christos c681304808 Instead of dealing with port@host in many places, do it where it is needed.
It reduces code and complexity and at the same time allows as to use symbolic
ports instead of just numeric everywhere.
2006-01-20 17:30:00 +00:00
garbled 79363b714f Add control file documentation for 'o' handling, and fix the
documentation on the DVI handling, the correct letter is 'd' not 'r'.
2006-01-20 08:51:40 +00:00
garbled bd7bcee846 Add a simple filter that encapsulates ascii text into HP PJL format.
Script written by Ross Harvey.
2006-01-20 08:37:26 +00:00
elad 3281cee076 Default socket owner to operator:operator. 2006-01-20 00:21:35 +00:00
garbled fad94e160d Fix PR bin/30272 Lpd would create the tempfile "remotexxxxx" and send
that, but then fill out the control file with the "df" filename.  Fix by
sending the remote file with the "df" filename, as suggested by Robert
Vargason on tech-userlevel.  lpd -r now works properly with an if (input
filter)
2006-01-19 19:17:59 +00:00