Commit Graph

6693 Commits

Author SHA1 Message Date
martti c5a31d5210 Set ${MACHINE} and ${MACHINE_ARCH}. 2003-11-06 07:09:40 +00:00
perry 4d9c2f6d8f Clean up the i386 examples somewhat, adding an example of upgrading
the boot blocks on the existing mounted root file system, and
eliminating references to bootxx_ufs.

I referenced the a partition even though most other ports seem to
reference the c partition. I don't know if that's the most correct
way to do it, but it seems to work for me and no one can tell me what
the canonical method is. I'd let someone else fix the man page but no
one seemed to want to and it really needed the example.
2003-11-02 16:04:31 +00:00
christos 4576b16a9b Increase the buffer size for result strings. Reported by Sergey Svishchev
svs at ropnet dot ru
2003-11-02 08:54:06 +00:00
mycroft e7e5d0f4f6 Don't display data for sensors with ENVSYS_FCURVALID not set.
Clean up a little.
2003-10-31 20:37:53 +00:00
hannken 101f03a0d5 Let it compile again on sparc/sparc64. 2003-10-31 10:09:55 +00:00
itojun 91ba57dca7 need_trigger/idx should be u_int. millert@openbsd 2003-10-31 00:31:53 +00:00
itojun 4101558b6e validate packet length. KAME-PR-517 2003-10-30 08:46:04 +00:00
fvdl e183d65fc4 Make a v6 socket v6-only, since rpcbind does host-based checking (all NFS
code already did this).
2003-10-29 17:51:33 +00:00
mrg 00b48119d0 XXX: build mdsetimage.c / installboot/ffs.c with -O0 on sun2 as GCC3
barfs on these for now.
2003-10-28 08:21:26 +00:00
wiz 3122f2a2f2 Grammar fixes in previous; use Nx in one place;
sort examples; replace < and > with \*[Lt] and \*[Gt] respectively.
Bump date for previous.
2003-10-28 00:26:17 +00:00
lukem f4f2cda6de minor consistency tweaks 2003-10-27 22:38:39 +00:00
lukem c176c56887 fix typo in comment 2003-10-27 22:29:59 +00:00
cl e05d95b990 add next68k support to installboot 2003-10-27 16:51:05 +00:00
lukem 171d653219 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
mycroft fc2aa2b3be Mention that we should be adding space for bitmaps. 2003-10-26 10:32:35 +00:00
mycroft f8ab7a4906 Remove a strange multiplication which appears to be incorrect. 2003-10-26 10:31:44 +00:00
lukem 931c212f78 Now that <math.h> #defines INFINITY as HUGE_VALF (the float version)
(per C99 7.12 #4), we can't define it as HUGE_VAL (the double version).
Instead, just use HUGE_VAL directly.
2003-10-26 08:08:06 +00:00
fredb cb7d2f351e Use ".Fl" consistently for option flags, and mdoc-ify the rest of that
paragraph, while we're in there. (There's still a long way to go...)
2003-10-25 12:32:55 +00:00
fredb 87d27207dc Clean up the flags section,
and note the existence of
.Fl d
Closes
PR misc/23254.
2003-10-25 12:27:08 +00:00
itojun 29d9058dc7 remove BIND crypto portion, as the license doesn't fit our policy and we do not
import those sources.
2003-10-22 05:56:36 +00:00
drochner e342c5fcb3 Explain the font loading example a bit better, to avoid a misunderstanding
which caused PR misc/21069.
2003-10-21 14:43:23 +00:00
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
agc 68f1651086 Tidy up the previous isdigit(3) boolean check. 2003-10-21 06:34:26 +00:00
fvdl 0526a13bc6 Don't compare an int to NULL. 2003-10-21 03:01:44 +00:00
fvdl 705a39bc93 Don't compare an int to NULL.
Some whitespace nits.
2003-10-21 03:00:41 +00:00
fvdl 1cb8eb7415 Don't compare an int to NULL. 2003-10-21 02:58:50 +00:00
fvdl 03de13db6e Fix a few cases where NULL was used as integral value. 2003-10-21 02:55:43 +00:00
fvdl cddedd60f8 Don't compare an int to NULL. 2003-10-21 02:53:57 +00:00
fvdl b6d9b01a54 Don't compare a char to NULL. 2003-10-21 02:53:02 +00:00
fvdl c40a2514bd Don't pass NULL as an integer. 2003-10-21 02:51:37 +00:00
fvdl bc6fdb757c Don't compare a char to NULL. 2003-10-21 02:50:41 +00:00
fvdl e7e0e9e521 Don't return NULL for an integer. 2003-10-21 02:49:07 +00:00
fvdl 82ac6194ae Don't compare an int to NULL. 2003-10-21 02:48:07 +00:00
fvdl 7de4819e2c Don't assign NULL to an integer. 2003-10-21 02:43:37 +00:00
fvdl 5f002aff6f Add missing initializer field. 2003-10-21 02:37:22 +00:00
he c42a239b5a Make this compile again. 2003-10-19 23:15:54 +00:00
lukem 8233be784c support MAKEVERBOSE 2003-10-19 06:12:07 +00:00
lukem a414e34de5 support MAKEVERBOSE and use ${HOST_SH} 2003-10-19 06:11:38 +00:00
lukem 6672bff7fc rework how cfparse.y is generated 2003-10-19 06:09:17 +00:00
lukem eae82b3d06 #define _PATH_BIN_RCMD in common_source/pathnames.h rather than using
wacky Makefile rules to compile rcmd.c
2003-10-19 05:51:44 +00:00
lukem 8545f3b03c Switch back to using YHEADER instead of custom yacc rules.
We use build.sh to support hosting on older NetBSD releases...
2003-10-19 05:30:30 +00:00
lukem fdffaa3fe5 Implement -r, which prevents syslogd from compressing multiple messages with
the same string into "last message repeated N times", and instead forces
syslogd to write out every message.

Based on '-c' in FreeBSD's syslogd, although a different option letter was
chosen because their syslogd requires '-c -c' to get this functionality,
and we don't have the support for logging to pipes which is what FreeBSD's
syslogd with a single '-c' is related to.
2003-10-17 01:39:25 +00:00
itojun 686afb7f65 safer use of realloc 2003-10-16 06:22:09 +00:00
itojun 33c55cb2ac make use of realloc(3) safe 2003-10-16 06:19:11 +00:00
itojun a038ecb5ba poll() argument mistake. Tatoku Ogaito 2003-10-16 05:25:51 +00:00
itojun 94a111ae53 safer realloc.
sizeof() for malloc was mistaken in socksetup().
2003-10-16 03:03:04 +00:00
tron d6dfcb09dd Don't try to compile "vprintf.c" because NetBSD has all the functions
defined there.
2003-10-14 11:49:52 +00:00
lukem 10e10fae7e Instead of requiring that the BPB is always the FAT32 one, check the
first three bytes to determine how much of the BPB to preserve.
Supported values:
	eb 3c 90        FAT16 BPB
	eb 58 90        FAT32 BPB
	(anything else)	don't preserve any BPB

