Commit Graph

7327 Commits

Author SHA1 Message Date
christos
1d5c23627f change warnx to warn. 2005-11-10 18:04:03 +00:00
christos
2ac1e392b6 Use unvis(3) to parse the string. thanks to groo, soda, and numerous others
for the hand-holding.
2005-11-10 18:03:05 +00:00
christos
258783da29 Add new sti command. 2005-11-10 16:54:05 +00:00
wiz
c6257ebac1 Mark up EXTENSIONS. 2005-11-09 23:50:16 +00:00
wiz
36470a753d Drop trailing whitespace. 2005-11-09 23:48:51 +00:00
wiz
227106a6a2 No leading zero in date strings.
XXX: this page needs conversion to mdoc.
2005-11-09 23:43:59 +00:00
wiz
7ef0b27ab9 Remove some unnecessary header includes. 2005-11-08 20:16:53 +00:00
dillo
e68029a308 Bump version for pkg_info -B fix. 2005-11-07 23:20:49 +00:00
dillo
831ae4eb35 Don't add INSTALLED_INFO to the list of files to extract from binary
packages, it will never be there.

Fixes pkg_info -B against binary packages broken when INSTALLED_INFO
support was added.
2005-11-07 23:19:55 +00:00
christos
df29ab0769 Mention which options are only available with EXTENSIONS. From Liam Foy. 2005-11-07 23:07:45 +00:00
wiz
752535d165 Replace wait(2) with equivalent waitpid(2); for Linux, reported by wulf@
on tech-pkg.
2005-11-07 22:57:07 +00:00
wiz
2fa51c716a Sync with pkgsrc: wrap some headers in #ifs. 2005-11-07 22:53:41 +00:00
christos
6b3d6b9d93 remove asprintf and strlcpy. We don't support NetBSD1.3 and NetBSD1.4.
GC Todd's copyright, since it is not needed anymore.
2005-11-07 21:58:12 +00:00
christos
9b674959c3 More cleanups from Liam Foy:
- Fix error messages, some are completely incorrect
    - Asystem prints the error message so don't bother saving errno
    - Don't continue if a lock can't be obtained on /etc/group
    - Just pass struct passwd * to removehomedir, not its members
Some copyright maintenance:
    - Add Liam Foy.
    - Move Todd's copyright higher up.
    XXX: We should remove clause 3 and merge the two copyright groups.
