Commit Graph

138801 Commits

Author SHA1 Message Date
rpaulo
1c06ff56a9 Added a new AMASK bit (ALPHA_AMASK_PMI) and a new IMPLVER family ID:
ALPHA_IMPLVER_EV7.

ok christos@
2005-07-28 00:24:34 +00:00
peter
cea4f4ef79 Minor tweaks to the usage message:
- better layout for useradd.
- fix a small mistake in -u and wrap long line.
2005-07-27 23:32:02 +00:00
dyoung
1b19913947 A few fixes affecting user control of the transmit/receive antenna,
and antenna diversity:

Check the hardware capabilities---transmit power control (TPC),
antenna diversity---before setting up the sysctls that control
those capabilities.  Previously, the TPC and ant. diversity sysctls
were not setup because ath_sysctlattach was called before sc_hastpc
and sc_hasdiversity were initialized, so users could not view/control
antenna diversity or TPC settings, even on hardware with those
capabilities.

Obey the user's transmit-antenna selection even when sending IBSS
beacons on hardware with VEOL capability; for all other hardware/modes,
only switch transmit antennas after every four beacons if the user
has not selected a transmit antenna---i.e., they chose antenna 1
or 2 instead of 0 ("auto").
2005-07-27 21:22:57 +00:00
dyoung
b496bd99a0 Cosmetic: remove an out-dated "note to self." 2005-07-27 21:13:32 +00:00
dyoung
214312dad2 We don't really have FreeBSD 802.11 compatibility, and it will take
more work to get it right, so change the misleading COMPAT_FREEBSD
#ifdefs to #ifdef __FreeBSD__.
2005-07-27 20:31:24 +00:00
dyoung
9cb2b69eeb IEEE80211_IOC_BEACON_INTERVAL is not duplicated by SIOC[SG]80211POWER,
as I thought.  The latter actually sets the station listen interval.

We cannot get/set "drop-unencrypted" and "privacy" properties
independently with SIOCS80211NWKEY, so put back IEEE80211_IOC_PRIVACY
and IEEE80211_IOC_DROPUNENCRYPTED.

Thanks Sam Leffler for pointing out my mistakes.
2005-07-27 20:18:59 +00:00
jdc
af1900d4d8 Make sure that werase() always marks the window as dirty. This fixes a
problem (reported by David Bariod on netbsd-help), where erasing an already
blank window would not clear the screen contents of overlapping windows.
2005-07-27 20:17:42 +00:00
christos
9f01a2d031 Patches from Liam Foy:
- Add new -C option to 'usermod'. This allows a quick way to temporary
  lock a users account. This is similar to how FreeBSD do it using
  'adduser'. This function can be very handy to administrators!
- Import a function to check if the inputted class actually exists. It
  contains my modifications to test whether /etc/login.conf exists
  in the first place. -OpenBSD
2005-07-27 19:09:21 +00:00
christos
24e9d708ff Patches from Liam Foy:
- Add new -C option to 'usermod'. This allows a quick way to temporary
  lock a users account. This is similar to how FreeBSD do it using
  'adduser'. This function can be very handy to administrators!
- Import a function to check if the inputted class actually exists. It
  contains my modifications to test whether /etc/login.conf exists
  in the first place. -OpenBSD

While I am there:

- KNF (long wrapped lines, and spaces after void casts).
- Factor out some common code.
- Fix error messages.
	1. Consistently capitalize them.
	2. Fix err->errx and warn->warnx inappropriate uses.
	3. Use regerror where appropriate.
	4. Don't call warn()/err() to report errors after you trashed errno
	   by calling other syscalls. Save and restore the errno instead,
	   or in the warn() case, call warn() first.
- Fix size_t - int, uid_t - int confusion.
- Pass lint
2005-07-27 19:08:42 +00:00
drochner
06666adadb get the trailing-slash logics right 2005-07-27 13:23:07 +00:00
simonb
bdc552eaee KNF nit. 2005-07-27 12:41:09 +00:00
he
759fbc6504 The return type from getopt(3) is int, not char. Besides, char is
not guaranteed to be signed, so comparison with -1 will cause a
warning (turned error) for some of our ports (e.g. our arm ports).
Fix this by making the 'ch' variable an int instead of a char.
2005-07-27 09:29:02 +00:00
dyoung
9ec95e5520 NetBSD already has ioctls that get/set these parameters. Only
compile support for the duplicate ioctls from FreeBSD if it is a
COMPAT_FREEBSD kernel:

        IEEE80211_IOC_SSID
        IEEE80211_IOC_WEPTXKEY
        IEEE80211_IOC_CHANNEL
        IEEE80211_IOC_PRIVACY
        IEEE80211_IOC_DROPUNENCRYPTED
        IEEE80211_IOC_BSSID
        IEEE80211_IOC_BEACON_INTERVAL
        IEEE80211_IOC_WEPKEY