This is because the BPB is generally only the FAT16 one except in the
bootxx_msdos case, where it's the larger FAT32 one.
2003-10-14 09:46:43 +00:00
agc 9f1aac5bb3 Move Jason Downs's code from a 4-clause to a 3-clause licence by
removing the advertising clause.  Diffs provided in PR 22410 by Joel
Baker, confirmed to the board by Jason Downs.

With additional thanks to Jason Thorpe.
2003-10-13 15:36:33 +00:00
dyoung 690ab87058 Use new 802.11 header files. 2003-10-13 08:02:02 +00:00
itojun 912235966a makeargv overrun. from openbsd 2003-10-13 06:14:04 +00:00
dsl d597578896 Include filename in:
'existing entry for `sha1.h', type `file' does not match type `link'
2003-10-10 11:08:54 +00:00
lukem 58e13fba70 Fix compile error on powerpc. Noted by Juergen Hannken-Illjes in private mail. 2003-10-10 01:50:47 +00:00
lukem 1c33b4e6a4 Overhaul MBR handling (part 1):
<sys/bootblock.h>:
    *	Added definitions for the Master Boot Record (MBR) used by
	a variety of systems (primarily i386), including the format
	of the BIOS Parameter Block (BPB).
	This information was cribbed from a variety of sources
	including <sys/disklabel_mbr.h> which this is a superset of.

	As part of this, some data structure elements and #defines
	were renamed to be more "namespace friendly" and consistent
	with other bootblocks and MBR documentation.
	Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
    *	Deprecated in favor of <sys/bootblock.h> (the latter is more
	"host tool" friendly).