2005-11-07 21:46:50 +00:00
uwe
7541580e69 \(<= is the proper roff for <=. Fix another \*[Le] missed in the
previous commit.  While here, properly mark up minus in -p description.
2005-11-06 17:39:45 +00:00
rpaulo
033766f3a8 It's lilac-dmc.Berkeley.EDU, not lbl-csam.arpa. A 12 years old typo!
Also, \*[Le] doesn't seem to work well here, so replace it with '<='
as FreeBSD did. This problem was spotted by joerg@.
2005-11-06 16:40:55 +00:00
wiz
a1e41eed09 Use config.h and add appropriate #if HAVE_FOO_H. 2005-11-06 12:40:02 +00:00
wiz
f0f9d6a437 Add compat #ifdefs from pkgsrc, to make syncing easier between the
two versions.
2005-11-05 13:11:02 +00:00
hannken
ba2ee12485 Make it compile on sparc/sparc64. Cast size_t to int for field precision. 2005-11-04 09:26:05 +00:00
dillo
8af62fd627 Split dewey compare functions into their own file dewey.c so they
can be used in a forthcoming Perl module.

Joint work with Thomas Klausner.
2005-11-03 21:59:55 +00:00
dillo
75b9797969 Implement framework to store variable=value pairs about an installed package.
Use this in pkg_add to mark installed dependencies as automatically installed.

pkg_add: new flag -A: marks package as automatically installed.
pkg_admin: new commands set and unset to modify variable pairs for
	   installed packages.
pkg_info: report these variable pairs with -Q/-B.
	  new flag -u: report only manually installed packages (not
	  installed with pkg_add -A).
	  Error out if -a/-u and a package name is specified.

Joint work with Thomas Klausner.

As discussed on tech-pkg.
2005-11-03 21:16:41 +00:00
bouyer
58ce78eeda When forking, we keep a reference to the status db file, and if the
memory copy of the file is dirty, is will be synced when the child exists.
But the parent may have done changes to the database in the meantime, resulting
in a db corruption.
Fix this by calling sync_file() just before the fork. The child will still have
a reference to the db, but won't try to write it on exit.
2005-11-03 19:36:42 +00:00
chs
04084538be use correct types, allow size to be larger than 1 TB. 2005-11-01 01:42:29 +00:00
dyoung
fec0b664fc Oops, condition another printf on verbose_level > 0. 2005-10-31 23:21:25 +00:00
dyoung
96801f79bb Condition several cd9660 printfs on verbose_level > 0. Silences
makefs -t cd9660.
2005-10-31 23:19:54 +00:00
dyoung
933a7c2901 Change cd9660's default verbosity level to 0, quieting it down
considerably.
2005-10-31 23:19:06 +00:00
wiz
a74bb8d083 Begin sentence with upper case letter, and uppercase an acronym. 2005-10-31 15:30:44 +00:00
wiz
8ab58d4943 Sync usage with man page. 2005-10-31 15:29:23 +00:00
wiz
14a2986cc2 Small improvements. Sort options. From jmc@openbsd. 2005-10-31 15:28:53 +00:00
wiz
25988cacf4 Sync usage with man page. From jmc@openbsd. 2005-10-31 15:22:10 +00:00
wiz
432e7125bf Use .Pp instead of less usual .Lp. From jmc@openbsd. 2005-10-31 15:21:02 +00:00
wiz
129d953b7a Improve description for /var/run/rtsold.dump. From jmc@openbsd. 2005-10-31 15:19:45 +00:00
wiz
710dff7215 Small cleanup. From jmc@openbsd. 2005-10-31 15:17:22 +00:00
wiz
e7e684f30a Sort options. From jmc@openbsd. 2005-10-31 15:14:54 +00:00
wiz
3a6af42b59 Bump date for previous. 2005-10-31 11:34:55 +00:00
dyoung
2fa0e02b0b Remove the cd9660_inode hashtable for hard-links support, and re-use
the fsinode for the same purpose, per Luke Mewburn's suggestion on
source-changes@.
2005-10-31 08:29:19 +00:00
joerg
82543d8598 Treat FTP error 450 like 550, otherwise pkg_add from a proftpd server
can hang.

Submitted-by: Eirik Nygaard
2005-10-30 21:52:02 +00:00
dyoung
1da546647c Add hard-link support: keep a hashtable that maps inodes for
regular files on the source filesystem to the offset of the first
data block on the target filesystem.  Don't allocate blocks for a
file a second time (i.e., if it is already present in the hashtable).
Avoid writing the blocks of a file twice (use the FS_WRITTEN flag
in fsinode->flags for this purpose).
2005-10-30 09:27:49 +00:00
dyoung
f334b70aa1 Normalize {err,warn}{,x} uses. 2005-10-30 07:40:45 +00:00
dyoung
4a3fce43c0 Now that I understand what order boot-images and boot-entries are
intended to be kept on the boot-images and -entries lists, keep
them in that order: images grouped and entries grouped by system,
with later images nearer the front of the list.

*Really* apply boot options to the last boot-image specified.
2005-10-30 07:33:57 +00:00
dyoung
3c2cee9d4a Bug fix: record the actual number number of 512-byte "virtual"
sectors in the Sector Count field of the Initial/Default Entry in
the "El Torito" Boot Catalog, instead of blithely writing 1 (!!)
into the Sector Count field.  Ditto the Section Entries.

Remove last remnants of cd9660's unsupported boot-load-size option.

Really use cd9660's boot-load-segment argument.

Change the boot images list from a LIST to a TAILQ.

Re-implement CD9660_BLOCKS() with howmany().

Introduce ELTORITO_DPRINTF and some debug messages.

Zero memory malloc'd in the El Torito code.

Revise some debugging outputs.

Insert a new boot-image on the boot-images list after the last
boot-image for the same architecture.  It makes a (trivial) functional
difference.

Miscellaneous cosmetic changes.  Remove useless variable-assignment.
2005-10-30 06:45:46 +00:00
dyoung
b894baa422 boot-load-size, the number of load sectors for the boot image, is
not yet, and will not be, supported.
2005-10-30 03:52:03 +00:00
dyoung
397d1928f2 Cosmetic: add temporary variables for lengthy, repeated clauses
like 'default_entry->entry_data.IE'.  KNF.
2005-10-30 03:50:54 +00:00
dyoung
f112f0b6d9 Remove invisible whitespace at ends of lines that disrupted my
speedy cursor-movement habits in vi.
2005-10-30 03:10:28 +00:00
scw
1c2b41ea59 iwi(4) and iwictl(8) are no-longer restricted to the i386 platform. 2005-10-29 08:15:46 +00:00
scw
04ec36f7d6 Fix compilation for non-x86 platforms: s/int/size_t/ in struct firmware. 2005-10-29 08:14:27 +00:00
dyoung
d4d99b79c1 The system type mac68k is also allowed.
XXX Is that correct?
2005-10-28 21:55:18 +00:00
dyoung
c286f15e25 Correct strcmp(3) usage (expect equal -> 0). 2005-10-28 21:54:21 +00:00
dyoung
21326b0d23 Synchronize documentation with utility. 2005-10-28 21:52:36 +00:00
dyoung
33c7871577 Use LIST_ macros instead of accessing list structure members lh_first
and le_next directly.
2005-10-28 21:51:35 +00:00
jmc
cc925ba123 Create version.texi using the same scheme am-utils natively does. i.e. from
the date/timestamp of the am-utils file and using mdate-sh
2005-10-27 19:03:58 +00:00
dyoung
689c61f61d Overhaul makefs -t cd9660.
Functional: Do not add a missing period or a version number to
            directories, since that doesn't fit the standard (thanks
            Daniel Watt).

            Add RRIP PX records (POSIX meta-information) to '.'
            and '..' entries.  Quiets kernel complaint, when we
            mount a cd9660 filesystem, that there is a missing PX
            entry.