2005-07-27 07:01:25 +00:00
dyoung
d6d1366732 Restore ABI compatibility with SIOCG80211STATS, SIOCG80211ZSTATS
in NetBSD 2.0:

        * If 2.x compatibility is enabled (#ifdef COMPAT_20),
          compile support for OSIOCG80211STATS and OSIOCG80211ZSTATS,
          with the same ioctl numbers as SIOCG80211STATS and
          SIOCG80211ZSTATS in 2.x.  OSIOCG80211STATS and
          OSIOCG80211ZSTATS return an ieee80211_ostats struct,
          which has the same layout as ieee80211_stats in 2.x.

        * Add new ioctl numbers for SIOCG80211STATS and SIOCG80211ZSTATS.
          Both these ioctls will copy at most ifr_buflen bytes of
          the new ieee80211_stats to ifr_buf.
2005-07-27 06:52:27 +00:00
dyoung
1d1035405a Add members ifr_buf, ifr_buflen to ifreq for specifying the location
and size of a userland buffer.  The kernel shall not copyout more
than ifr_buflen bytes to ifr_buf.  For future ioctls that use
ifr_buf and ifr_buflen instead of ifr_data, the kernel can return
a larger struct in the future than when the ioctl is introduced,
without breaking ABI compatibility, provided that the size, order,
and semantics of the fields at the front of the struct does not
change.
2005-07-27 06:36:15 +00:00
christos
4811c2fc79 10 seconds is more than enough time to wait. 2005-07-27 00:02:14 +00:00
dyoung
930c942c22 In ieee80211_refine_node_for_beacon, deal gracefully with a node
that belongs to no table: don't dereference the null ni_table
pointer and panic.
2005-07-26 23:07:53 +00:00
dyoung
9bfd14b600 Remove duplicate FreeBSD RCS ID. 2005-07-26 22:57:26 +00:00
dyoung
61fb42b78a Resolve conflicts. 2005-07-26 22:52:48 +00:00
dyoung
80b91eea2d Import changes in FreeBSD's net80211 between 2005-05-18 and 2005-07-11.
A summary of changes is forthcoming.
2005-07-26 22:52:47 +00:00
dyoung
d2ba878019 Resolve conflicts. 2005-07-26 22:52:47 +00:00
christos
afe9d603ec PR/30844: Gert Doering: Non-inet traffic is passed to bpf incorrectly (as inet) 2005-07-26 21:26:48 +00:00
christos
e3c185442d Add another regression test. 2005-07-26 20:44:47 +00:00
christos
0393abcb27 Revert part of previous; we need to merge acts.sa_mask into our pthread mask.
Thanks martin...
2005-07-26 20:16:07 +00:00
christos
9d60b1fc89 - removed bogus acts.sa_mask setting.
- unblock the signal we are currently delivering, because it might have
  been blocked if we are woken up by another thread.
2005-07-26 20:11:02 +00:00
christos
f44796a7b7 PR/30839: Tomas Skäre: Buffer underflow in lib/libc/stdio/tempnam.c
when *dir == "".
2005-07-26 16:12:49 +00:00
skrll
56d4febf60 Support immediate PLT binding on m68k. Tested on NetBSD/sun3 using the new
version of tme.

Not far now...
2005-07-26 15:43:34 +00:00
peter
84fa01a154 pf_test() can set *mp to NULL, check for this before de-referencing it.
From Akihiro Sagawa in PR/30835.
2005-07-26 13:09:23 +00:00
yamt
946832fd33 revert VCHR part of ffs_vnops.c 1.71.
as VCHR uses the device pager, no point to call VOP_PUTPAGES here.
pointed by Chuck Silvers.
2005-07-26 12:14:46 +00:00
yamt
79ff185ac4 don't write-protect wired pages. pointed by Chuck Silvers.
for now, leave a vnode on the syncer's queue, as suggested by him.
2005-07-26 08:06:29 +00:00
lukem
81d2b1e480 Crank version for Christos' utmpx/wtmpx changes on 20050623 2005-07-26 05:43:07 +00:00
thorpej
bdfafa03cd 1. Disable the lazy allocation of lev1map in pmap_enter(), instead doing
it in pmap_create(), and freeing the lev1map in pmap_destroy().  This
   means that pm_lev1map is consistent for the life of the pmap.
2. pmap_extract() now uses vtophys() for the kernel pmap.  This avoids
   having to lock the kernel pmap, since kernel PT pages are never freed.
3. Because of (1), pmap_asn_alloc() no longer needs to operate on a locked
   pmap; pm_lev1map will never change over the life of the pmap, and all
   other access to the pmap is done in per-CPU fields or with atomic
   operations.
4. Because of (3), pmap_activate() no longer needs to lock the pmap
   to do its work, thus eliminating the deadlock with sched_lock described
   in PR port-alpha/25599.  This is safe because we are guaranteed that
   the pmap is still alive, since by definition an LWP that uses that it
   is about to run.

Thanks to Michael Hitch for the analysis, and Michael and Ragge for testing.
2005-07-26 04:11:53 +00:00
christos
3692d77541 Whitespace KNF cleanup from Max Okumoto 2005-07-25 22:55:58 +00:00
cube
c3414672de The devi lists in struct devbase and struct deva really should use the
TAILQ set of macros from queue.h...  It's way too easy to make mistakes...

config(1) was segfaulting in deldev() in some situations...  Reported by
Brend Ernesti.
2005-07-25 22:31:07 +00:00
rpaulo
b539de839b Added /usr/share/wscons/keymaps/mkbd.pt.iso8859-2. 2005-07-25 19:58:32 +00:00
rpaulo
f74909745b Added Portuguese keymap for MAPLE keyboards, found on SEGA Dreamcast.
ok hubertf@
2005-07-25 19:57:30 +00:00
is
1906767db5 normalize capitalization. No functional change. 2005-07-25 19:27:42 +00:00
hubertf
65cee02da7 Fix paths of vndcompress (binary and manpages+category) 2005-07-25 18:34:38 +00:00
ross
d4a5f77997 Fix compilation nits with WM_DEBUG. 2005-07-25 18:26:24 +00:00
hubertf
f81ddc5831 Add vndcompress 2005-07-25 18:10:09 +00:00
christos
5d719b264e In the SIGIO case, only check that we are the controlling tty if we are a
session leader.
2005-07-25 17:32:03 +00:00
christos
e7adb37afc PR/30832: Tomas Skäre: Freed memory used in lib/libc/getnetgrent.c
While there, KNF and ansify.
2005-07-25 14:38:48 +00:00
drochner
d6736d7a2e minor usability improvements:
-fabricate a trivial geometry also in the case of images <=1M
 (XXX I didn't add a check for >0 size -- this is generally harmless
  because there are enough boundary checks present, and it allows
  to test some corner cases in the disklabel handling code)
-ignore the VNF_KLABEL flag -- the vnd device is if limited (and
 well-defined!) lifetime anyway, and the implications of "keeplabel"
 are confusing at best
2005-07-25 13:25:08 +00:00
drochner
2d0de57f09 remove unused (hopefully:-) softc fields for disk geometry 2005-07-25 12:52:44 +00:00
wiz
a654b897c8 Sync usage with man page. 2005-07-25 12:25:54 +00:00
wiz
8107329829 Various improvements. 2005-07-25 12:24:40 +00:00
hubertf
2b72198a99 Add vndcompress(1) and vnduncompress(1) to transform filesystem/disk
images from "normal" into cloop2-format compressed images and back.
Written by Florian Stoehr (netbsd@wolfnode.de) with some polishing
by me.

Compressed disk images can be used with the vnd(4) driver when compiled with
VND_COMPRESSION and "vnconfig -z".  Useful for creation of Live CDs/DVDs.
2005-07-25 12:19:36 +00:00
hubertf
e98029593c Add vndcompress(1) and vnduncompress(1) to transform filesystem/disk
images from "normal" into cloop2-format compressed images and back.
Written by Florian Stoehr (netbsd@wolfnode.de) with some polishing
by me.

Compressed disk images can be used with the vnd(4) driver when compiled with
VND_COMPRESSION and "vnconfig -z".  Useful for creation of Live CDs/DVDs.
2005-07-25 12:17:59 +00:00
drochner
e32ba1775e fix crash in mount error handling: don't free storage which was not
malloc'd
2005-07-25 11:42:38 +00:00
drochner
b974cae7e2 Allow the test for ISO9660 filesystems to be applied to non-CD devices
and plain file images too. If no TOC can be read, a single track is
assumed which spans the whole thing.
The disklabel will be updated if supported by the device. If not, just
the ISO volume label information will be printed.
2005-07-25 11:26:40 +00:00