amd64 & i386:
    *	Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
	be consistent with the naming convention of the msdosfs tools.

    *	Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
	and it's confusing to have two functionally equivalent bootblocks,
	especially given that "ufs" has multiple meanings (it could be
	a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

    *	Rework pbr.S (the first sector of bootxx_*):
	    +	Ensure that BPB (bytes 11..89) and the partition table
		(bytes 446..509) do not contain code.
	    +	Add support for booting from FAT partitions if BOOT_FROM_FAT
		is defined.  (Only set for bootxx_msdos).
	    +	Remove "dummy" partition 3; if people want to installboot(8)
		these to the start of the disk they can use fdisk(8) to
		create a real MBR partition table...
	    +	Compile with TERSE_ERROR so it fits because of the above.
		Whilst this is less user friendly, I feel it's important
		to have a valid partition table and BPB in the MBR/PBR.

    *	Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
	with other platforms.

    *	Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
    	we can boot off FAT partitions.

    *	Crank version of /usr/mdec/boot to 3.1, and fix some of the other
	entries in the version file.

installboot(8) (i386):
    *	Read the existing MBR of the filesystem and retain the BIOS
    	Parameter Block (BPB) in bytes 11..89 and the MBR partition
	table in bytes 446..509.  (Previously installboot(8) would
	trash those two sections of the MBR.)

mbrlabel(8):
    *	Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
	to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
2003-10-08 04:25:43 +00:00
itojun fdd3180d27 minor KNFs 2003-10-06 09:43:27 +00:00
itojun e45e8f9d58 use bouded string op as much as possible 2003-10-06 09:18:41 +00:00
lukem 420f3b76ba Replace BP_* with I386_BP_FLAGS_*, for consistency with other stuff in
<sys/bootblock.h>
(CONSDEV_ should be converted as well, but that's more intrusive...)
2003-10-06 05:24:54 +00:00
itojun d8db5e11b1 sprintf -> snprintf. hints from Thorsten Glaser 2003-10-06 04:19:41 +00:00
lukem b5589158f0 spelo in comment 2003-10-06 02:39:04 +00:00
grant d5f2632867 minor style nit 2003-10-06 00:44:15 +00:00
bouyer 7b066791c8 Remove references to University of California from my copyright notices. 2003-10-05 17:48:49 +00:00
wiz 9445c4eef4 Sort names. 2003-10-04 00:53:12 +00:00
wiz 3683b30e87 Add me here, too. 2003-10-04 00:51:31 +00:00
wiz c87a7072e8 Replace strnncpy calls with strlcpy calls. Remove strnncpy.
Ok'ed by agc and hubertf. Verified working with editors/mule package.
2003-10-04 00:50:34 +00:00
itojun c4beb9648d sync w/ header file changes 2003-10-03 23:27:31 +00:00
wiz e2b595e0ce Indent, and remove some #if 0-ed code. 2003-10-03 19:55:34 +00:00
wiz f13972188c Bump date for previous (oops :) ). 2003-10-03 15:42:22 +00:00
wiz 297eaf11ad Bump version to 20031003 for added HTTP support. 2003-10-03 15:41:03 +00:00
wiz 38e730c27c Add HTTP support.
Thanks to dillo@ for extensive review and jmmv@ for testing.
Remaining bugs are, of course, mine.

Closes PR 10006.
2003-10-03 15:40:27 +00:00
lukem 4ab35bde4b Document the various bootxx_ variants seen on i386, since it's a FAQ.
Document /usr/mdec/biosboot.  (Arguably that should be renamed to
"/usr/mdec/boot" or "/usr/mdec/boot.i386" for consistency with other platforms)
2003-10-03 13:43:34 +00:00
mhitch 3400c43ec7 Add <string.h> include for memcpy. 2003-09-27 19:35:14 +00:00
dsl 44b926213e Add a -a option to dump all alternate superblocks 2003-09-26 07:02:43 +00:00
wiz fb41fcc067 Make compile with STANDALONE defined. 2003-09-25 22:31:35 +00:00
wiz c605c0c28e s/lukemftp/nbftp/, fix two typos. 2003-09-25 22:14:16 +00:00
dsl e045a0f96e Allow a numeric ID to be preceeded by '#' to avoid the name lookup.
Update man pages to match.
2003-09-25 10:30:10 +00:00
wiz 1d02c95b43 Bump date for previous (hi antti!). New sentence, new line. 2003-09-25 09:37:32 +00:00
pooka 8ac798e2ed Document the controller/firmware keyword. 2003-09-25 09:21:48 +00:00
mycroft fc24d6a197 Pull in libipsec. 2003-09-25 01:02:03 +00:00
agc 8dc14b2f96 Cast the type of argument printed, for sparc and arm platforms. 2003-09-24 06:18:16 +00:00
itojun 8c185a2af9 no need for "sdl = NULL" initialization on decl. cedric@openbsd 2003-09-23 18:15:50 +00:00
itojun ed45a3ba48 simplify by using getifaddrs 2003-09-23 17:57:21 +00:00
christos b3601bdfc6 reset values when malloc fails. 2003-09-23 15:07:43 +00:00
wiz 2095b365b2 Avoid shadowing err. 2003-09-23 14:55:01 +00:00
wiz f220a7df77 Add prototype for remove_files. 2003-09-23 14:54:53 +00:00
wiz 161f3f684b Remove last vsystem caller and vsystem() itself. 2003-09-23 14:23:53 +00:00
agc 342644fea5 Add <sys/wait.h> so that we have a prototype for waitpid(3). 2003-09-23 14:18:01 +00:00
itojun 9beba21754 ignore non-AF_INET addrs. from openbsd 2003-09-23 10:50:51 +00:00
wiz acbbe02c81 Add some free()s in error cases. 2003-09-23 09:47:20 +00:00
wiz 7e60425a84 Get rid of lots of system(3) (partly via vsystem) calls.
Previous version reviewed by agc.
Closes PR 20518.
2003-09-23 09:36:04 +00:00
grant 889c15684e bump PKGTOOLS_VERSION for identification purposes (despite the lack of
any functional change).
2003-09-23 07:10:53 +00:00
grant fd9dca3d28 don't assume mtree is in BINDIR, allow it to be overridden by
MTREE_CMD.
2003-09-23 06:19:45 +00:00
grant e37cded7b1 remove redundant comments about zoularis. 2003-09-23 05:39:41 +00:00
tron 01c3d246ff Add my name to the list of the culprits. 2003-09-20 17:17:40 +00:00
itojun 1ce85c4e12 plug memory leak. from kame 2003-09-20 13:04:07 +00:00
lukem 9c437ec754 Change `LNFILES' to `BUILDSYMLINKS', to more accurately describe its purpose.
Per discussion with Simon Gerraty.
2003-09-20 06:20:41 +00:00
wiz 137c968ad5 Initialize cnt; from Greg A. Woods in PR 22862. 2003-09-19 17:44:53 +00:00
martin 0af2c4286d Remove sparc64 special case handling - no longer needed. 2003-09-19 16:39:52 +00:00
itojun 4a7fa92f21 no need for explicit '?'; openbsd 2003-09-19 08:24:07 +00:00
itojun a82a0d12e2 realloc pedant 2003-09-19 06:22:03 +00:00
itojun e99b62a1d7 realloc pedant 2003-09-19 06:11:35 +00:00
itojun 0c4a8b5a7e realloc pedant 2003-09-19 06:01:24 +00:00
agc 4fe63c7eb9 Let pkg_admin(1) have a -S argument - some vendors' xargs(1) don't pass
a null ("") argument properly (hi, Sun), so make -S a synonym for -s "".

Don't dump core if no command is given to pkg_admin(1).

Print usage message to stderr, not stdout, and use the program name by
which it was invoked.

Bump pkg_install version to 20030918.
2003-09-18 09:56:20 +00:00
agc 54f9bdba40 Remove the names of arguments from function prototypes. 2003-09-17 13:27:42 +00:00
jmmv 94114f39df Use tabs for indentation; pointed out by simonb@. 2003-09-14 12:43:04 +00:00
jmmv fc7230200f Fix crash when using the '-x' flag. 2003-09-14 12:35:46 +00:00
jmmv ce413b6dd1 Fix some warnings. 2003-09-14 12:33:05 +00:00
jlam 505c7e361d Update pkg_install to 20030914. Changes from version 20030913 are
ensuring that recursive pkg_delete'ing works by using the correct
pkg_dbdir to find packages.  This fixes recursive deleting if the
-K flag is passed to pkg_delete(1), and the named dbdir differs from
the default dbdir (/var/db/pkg).
2003-09-14 04:58:30 +00:00
christos 27a8c2abc5 PR/22776 : Andreas Wrede: proxyarp in pppd is broken 2003-09-13 18:55:17 +00:00
erh 1f5fff1c1c PR# standards/16143: hide struct uio from userland behind a __UIO_EXPOSE
ifdef.  Define this when building ipf, since it shares code between the
kernel and userland and uses struct uio.
2003-09-13 16:59:29 +00:00
jlam 2277c35f52 Update pkg_install to 20030913. Changes from version 20020912 are quieting
the file removal when deleting linkfarms if the expected file doesn't
exist.  Since the symlink isn't there, the mission is already accomplished,
so why bother with the warning?
2003-09-13 09:20:26 +00:00
jlam 1732738842 Update pkg_install to version 20030912. Changes from 200230907 are
adding two new options to pkg_admin(1) to simply using this utility to
list the bare package names that match patterns when looking in PKG_DBDIR:

      -b      Print only the basenames when matching package names for
              lsall and lsbest.

      -d lsdir
              Set lsdir as the path to the directory in which to find
              matching package names for lsall and lsbest.
2003-09-13 05:48:50 +00:00
pooka fdd5c1261b our isdntrace uses /dev/isdntrc<n>, not /dev/i4btrc<n> 2003-09-11 14:14:31 +00:00
jlam f310627cee Fix a bug I accidentally introduced in rev. 1.48 where a pkg_dbdir could no
longer be a symlink to a directory.
2003-09-10 17:28:59 +00:00
jlam 7297f559c5 Inverted a test by mistake. 2003-09-09 08:22:39 +00:00
jlam f5e8befe51 Replace call to vsystem() with call to fexec() for speed. 2003-09-09 06:43:10 +00:00
jlam 154a25e9c8 Output the name of the pkgdb file from which we are removing entries
instead of just "pkgdb".
2003-09-08 22:19:25 +00:00
jlam bfb9e5680c Allow the package entries in the pkgdbdir to be either directories or
symlinks to directories.  This gives the user more rope, but lets those
who know what they're doing to do what they want.
2003-09-08 22:11:12 +00:00
cl 289a48a2fc free string only after it's no longer used through dirname reference. 2003-09-08 17:50:12 +00:00
jlam 37365fbf87 It's "-d stowdir" not "-D stowdir". 2003-09-08 10:21:25 +00:00
jlam 198410e826 Use the pkgviews terminology from pkgsrc/mk/buildlink3/README consistently
in this man page: depoted packages are kept in their depot directories, and
pkg_view(1) manages instances of those packages in views.  Also copy the
warning in the pkg_delete(1) man page instead of the one from the
pkg_add(1) man page since the former correctly refers to package control
files already installed on the system.
2003-09-08 10:17:16 +00:00
wiz a3a659ef72 Add options to SYNOPSIS; remove some fluff from Nd. 2003-09-08 09:12:35 +00:00
wiz b897232ac9 Sort options; use Fl x instead of Ar -x; use Pq/Sq. 2003-09-08 09:11:12 +00:00
wiz 255fb463e6 Bump date for previous. 2003-09-08 08:57:56 +00:00
wiz 1b83dbb69f Sort options. 2003-09-08 08:57:42 +00:00
wiz 491ae8b74a Bump date for previous. 2003-09-08 07:14:29 +00:00
jlam 0d7b7e0f8f Bump version to 20030907. Changes from previous version include:
* Teaching pkg_add(1) to be smarter about how to add a depoted packge.

    * "pkg_delete foo" only deletes foo if it's a unique package.

    * Teach pkg_admin(1) two new commands "add" and "delete" for working
      with pkgdb.byfile.db.

    * pkg_view(1) uses the new pkg_admin(1) commands to keep the
      pkgdb.byfile.db files consistent in each view.
2003-09-08 07:13:29 +00:00
wiz 376ac9e3f6 Bump date for previous. 2003-09-08 07:12:53 +00:00
jlam 453f4348b6 Use "pkg_admin add|delete" to manipulate the pkgdb.byfile.db files in each
view so that they contain the correct information for the files stored in
each view.
2003-09-08 07:09:33 +00:00
jlam 751f88a06a When executing "pkg_delete foo", only delete it if "foo" resolves to a
unique package.  This makes deleting packages less surprising in a pkgviews
world where you can have multiple versions of packages installed at the
same time in the package depot.

Also make "pkg_delete -f" work depoted packages if they have been added to
views by also running "pkg_delete -f" for the package instances in the
views.
2003-09-08 07:08:11 +00:00
jlam 1bbe06780b Add new commands "add" and "delete" to pkg_admin(1):
add pkg ...
             For each listed package, write the absolute pathnames of the
             files listed in its +CONTENTS file together with the package
             they belong to into the package database.  This should be used
             only by pkg_view(1).

     delete pkg ...
             For each listed package, remove all file entries in the
             package database that belong to the package.  This should be
             used only by pkg_view(1).

These commands will be used by pkg_view(1) to keep the pkgdb.byfile.db
files for each view consistent with what's stored in each view.

Since we stole these names from the debug code, change the names of the
debug commands to "addkey" and "delkey".
2003-09-08 07:04:40 +00:00
jlam 449bc6e566 Note that LOCALBASE and PKG_VIEW in the environment will affect the
behaviour of pkg_add(1) indirectly by affecting the behaviour of
pkg_view(1).
2003-09-08 07:01:30 +00:00
jlam 6a37e1039a When adding depoted packages into the depot, manipulate the correct
pkgdb.byfile.db by using the fact that depoted packages have their
dbdir == ${DEPOTBASE}.
2003-09-08 07:00:10 +00:00
jlam 140fe23a05 strlen(pkgname) only returns the number of characters preceding the NUL,
but the size of the data field in the pkgdb.byfile.db file is the length of
the string plus 1 for the NUL.  Fix this check so that removing all of the
files belonging to pkgname from pkgdb.byfile.db works again.
2003-09-08 06:41:23 +00:00
jlam 5fc555d16b Correct the documentation of the return values for pkgdb_open() and
pkgdb_remove_pkg().
2003-09-08 05:34:35 +00:00
wiz 47190e80b8 Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'.
From jmc@openbsd.
2003-09-07 16:22:20 +00:00
fvdl bd84ee9c7a Revert arc4random usage. makefs is only used for install images,
filehandle randomization is not an issue there, and using arc4random
broke building makefs as a host tool.
2003-09-07 14:24:08 +00:00
itojun f189be338c unifdef HAVE_ARC4RANDOM 2003-09-06 12:56:43 +00:00
itojun e2c411ce3c use arc4random 2003-09-06 12:42:00 +00:00
bouyer d2c13c7513 width needs to be updated before each loop, because svc_maxfd may have
changed.
2003-09-05 14:59:37 +00:00
pooka 8446050ba0 Add support for loading firmware to a controller using the firmware
keyword in the controller section (kernel counterpart already exists).

similar to what's in FreeBSD
2003-09-05 13:31:03 +00:00
wiz dea83a9f43 Clarify that the user's full name (not username) goes into the GECOS field.
From Jeff Ross via jmc@openbsd.
2003-09-04 08:37:59 +00:00
lukem 49fb32cb30 use LNFILES instead of homegrown equivalent 2003-09-04 06:42:50 +00:00
thorpej d00feb8a89 Allow file inclusions to be relative to the file currently being
included.  This is done by tracking the current directory for the
file being parsed, and constructing a path relative to that directory
when an include directive's file name begins with "./".
2003-09-03 18:56:37 +00:00
jlam 8b2d4b4f3c Bump version to 20020824 after allowing users to use more than the default
view.
2003-09-03 12:52:30 +00:00
jlam f7ddad56af Don't prevent users from using more than just the default view. Let's let
them try to use one of the good points of pkgviews right away.
2003-09-03 12:45:25 +00:00
jlam b3a911d206 Remove parts that were there just to allow this to compile on NetBSD ~1.3.
We have this in pkgsrc and bootstrap-pkgsrc for those systems.
2003-09-03 12:44:01 +00:00
jlam 0430171011 Check the return from read on the file descriptor for the ftp process: if
we don't get anything, then it's an error.  From cb@netbsd.org in private
email.
2003-09-03 07:33:37 +00:00
itojun ecf557376f use poll(2) instead of select(2). based on patch from deraadt@openbsd, via kame 2003-09-02 22:57:29 +00:00
itojun 9b81bd5614 initialize sentinel.next so that config_list does not get garbage 2003-09-02 22:56:11 +00:00
wiz c9af3bba1c Drop trailing space. 2003-09-02 07:42:08 +00:00
jlam 1a174cde55 Merge src/usr.sbin/pkg_install on the pkgviews branch into the HEAD by
running:

        cd src/usr.sbin/pkg_install
        cvs update -Pd -A
        cvs update -Pd -j pkgviews-base -j pkgviews
2003-09-02 07:34:47 +00:00
tron ce691fb888 Replace calls to vsystem() by calls to fexec(). 2003-09-01 17:43:23 +00:00
christos b03d86adf3 Use PPPIOCGRAWIN to get the last characters the remote sent, if we are not
8 bit clean.
2003-09-01 16:54:27 +00:00
itojun 67ad87844e plug memory leak. oenbsd-pr-3425 2003-09-01 00:21:08 +00:00
fvdl 728340f200 Add amd64 to list of supported machines (does the same as i386). 2003-08-30 17:46:32 +00:00
wiz 006b3d98e0 Sort options in usage (AaBb...). 2003-08-30 12:48:11 +00:00
wiz dc6113b226 Sort options (AaBb...); drop trailing space; use Nx instead of verbose
NetBSD; add commas.
2003-08-30 12:48:01 +00:00
dsl e59ecd76c4 Include a (very raw) dump of the inodes.
Add options to determine what is dumped (default to old behaviour).
2003-08-30 10:30:52 +00:00
wiz 829e2cfa46 Bump date for last. 2003-08-28 18:55:16 +00:00
elric 6ab21fc010 Add sorting based on last login time via -t (most recent first a la ls(1)).
Add reverse of current sort via -r (like ls(1) as well.)
Add a couple of lines of documentation to the man page about the two new
options.
2003-08-28 15:54:41 +00:00
itojun 4572e734b1 plug memory leak. openbsd-pr-3416 2003-08-27 08:15:16 +00:00
itojun d9c46578d1 update racoon to 2003/8/26 version. mostly minor bugfixes. 2003-08-26 03:31:50 +00:00
tron f48c4e3753 Fix error in memory handling. 2003-08-25 10:52:23 +00:00
tron a58c832dd6 Replace calls to vsystem() by calls to fexec() or fcexec(). 2003-08-25 10:35:28 +00:00
tron c28355d067 Add a new library function fcexec() which allows to run a command after
changing the current directory.
2003-08-25 10:23:41 +00:00
tron 43b89589d9 Use "rm -fr" consistently. 2003-08-25 10:23:06 +00:00
tron 2f1b656bac Replace a few calls to vsystem() with calls to fexec() to speed up
operations.
2003-08-24 21:11:37 +00:00
tron 777ed45553 Add a new utility function which use vfork(2) and exec(2) directly instead
of system(3) to run an external program.
2003-08-24 21:10:47 +00:00
wiz 9d5bb59b30 New sentence, new line; bump date for last;
drop superfluous Pp added in last. Increase width for table.
2003-08-23 23:20:12 +00:00
lha afad8d1f7c libkrb depends on libdes, patch in private mail from
Harold Gutch logix at foobar franken de
2003-08-23 23:03:42 +00:00
itojun c66d2bd6ee Don't age non-gateway host routes. PR bin/22568 from Andrew White 2003-08-22 08:24:26 +00:00
martti 27017e5a9a Added a note about pwd_mkdb when using the -d switch. 2003-08-22 07:04:39 +00:00
tsutsui 3422a6eafe Fix Typo. 2003-08-20 13:07:41 +00:00
itojun 7fb76a1cf3 no longer in use 2003-08-20 01:31:12 +00:00
itojun 7f5c6fbfb1 use strlcpy 2003-08-19 22:22:27 +00:00
yyamano 9d1bacfdb9 fix typo. 2003-08-18 16:12:58 +00:00
itojun 757e458559 SIOCGIFCONF -> getifaddrs conversion 2003-08-18 05:39:52 +00:00
itojun 916585ff14 SIOCGIFCONF->getifaddrs conversion 2003-08-17 22:34:17 +00:00
itojun cdf8146ccf SIOCGIFCONF->getifaddrs conversion 2003-08-17 22:12:43 +00:00
itojun f4c0491af5 one more SIOCGIFCONF->getifaddrs conversion 2003-08-17 21:43:29 +00:00
itojun 0f6ff2de74 rewrite SIOCGIFCONF into getifaddrs(3) 2003-08-17 21:36:56 +00:00
martin b1fbf8b8ca Add an example for creating a bootable i386 floppy. 2003-08-16 18:42:53 +00:00
itojun c4191f3816 plug memory leak. PR misc/22479 2003-08-14 10:06:36 +00:00
atatat 4e34961a55 Jobs specified for @reboot are only popped into the job queue at cron
startup time ("reboot" of cron, not the system), so okay_to_go() must
always say they are good to go.  Otherwise they never will.  All other
meta-timetags pertain to regular times, so they are (or were)
unaffected.

Problem noted by tron and successfully assigned to me by perry.
2003-08-13 03:51:15 +00:00
dsl 66673ac6a2 Fix display of fslevel (was almost always 0) 2003-08-12 13:15:35 +00:00
itojun 9088831850 tabify 2003-08-11 16:20:11 +00:00
grant 3319bc243a we already print "creating package ..." in pkg_perform(), no need to
say it twice :)
2003-08-10 12:27:08 +00:00
agc 326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
jmmv 18ccc9b90c Add and use the log_err, log_errx, log_warn and log_warnx functions that act as
wrappers for err, errx, warn and warnx respectively when running in foreground
and call syslog functions when running in daemon mode.
Also add and use an extra log_info function for other types of information.
2003-08-06 23:58:40 +00:00
jmmv a79323123c Add the `action' mode, which can be used to associate commands with mouse
button events.  This mode needs to be explicitly enabled at runtime, and
does nothing if not configured.

As there are now two different modes available, adjust the manpages
accordingly, describing what they do and how they work separatedly.

While here, remove a bunch of unused stuff (event syntax) from config file
parsing.  This was initially added with this new mode in mind, but it has
not been used to make it a lot simpler.
2003-08-06 22:11:48 +00:00
jmmv 15ba121760 - Let the main program handle multiple run modes easily. Each one is
described by a structure with pointers to functions.
- Clearly separate the "selection" mode (which provides copy and paste support
  in console) from wsmoused's main program.
- Added the "modes" property to the configuration file and the "-m" command
  line option to specify which modes should be activated.  (this is mostly
  useless for now, as only the "selection" mode exists; a new mode will
  be added soon, hopefully).
- While here, several style fixes according to share/misc/style.
2003-08-06 18:07:53 +00:00
mrg 134561f7df - convert header() away from a signal function (it does all sorts of stdio
and more) and use a little sig_header() helper.
- in selectdrives() make sure we don't overwrite some arrays.  this makes
"iostat 1" work again on my really wide screens where defdrives (number that
can fit) was > ndrives (number of drives), rather than dump core trying to
print (char *)1...
2003-08-04 01:05:44 +00:00
lukem a93ea220fc Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
lukem 87b1d00a0c remove unnecessary dependency now that bsd.rpc.mk adds to DPSRCS 2003-07-29 02:48:47 +00:00
itojun de3e7a8bf6 debian bug id "sup 1.8-8, bug #175327" - temporary file symlink race 2003-07-28 23:13:17 +00:00
lukem eb51573bd7 Use ${DEPENDSRCS} as a target instead of .depend, now that
<bsd.dep.mk> builds .depend from .dep files.
2003-07-28 15:25:02 +00:00
lukem 0283225f29 Explicitly pull in <sys/endian.h> #if !defined(HAVE_CONFIG_H).
(I prefer to be explicit about this, since installboot uses the endian
macros a lot)
2003-07-27 07:53:26 +00:00
lukem 4e59fb5bab rcsid 2003-07-27 07:51:40 +00:00
salo d6a8052848 netbsd.org->NetBSD.org 2003-07-25 12:14:10 +00:00
itojun c7d6ddcd4d racoon sha2.c is not compatible with openssl 0.9.7, drop support 2003-07-24 14:22:01 +00:00
itojun adeab29eca include des.h, not kerberosIV/des.h 2003-07-23 20:31:18 +00:00
itojun e63468d8cc split MKKERBEROS4 from MKKERBEROS. based on work by lha at stacken.kth.se
(build confirmed with both MKKERBEROS4=yes and MKKERBEROS4=no)
2003-07-23 08:01:24 +00:00
lukem c0a8541252 oops, typo in previous. should have been COPTS.sha.c. (this was not being compiled anyway, but...) 2003-07-22 12:50:46 +00:00
lukem 77c4c3827a use COPTS.sha1.c=-O0 to turn off optimization for sha1.c 2003-07-22 12:39:24 +00:00
lukem 0b856bc2de use CPPFLAGS.filename=... to add file-specific overrides 2003-07-22 11:29:53 +00:00
itojun 18a884bc94 oops, forgot to bump version string 2003-07-22 08:46:03 +00:00
itojun 5d573dd9ce use bounded string op 2003-07-16 08:22:01 +00:00
itojun d79a960daf strlcpy 2003-07-16 06:57:39 +00:00
itojun 6ba71df691 use bounded string op 2003-07-16 06:40:47 +00:00
itojun 16fd25dc05 snprintf 2003-07-16 06:33:11 +00:00
itojun bd719499fb use bounded string op 2003-07-15 12:33:17 +00:00
itojun af8ebb34e7 use snprintf 2003-07-15 12:32:07 +00:00
lukem a329d6f3f8 add MTREE=mtree back, for systems with some .mk version skew... 2003-07-14 23:16:19 +00:00
itojun 99f12cfafe use bounded string op 2003-07-14 09:07:22 +00:00
itojun 2372fad140 use bounded string op as much as possible 2003-07-14 08:43:19 +00:00
itojun 47a6a58fe5 use bounded string op 2003-07-14 08:36:34 +00:00
itojun 49a751869e use bounded string op as much as possible 2003-07-14 06:17:54 +00:00
itojun 5402d14cf4 use boundedd string ops 2003-07-14 06:08:04 +00:00
itojun 041bd7648a use bounded string op as much as possible 2003-07-14 06:00:44 +00:00
itojun 97a29a12a2 use bounded string ops (one strcpy remaining) 2003-07-14 05:55:38 +00:00
itojun 2a470e2847 use bounded string op 2003-07-13 14:06:06 +00:00
itojun 63b4a66b0f strlcpy is prototyped in string.h 2003-07-13 14:02:23 +00:00
itojun 1d06004879 use strlcpy 2003-07-13 13:54:02 +00:00
itojun b98c10dfbb strdup is simpler 2003-07-13 12:40:17 +00:00
itojun 9e765fb451 use bounded string op 2003-07-13 12:39:08 +00:00
itojun e8f0e61fd7 use bounded string op 2003-07-13 12:29:20 +00:00
itojun d0a2aaaa79 use bounded string ops 2003-07-13 12:27:14 +00:00
itojun 7bb0ef551c use bounded string op 2003-07-13 12:18:55 +00:00
itojun d9f2774c1e use bounded string op 2003-07-13 12:08:28 +00:00
itojun c2e037e2df use bounded string op as much as possible 2003-07-13 12:07:16 +00:00
itojun 03eefe2ecf sync w/ latest racoon 2003-07-12 09:02:24 +00:00
lukem 001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
uwe 99b1f08d32 #include <string.h> for memset and memcpy.
Caught by gcc 3.3.
2003-07-08 23:33:50 +00:00
uwe e8eb650251 "extra tokens at end of #endif directive".
Caught by gcc 3.3.
2003-07-08 23:26:55 +00:00
abs e364b78d41 Fix typo in last change (misplaced ');') 2003-07-04 14:11:36 +00:00
wiz 1c59e224c1 Remove superfluous Ns. 2003-07-04 12:56:58 +00:00
wiz 988b927344 New sentence, new line; limit to 80 chars lines. 2003-07-04 12:48:30 +00:00
wiz 1dbe2d9b38 Sync usage with man page. 2003-07-04 12:45:05 +00:00
wiz 67a1a16995 Sort sections, options, grammar fix. 2003-07-04 12:44:12 +00:00
wiz f9cc3a858b Bump date for recent changes. 2003-07-04 12:33:11 +00:00
wiz 88c9d9d14b Fix typo. 2003-07-04 12:17:32 +00:00
itojun 380bdb8dbb avoid mandoc warning 2003-07-04 07:54:47 +00:00
dsl d2b9d2f94a Add some htole32() for host endianness independance 2003-07-04 07:45:06 +00:00
itojun e1425434e7 no need for __ss_len define any longer 2003-07-04 05:21:26 +00:00
itojun 9f803f2b20 evp.h better fit under cert support 2003-07-04 05:20:45 +00:00
itojun 8172c901e4 support idea/rc5 if they are available. add missing #define.
VS: ----------------------------------------------------------------------
2003-07-04 05:17:25 +00:00
jrf d9791f82a0 This addresses PR 19797, a small patch made by Tor Stormwall to add
a simple print statement showing the build directory location after
running config and creating a usage() function instead of using the
goto usage statement. Approved by christos@ and thanks to Tor for
the suggestions and patch.
2003-07-02 16:47:53 +00:00
simonb c71be29ffd Use the terminal width to choose the default number of drives listed.
Suggested by matt green and (indirectly) enami tsugutomo.
2003-07-02 13:47:57 +00:00
simonb 329fb18071 Pinch code from vmstat to get the number of lines of the terminal, and
show the header once per screen instead of fixed at every 22 lines.
2003-07-02 13:20:14 +00:00
simonb 2f35689ef7 Bump the width of the MB/s and t/s fields and show only 3 drives by
default.  The default display now fits in 80 columns, and looks much
better on modern systems.
2003-07-02 08:35:48 +00:00
wiz 422ac6bdd7 Match example code with example comment; multiple selectors should be
separated by semicolons (in BUGS section); from jmc@openbsd.
While here, use more macros.
2003-07-02 08:33:22 +00:00
wiz e38cc56dbd Ic Ar -> Ar. 2003-07-01 10:27:47 +00:00
dogcow 62509eec36 make the given example actually work. 2003-07-01 00:08:52 +00:00
wiz 40bce18021 Simplify macro usage. 2003-06-30 11:55:11 +00:00
wiz 96be368bd4 Be more careful about .Sm on/off usage. 2003-06-30 10:49:28 +00:00
wiz 5eaf7230fd Quote some punctuation (XXX: take care on next import...). 2003-06-30 10:39:28 +00:00
wiz 085295fd9c Quote some characters. 2003-06-27 23:21:50 +00:00
wiz f9502382bc No longer i386-only. 2003-06-27 22:58:30 +00:00
wiz 7fa3ef5ac1 Quote question mark. 2003-06-27 22:56:37 +00:00
wiz c1be448d85 Quote exclamation mark. 2003-06-27 22:53:52 +00:00
wiz ff81956eb8 New sentence, new line. 2003-06-27 19:09:02 +00:00
wiz 625d4420e8 Sm off -> Sm on (Sm off...Sm off is not too smart). 2003-06-27 18:58:47 +00:00
heas 566bb2555a Deref the nv_list pointer and take it's address; cleaner and more clear.
as suggested by enami.
2003-06-27 18:42:11 +00:00
itojun da2e0c851d err() cleanup, from openbsd-current via kame 2003-06-27 07:49:40 +00:00
wiz 9d3470de48 Remove superfluous .Ek. 2003-06-26 10:10:11 +00:00
wiz 16562717af Quote % characters in macro lines. 2003-06-26 10:09:05 +00:00
itojun e195d590d8 make it possible to obtain default router address from any interface (-i).
-r might be sufficient.
http://pc.2ch.net/test/read.cgi/unix/1050823044/377
2003-06-26 05:38:45 +00:00
hubertf 33ec91dbc6 deleting as non-root works fine, so don't insist on running as root 2003-06-25 23:12:42 +00:00
heas 3ff52bc3f5 Correct comment string "mkoptions" -> "makeoptions" 2003-06-25 07:02:04 +00:00
heas 626ce79cef When removing a nvlist entry (describing an option, makeoption, etc) in
undo_config, if that entry is the tail of the LL, also update the appropriate
tail point (nextopt, etc).
2003-06-25 06:42:40 +00:00
itojun daf8a4ad8e "addrs" is not needed any more 2003-06-25 03:45:02 +00:00
martin 86af37d360 Make child processes log failure to exec scripts. 2003-06-24 09:41:34 +00:00
martin c7eb05dd91 Clarify description of -v, following a hint from felix zaslavski. 2003-06-24 09:31:17 +00:00
hubertf e7469f38ad In "crontab -l", suppress the header lines, just as "crontab -e" does.
OK'd by Christos Zoulas and Paul Vixie.
Fixes PR 21705.
2003-06-23 22:36:02 +00:00
martin 3088b1239b Improve diagnostics a bit, log to syslog. 2003-06-23 21:50:12 +00:00
tacha 7a3ec6c576 Call tgetent only when TERM environment is set. 2003-06-23 16:46:57 +00:00
bouyer d6242d4312 We can't keep a reference to the value returned by svc_getrpccaller().
Instead malloc() some memory and copy the sockaddr returned there.
Fix a bug where after a blocked lock gets granted, the grant message would
be sent to the wrong machine (or possibly to a completely bogus address).

While there, add a NULL check for the return value of another malloc().
2003-06-19 11:13:06 +00:00
agc 7b2c1a6c22 Firstly, let's give credit where credit is due - the idea came from uwe.
Add the ability to pkg_info(1) and pkg_delete(1) to take a directory
name for the name of the package, so that shell-completion can help
when finding out information or deleting packages.
2003-06-19 08:54:29 +00:00
itojun c0ee9a3789 need "a". from jmc@openbsd 2003-06-18 05:06:15 +00:00
atatat d2f781064e If the file being stuffed into the config file string for inclusion in
the kernel is missing the newline at the end of the file, the string
doesn't get closed properly, resulting in a message from the compiler
about a missing #endif.  It's somewhat misleading, so config will now
point it out and compensate for the missing newline.

Addresses PR kern/21920: including kernel config fails in some cases.
2003-06-18 04:19:49 +00:00
itojun 81e3f9cb3f sync manpage with previous change (addrs# deprecdated) 2003-06-18 02:08:10 +00:00
itojun 8412a300dc relax addrs#x config parameter. should address PR 21872 2003-06-17 08:08:48 +00:00
tsutsui af66232520 Fix function declaration mismatch with src/sys/ufs/ffs/ffs_extern.h which
causes makefs(8) failure on big endian machines. Pointed out by tsubai.

XXX The real problem is that some sources include {.CURDIR}/ffs/ffs_extern.h
XXX but others include /usr/include/ufs/ffs/ffs_extern.h .
2003-06-15 18:10:56 +00:00
itojun 7087f39f8d use strlcpy/cat 2003-06-13 07:26:41 +00:00
agc 65feb98718 Some patches from Todd C. Miller:
1. Use REG_NEWLINE, rather than matching "\n".

2. Fix a bug where rm_user_from_groups would mangle group entries in
/etc/group when the user to be removed is the only member of the group,
by using substring matches.
2003-06-12 17:00:53 +00:00
agc 706a03ef9c Make the "-f" switch to pkg_delete(1) into a counter. Require two "-f"
switches to delete a package that has been preserved. Document this
change.
2003-06-12 13:50:38 +00:00
agc bc4c2ec6be Avoid one more annoying duplicated slash when prefix is "/" in pkg_create(1),
and one in the db cache file, which was causing pkg_info -F to produce the
wrong results with a prefix of "/".
2003-06-12 13:29:32 +00:00
drochner 96b62d8a69 no need to #include <sys/dkstat.h> 2003-06-11 17:26:31 +00:00
christos b4f029d21d revert to revision 1.41, since 1.42 did not fix the problem and made the
code more complicated. Fix the real issue which was setting the dst addr
incorrectly.
2003-06-09 13:35:10 +00:00
itojun 7a5741651c - sync up MLD declaration with RFC3542 (s/MLD6/MLD/)
- routing header declaration with RFC3542
  (note: sizeof(ip6_rthdr0) has changed!)
  also, sync up with RFC2460 routing header definition (no "strict" source
  routing mode any more)

part of advanced API update (RFC2292 -> 3542).
2003-06-06 08:13:43 +00:00
christos 7eec87e751 previous fix had trouble deleting routes; try to delete a more generic
default route.
2003-06-05 19:48:49 +00:00
agc 2efa359891 When displaying full pathnames of the package contents (pkg_info -L pkg),
don't add a '/' between the prefix and the name if the prefix is "/".
This avoids annoying annoying double slash filenames when the prefix is "/".
2003-06-05 17:58:05 +00:00
agc 582cc64a31 Set the program name via setprogname(3). 2003-06-05 13:15:43 +00:00
dsl eb9a70f8fb Another mistake in the ufs2 code - a missing else. 2003-05-30 09:22:50 +00:00
simonb ae46649fa5 Pass a NULL to getbsize() for any arguments that aren't needed, and
remove the otherwise unused variables.
2003-05-30 00:17:25 +00:00
christos a23e290bac Specify the interface where to place the default route, otherwise we sometimes
can put it in the wrong place.
2003-05-28 13:43:26 +00:00
yamt cc3f08f723 define HAVE_XDR_MOUNTRES3 in pre-generated config.h as we have mountres3 now.
this makes amd buildable for archs without shlibs support like hpcsh.
(i've tested i386->hpcsh cross-compile)

pointed by Torsten Harenberg on tech-hpcsh
and analyzed by Valeriy E. Ushakov.
2003-05-18 09:44:28 +00:00
lukem 826a14607a Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
there's no need to special-case .include-ing it.
2003-05-18 07:57:31 +00:00
itojun ef713a2fe9 use strlcat 2003-05-17 21:00:57 +00:00
itojun 89bf339ad7 use strlcpy/strlcat 2003-05-17 20:58:39 +00:00
itojun c428db5b2f use strlcpy 2003-05-17 20:55:44 +00:00
itojun 9e390651ee remove local copy of strl{cat,cpy} 2003-05-17 20:49:28 +00:00
itojun 85da88227f use strlcpy/strlcat.
[fix off-by-one in displayq.c]
2003-05-17 20:46:42 +00:00
itojun b37b18f113 remove obsolete comment 2003-05-17 19:19:50 +00:00
itojun d0f8b66023 strncpy -> strlcpy 2003-05-17 19:18:59 +00:00
itojun 84e2880efb KNF 2003-05-17 19:14:25 +00:00
itojun d0512514bd use strlcpy. don't hardcode sizes, use sizeof. 2003-05-17 19:09:08 +00:00
itojun 4a1c105c26 ensure string termination 2003-05-17 19:00:22 +00:00
itojun f35cce81c8 strncpy -> strlcpy 2003-05-17 18:51:13 +00:00
itojun 3d2b0dbc0e strncpy -> strlcpy 2003-05-17 18:13:55 +00:00
itojun 658519705e sscanf possible overrun 2003-05-17 14:56:40 +00:00
itojun 682aab7791 sscanf overrun 2003-05-17 14:54:53 +00:00
itojun 405a7327c7 fix strncat too. from wiz 2003-05-17 13:56:41 +00:00
dsl 35605a88c0 A slightly better inet_parse(), tested in isolation. 2003-05-17 09:39:04 +00:00
itojun aa5672d8c5 sscanf overrun 2003-05-17 01:02:01 +00:00
itojun 5be6cd5c8d prevent sscanf overrun 2003-05-17 00:50:36 +00:00
itojun 4fb82a79ed strlcpy 2003-05-17 00:46:04 +00:00
itojun 7bd6640a6d strlcat 2003-05-17 00:44:49 +00:00
dsl da0369cc40 Match latest mrouted source. 2003-05-16 23:24:38 +00:00
dsl 1f67e2a5fa Match latest mouted code 2003-05-16 23:10:15 +00:00
dsl d26eb4f4c2 Make this comple with modified mrouted sources. 2003-05-16 23:00:29 +00:00
dsl ee70b5d6af Revert previous change. Remove s parameter from teh function and rotate
the result through a fixed set of strings instead.
There never was a possibility of a buffer overrun in inet_fmt{s}().
Fix an actual buffer overrun in a scanf() call.
2003-05-16 22:59:50 +00:00
itojun bd26fba38c avoid possible buffer overrun 2003-05-16 18:28:18 +00:00
itojun 272c80e349 avoid possible buffer overrun 2003-05-16 18:15:34 +00:00
itojun 761f7bebc3 avoid possible buffer overruns - strlcpy, snprintf 2003-05-16 18:10:37 +00:00
itojun 646e6960b2 blank line 2003-05-16 14:53:55 +00:00
christos 03db714fce - zero out the sockaddr before passing it to the kernel.
- print the reason of the export failure.
2003-05-16 14:03:31 +00:00
abs 81ab107137 maybe -> may be 2003-05-16 08:37:09 +00:00
itojun d25769c013 assume presense of getifaddrs(3). 2003-05-15 14:50:02 +00:00
itojun 5818b97495 assume getifaddrs(3) 2003-05-15 14:47:49 +00:00
itojun 68452c0c92 assume presense of getifaddrs(3). 2003-05-15 14:44:57 +00:00
itojun e24f1908e1 byebye savestr. with savestr() we can't free(). 2003-05-15 14:34:39 +00:00
itojun 0f0398257d simplify by strdup. expilcitly specify IPPROTO_TCP (to cope with sctp-ready
getaddrinfo).
2003-05-15 00:23:54 +00:00
itojun 6cad7b99db simplify by using strdup. from kame 2003-05-15 00:19:30 +00:00
itojun 723a0d30ad just for safety 2003-05-15 00:08:10 +00:00
itojun f2bfdc2f65 traceroute.c doesn't use savestr() 2003-05-15 00:04:16 +00:00
itojun a37f9a315d strcpy audit (command line argument was used as src, subject to overrun) 2003-05-15 00:02:25 +00:00
itojun b2189acdb8 whitespace fix 2003-05-14 23:58:23 +00:00
itojun 4b641df88a strlcpy audit 2003-05-14 23:53:09 +00:00
wiz d75f1336b3 Uppercase URL. 2003-05-14 14:30:59 +00:00
wiz d43e332f1e setup -> set up. 2003-05-14 12:11:03 +00:00
dbj f1e0ecadf7 remove dependencies on ${LIBC} ${LIBM} and ${LIBTERMCAP} static libraries
from host tool targets.  Commits fix from PR toolchain/21495
2003-05-14 00:24:06 +00:00
martin 6d77f1d081 Add some error handling for an ioctl - the old code could loop tightly if
the peer closed a socket unexpectedly.
This addresses one of the issues Frank Kardel patched (differently) in
PR kern/21448, after clarification from Frank via private mail.
2003-05-13 07:07:37 +00:00
ragge 855df1740e Don't build kvm_mkdb anymore. 2003-05-11 18:19:09 +00:00
itojun 2ab2b66ee8 just for safety - use sizeof 2003-05-09 00:48:59 +00:00
itojun 5397d22f9f KNF 2003-05-09 00:47:46 +00:00
itojun 830e70f6d0 readlink(3) does not terminate string by \0. 2003-05-09 00:43:46 +00:00
petrov 674b7e97b8 Format fixes. 2003-05-08 20:33:44 +00:00
petrov 209bf42bf9 Add CPPFLAGS. 2003-05-08 20:24:10 +00:00
yamt c18e1d32a6 make amd compile again.
pointed by Geoff Wing.
2003-05-08 13:34:04 +00:00