Cosmetic: Reduce height of staircases.  Remove an unused member
          from struct _cd9660node.  Extract a subroutine.  KNF.

          Use a TAILQ macros for lists of both SUSP/RRIP attributes
          and directory entries.

XXX
XXX The new RRIP PX entries are not quite right.
XXX
2005-10-25 02:22:04 +00:00
christos
f3c42fa4d4 Don't assume that fts(3) will add a slash to the name. From Steve Woodford.
KNF.
2005-10-24 13:17:22 +00:00
thorpej
327a57156c Use the real field name (d_fileno instead of d_ino). 2005-10-23 16:12:02 +00:00
christos
9f17a05ff3 PR/31502: John: rpc.statd doesn't save failed notifies in the database.
Tested by Martti Kuparinen.
2005-10-20 12:53:42 +00:00
wiz
445258bca4 New sentence, new line. Use more, and more appropriate, mdoc macros. 2005-10-18 11:01:39 +00:00
hubertf
457a6a5c65 mountd's -r option always was a dummy, don't advertize using it.
OK'd by fvdl.
2005-10-18 06:02:59 +00:00
wiz
6e001439cc Remove superfluous quotes. Sort option descriptions.
Add word for easier readability.
2005-10-12 09:19:34 +00:00
wiz
8535679520 Fix typos. Comment out Xr to non-existing make.conf(5). 2005-10-12 09:19:02 +00:00
wiz
c5f11b986b > -> \*[Gt]. Make text more readable. Remove superfluous quotes. 2005-10-12 09:07:34 +00:00
rpaulo
79cf1201a9 Install HTML BIND 9 Documentation 2005-10-10 13:21:43 +00:00
dyoung
d51694ecef Add single quotes to escape a semicolon in the makefs(8) argument
list.  Pointed out by Hubert Feyrer.
2005-10-10 05:41:28 +00:00
chs
6c50e54c82 avoid the need for a bogus initializer. 2005-10-08 03:21:17 +00:00
wiz
42a77e996d Punctuation nits; bump date for previous. 2005-10-06 10:43:45 +00:00
dyoung
92b3793d65 Add an example of using installboot(8) and makefs(8) with bootxx_cd9660
to create a bootable CD-ROM for an i386 host with a serial console.
2005-10-06 08:42:12 +00:00
christos
c81227bb08 call pw_abort() on failure (from Liam Foy) 2005-10-05 21:17:53 +00:00
lukem
2484bb2972 Fix do_defaults() so that it errors when there's a mismatch.
Noted by Matthias Scheler.
2005-10-02 23:46:48 +00:00
christos
18b5fc9e5c Off by one in copying stuff to struct whoent. Found by Liam Foy. 2005-10-02 16:49:46 +00:00
christos
4ee0069616 wpa_supplicant is dual-licensed, so it can stay in /usr/src/dist. 2005-10-01 21:34:01 +00:00
christos
ae7cb086a0 make this build again after the source move to gnu/dist. 2005-10-01 20:46:43 +00:00
christos
c05266af8a fix setmode error handling. 2005-10-01 20:23:54 +00:00
scw
c3f88c70e7 Descend into wpa. 2005-10-01 18:50:42 +00:00
scw
d39dbceb8d Add wpa_cli and wpa_supplicant, based on Sam Leffler's work for FreeBSD.
NetBSD can now access a WPA-encrypted wireless LAN.
2005-10-01 18:50:12 +00:00
tron
fe7c56c577 The list of keywords must be sorted because it is search with bsearch(3).
Correcting this makes mtree(8) work again under Solaris.
2005-09-29 14:29:03 +00:00
rpaulo
81e95d22ed Oops, typo. 2005-09-28 12:41:49 +00:00
rpaulo
700318b43a Disable TMPFS. It is about Solaris TMPFS, not ours and is not yet
implemented.
2005-09-28 11:15:06 +00:00
wiz
3224a4d9fd Remove default argument from .Nm. Add a missing article. Mention NetBSD import. 2005-09-27 09:16:20 +00:00
jmcneill
825ff1848a Import userland utility for playing with gpio devices. From OpenBSD. 2005-09-27 02:54:27 +00:00
elad
a375b7cdb7 Use crypto/rmd160.h. 2005-09-24 22:40:32 +00:00
wiz
971a82acbe Use more, and more correct macros. Fix Xr section. 2005-09-23 20:58:50 +00:00
jmmv
2a3e5eeb7c Apply the NFS exports list rototill patch:
- Remove all NFS related stuff from file system specific code.
- Drop the vfs_checkexp hook and generalize it in the new nfs_check_export
  function, thus removing redundancy from all file systems.
- Move all NFS export-related stuff from kern/vfs_subr.c to the new
  file sys/nfs/nfs_export.c.  The former was becoming large and its code
  is always compiled, regardless of the build options.  Using the latter,
  the code is only compiled in when NFSSERVER is enabled.  While doing this,
  also make some functions in nfs_subs.c conditional to NFSSERVER.
- Add a new command in nfssvc(2), called NFSSVC_SETEXPORTSLIST, that takes a
  path and a set of export entries.  At the moment it can only clear the
  exports list or append entries, one by one, but it is done in a way that
  allows setting the whole set of entries atomically in the future (see the
  comment in mountd_set_exports_list or in doc/TODO).
- Change mountd(8) to use the nfssvc(2) system call instead of mount(2) so
  that it becomes file system agnostic.  In fact, all this whole thing was
  done to remove a 'XXX' block from this utility!
- Change the mount*, newfs and fsck* userland utilities to not deal with NFS
  exports initialization; done internally by the kernel when initializing
  the NFS support for each file system.
- Implement an interface for VFS (called VFS hooks) so that several kernel
  subsystems can run arbitrary code upon receipt of specific VFS events.
  At the moment, this only provides support for unmount and is used to
  destroy NFS exports lists from the file systems being unmounted, though it
  has room for extension.

Thanks go to yamt@, chs@, thorpej@, wrstuden@ and others for their comments
and advice in the development of this patch.
2005-09-23 12:10:31 +00:00
rpaulo
87dab801e3 Updated autoconf generated files for am-utils 6.1.2.1. 2005-09-20 18:00:15 +00:00
wiz
f38e8b27b1 Sync usage with man page. 2005-09-19 22:43:21 +00:00
wiz
ff2f5aac09 Sort options. 2005-09-19 22:43:13 +00:00
explorer
ece068eb66 It's been quite some time since tcpdump compile-time flags were
changed.  For one, "tcpdump -D" works with this set, as well as
"tcpdump -U" and at least one undocumented flag for pcap debugging.
2005-09-19 21:18:30 +00:00
christos
089e80014b Allow setting the reserved port we bind, witb -p. I've had this patch for
3 months stashed...
2005-09-19 00:59:56 +00:00
rpaulo
ece51eabd5 PR 22469: user.c should use "pwd.h" include file for
_PATH_USERMGMT_CONF. By rpixley@vm-netbsd-161.nominum.com.
2005-09-19 00:43:17 +00:00
christos
aa460c4e78 Allow amd to turn off the attribute cache. 2005-09-18 23:45:46 +00:00
agc
c73a10fe94 Ensure that a consistent coding style is used.
s/1/EXIT_FAILURE/
2005-09-18 21:41:26 +00:00
christos
4471e7c6f5 From Liam Foy:
- Correct lenght for the username
- First character in the login name cannot be '-' (OpenBSD)
- Remove some #ifdef EXTENSIONS. find_group_info is always needed
- When printing change, if it's -1, place a correct string.
2005-09-18 14:15:53 +00:00
ginsbach
85dd62aa2a Add description for -r option. Description taken from traceroute man page. 2005-09-17 15:16:11 +00:00
wiz
de0d2ef49e Fix -j description and "interface" case problem. From YOMURA Masanori in private mail.
While here, sort options.
2005-09-15 01:49:07 +00:00
drochner
fb8d4ae653 cosmetics: strip trailing blanks when the ISO volume label is printed 2005-09-14 09:41:24 +00:00
lukem
922ca28a60 Add "named" item to move /etc/namedb/named.conf to /etc/named.conf.
Per discussion with Matthias Scheler.
2005-09-12 23:16:15 +00:00
wiz
6438e0bfa7 Sync usage with man page. 2005-09-12 18:34:37 +00:00
wiz
4b44cc9527 New sentence, new line.
Add -u to SYNOPSIS. Fix some typos.
Use more markup. Bump date for -u.
2005-09-12 18:33:56 +00:00
tsarna
04414a373b Add -u option: rwhod will drop privledges and become the given user.
reviewed by jwise
2005-09-12 16:13:13 +00:00
lukem
d50a2d0385 Reorganize items so that they're in alphabetical order except that
"obsolete" is moved to the end.
Clean up some comments.
2005-09-12 15:48:29 +00:00
christos
c9d876ed6c Warn if the group being removed is still the primary group of an existing
user. From Liam Foy.
2005-09-12 15:45:03 +00:00
lukem
d4b0741135 not all items can be fixed automatically 2005-09-12 15:42:12 +00:00