122221 Commits

Author SHA1 Message Date
ru
e8138dad13 MFC: 1.32: If not compiled for debugging, redirect std{in,out,err}
to /dev/null before becoming a daemon.
2007-10-02 05:44:53 +00:00
mtm
aecc7cf1b9 Partial MFC: rev. 1.6
o Use the --detach option to kdc(8) instead of using the shell
	  background operator '&'.

	  PR: conf/102722
2007-10-01 23:37:39 +00:00
jhb
243f1a073b MFC: Allow the ia32 resource limits to be set via loader tunables. 2007-10-01 20:13:49 +00:00
marius
bfe21aa400 MFC: sys/conf/files.sparc64 1.83; sys/conf/options.sparc64 1.24;
sys/dev/uart/uart_kbd_sun.c 1.10, 1.11 (partial), 1.13;
     sys/dev/uart/uart_kbd_sun.h 1.3; sys/sparc64/conf/NOTES 1.30

- In sunkbd_probe_keyboard() don't bother to determine the keyboard layout
  as we have no use for that info. Instead let this function return the
  keyboard ID and verify at its invocation in sunkbd_configure() that we're
  talking to a Sun type 4/5/6 keyboard, i.e. a keyboard supported by this
  driver.
- Add an option SUNKBD_EMULATE_ATKBD whose code is based on the respective
  code in ukbd(4) and like UKBD_EMULATE_ATSCANCODE causes this driver to
  emit AT keyboard/KB_101 compatible scan codes in K_RAW mode as assumed by
  kbdmux(4). Unlike UKBD_EMULATE_ATSCANCODE, SUNKBD_EMULATE_ATKBD also
  triggers the use of AT keyboard maps and thus allows to use the map files
  in share/syscons/keymaps with this driver at the cost of an additional
  translation (in ukbd(4) this just is the way of operation).
- Implement an option SUNKBD_DFLT_KEYMAP, which like the equivalent options
  of the other keyboard drivers allows to specify the default in-kernel
  keyboard map. For obvious reasons this made to only work when also using
  SUNKBD_EMULATE_ATKBD.
- Implement sunkbd_check(), sunkbd_check_char() and sunkbd_clear_state(),
  which are also required for interoperability with kbdmux(4).
- Implement K_CODE mode and FreeBSD keypad compose.
- As a minor hack define KBD_DFLT_KEYMAP also in the !SUNKBD_EMULATE_ATKBD
  case so we can obtain fkey_tab from <dev/kbd/kbdtables.h> rather than
  having to duplicate it and #ifdef some more code.
- Don't use the TX-buffer for writing the two command bytes for setting the
  keyboard LEDs as this consequently requires a hardware FIFO that is at
  least two bytes in depth, which the NMOS-variant of the Zilog SCCs doesn't
  have. Thus use an inlined version of uart_putc() to consecutively write
  the command bytes (a cleaner approach would be to do this via the soft
  interrupt handler but that variant wouldn't work while in ddb(4)). [1]
- Fix some minor style(9) bugs.

PR:		90316 [1]
2007-09-30 19:33:19 +00:00
marcus
67c6f3c74a Fix a bug that will cause a process that calls the VT_WAITACTIVE ioctl
to become unkillable when that process is sent a termination signal.  The
process will sit in waitvt looping in the kernel, and chewing up all
available CPU until the system is rebooted.

Note: this is not an MFC as this code no longer exists in HEAD.  However,
this is based on the same syscons fix which was just MFC'd after one week
in HEAD.

Reviewed by:	bde
2007-09-30 06:22:13 +00:00
marcus
916a3cb56f MFC: rev 1.452
Fix a bug that will cause a process that calls the VT_WAITACTIVE ioctl
to become unkillable when that process is sent a termination signal.  The
process will sit in waitvt looping in the kernel, and chewing up all
available CPU until the system is rebooted.

Submitted by:	Jilles Tjoelker <jilles@stack.nl>
Reviewed by:	bde
2007-09-30 06:16:20 +00:00
rpaulo
b7f21da0fd MFC r 1.67:
date: 2007/08/30 21:18:42;  author: njl;  state: Exp;  lines: +32 -7
  Evaluate _OSC on boot to indicate our OS capabilities to ACPI.  This is
  needed at least to convince the BIOS to give us access to CPU freq
  control on MacBooks.

Approved by:    njl (mentor)
2007-09-29 23:13:38 +00:00
maxim
65313cbfc7 MFC revs. 1.38, 1.39: need to reboot the system after tuning
softupdates on the root file system.
2007-09-29 16:31:44 +00:00
jhb
f92f6a31e3 Fix another nit in an earlier MFC so that we properly warn if we can't
read the multicast routing stats from a live kernel via sysctl(8).
2007-09-28 19:45:18 +00:00
jhb
f435e446f6 Correct a nit in earlier MFC: the carp stats routine does use sysctl. 2007-09-28 19:38:40 +00:00
maxim
c83514f128 o Update tcp sendcookie stats. HEAD has a different code and does
not have this bug.

Submitted by:	Igor Sysoev
Reviewed by:	silby
2007-09-28 17:39:45 +00:00
des
3beb7cb4f1 Add missing coretemp entry, unbreak LINT and tinderbox 2007-09-28 17:24:53 +00:00
gabor
b157d9f847 MFC rev1.5:
- Fix a declaration example
2007-09-28 11:10:37 +00:00
gabor
86db7f68ec MFC rev1.9:
- Remove references to unexisting man pages
2007-09-28 11:09:11 +00:00
des
6864233f0c MFC: coretemp(4) 2007-09-28 08:54:41 +00:00
des
f8fa33b281 MFC: ICH[678] support, resource allocation fixes 2007-09-28 08:46:10 +00:00
des
1784c5897c MFC: whitespace changes from HEAD 2007-09-28 08:43:54 +00:00
des
8581c17a99 MFC: synch with HEAD, minus whitespace changes. 2007-09-28 08:42:04 +00:00
des
58043bbfa7 MFC: remove confusing boot message, add feature bits 2007-09-28 08:26:16 +00:00
mav
24dfe5bdc7 MFC rev. 1.129,1.132
Fix misspellings in comments.
2007-09-28 07:33:01 +00:00
brueffer
6c3bb05a0f MFC: rev. 1.8
Fix typo.
2007-09-28 07:10:36 +00:00
des
677443f91f MFC: (1.6) childerr needs to be volatile.
PR:		bin/85830
2007-09-28 07:04:35 +00:00
des
e05a1478d5 MFC: Synch with HEAD. 2007-09-28 06:35:14 +00:00
des
8697e3fed7 MFC: (1.5) use sprintf() rather than (unportable) strlcpy().
Also bobbit some unused variables.
2007-09-28 06:34:22 +00:00
jinmei
a5dfa0a1a7 MFC:
ensure the head entry of addrinfo chain has non-NULL ai_canonname to be
compliant with RFC3493.

PR: standards/114910
Approved by:   ume (mentor)
lib/libc/net/getaddrinfo.c:	1.86
2007-09-28 06:23:03 +00:00
bmah
1d2954da88 MFC: camcontrol(8) readcap. 2007-09-28 05:08:34 +00:00
edwin
c4790b8a43 MFCs
Dutch calendar
    More dates: Sint Maarten, Dierendag, Trinitatis
    Fix spelling: Carnaval
    Add more of the Royal Family.

Croation calendars:
    Update to calendar/calendars/hr_HR.ISO_8859-2/calendar.praznici
    with fixes and new dates.

PR:             conf/26658
Submitted by:   Josip Rodin <joy@gkvk.hr>
2007-09-28 02:51:26 +00:00
edwin
aa461f0b09 MFC: Fix man(1) to allow .so to reference a compressed file
Original PR description:

        man(1) can't handle compressed included files.

        Some ports will install with compressed manpages. man handles
        this by looking for the .gz version of a man source file.
        It is also common to include other files with the .so
        directive where commands or functions share a man page.
        Traditionally ports have had to handle this by either not
        compressing the manpages, or using the _MLINKS macro in the
        port makefile to create symlinks to the actual source file,
        rather than using .so versions. Notably, the current version
        of Xorg port breaks. See ports/113096 and ports/115845.

PR:             bin/115850
Submitted by:   Callum Gibson <callumgibson@optusnet.com.au>
2007-09-28 02:31:57 +00:00
jhb
3c7672b104 Remove the *_queue() variants of various sleepq and turnstile functions
and always require the queue to be specified to reduce diffs with HEAD.
These APIs are internal APIs only used to implement higher level primitives
such as locks and condition variables.

Approved by:	alfred
2007-09-27 20:24:56 +00:00
jhb
1248dc42fa MFC some comment updates to account for multi-queue support missed earlier
as well as a few other changes (whitespace, style, etc.) to reduce diffs
with HEAD.
2007-09-27 18:44:16 +00:00
jhb
bf60b344e1 - Remove some debugging nits in the MFC of rwlocks that looked for cases
where a reader blocked on a lock with no owner and just assert that it
  never happens like HEAD.
- Actually set td->td_tsqueue to the sub-queue of a turnstile that a
  thread is actually enqueued to.  Otherwise, the kernel would always
  think that threads were on the queue for exclusive (write) waiters
  (queue 0).  Thus, if the priority of a thread waiting on a read lock
  was adjusted while it was waiting it could result in corrupting the
  queue of waiting threads.
2007-09-27 18:39:18 +00:00
jhb
f8d0499c66 MFC 1.167: Use a UMA zone to handle the turnstile objects rather than
malloc(9).
2007-09-27 18:23:44 +00:00
jhb
a4cadc0209 Make td_sqqueue a char and move it into a pre-existing "hole" from
alignment padding to restore the ABI of 'struct thread' in 6.x.
2007-09-27 18:12:25 +00:00
jhb
bcef6cfce9 - Restore the 'show sleepq' DDB command.
- Trim some extra includes.
2007-09-27 18:10:40 +00:00
jhb
5c87605e74 Use lock_init() and lock_destroy(). 2007-09-27 18:08:09 +00:00
jhb
532b026a40 A few tweaks to reduce diffs with HEAD including using lock_init() and
lock_destroy() and adding a missing #include so that NO_ADAPTIVE_RWLOCKS
is honored.
2007-09-27 18:06:49 +00:00
ru
d824151b34 MFC: rev. 1.23: Fix the CPU usage display. 2007-09-27 06:35:27 +00:00
kientzle
828873a7fe MFC spelling correction. 2007-09-27 03:47:26 +00:00
kientzle
77ebdb43f5 MFC 1.17: Make return values from archive_write_data()
consistent whether you're writing to an archive or to disk.
2007-09-27 03:45:24 +00:00
kientzle
b2f9cd5319 MFC 1.77: Support --posix as a synonym for --format=pax, for
GNU tar compatibility.
2007-09-27 03:42:59 +00:00
mav
4ae2b7a8da MFC rev. 1.82-1.84
Fix thread unsafe usage of global pkt_hdr variable.
Optimize ether and debug hooks determination.
Remove some dead code.
2007-09-26 19:15:14 +00:00
jhb
d21c68d5f5 MFC: Properly look for neighbor USB 1.x controllers and fix a memory leak. 2007-09-26 17:33:18 +00:00
mtm
85a486d312 MFC:
Revision  Path
	  1.82      src/etc/rc.d/Makefile
	  1.16      src/etc/rc.d/lockd
	  1.17      src/etc/rc.d/lockd
	  1.18      src/etc/rc.d/lockd
	  1.15      src/etc/rc.d/nfslocking
	  1.16      src/etc/rc.d/statd
	  1.17      src/etc/rc.d/statd

	Split rc.d/nfslocking into two separate scripts: rc.d/lockd
	and rc.d/statd. Keep rc.d/nfslocking for POLA reasons but do
	not run it during system startup.

	PR: conf/107316

	  Revision  Path
	  1.14      src/etc/rc.d/nfslocking

	The precmd routine does not need to check whether the comman
	should be "forced". If some pre-condition is not met, it should
	fail as it normally does and rc.subr(8) will make the appropriate
	decision. Incidentally, the previous behaviour had a bug where
	the "force" flag was respected only when checking rc.conf(5) knobs.
	The flag was ignored when verifying the rpcbind(8) dependency.
2007-09-26 11:02:28 +00:00
bz
4b73c7f73d MFC rev. 1.147
Fix a DIV0 in case a large value for fs_avgfilesize or fs_avgfpdir
  is given (with newfs or tunefs) and dirsize overflows.

  In case dirsize is <= 0 because of an overflow set maxcontigdirs
  to 0 so it will be 1 later. This is what would happen for large
  fs_avgfilesize. [1]

  Submitted by:                   pjd [1]
2007-09-24 13:39:06 +00:00
scf
37617c42be MFC:
Sync usage() with reality.

    src/usr.bin/locate/locate/locate.c: rev 1.16 -> 1.17

Approved by:	wes
2007-09-22 02:46:13 +00:00
obrien
30cde5d032 MFC: flopen(3), expand_number(3), kld_isloaded(3) 2007-09-21 21:23:04 +00:00
obrien
1684759154 MFC: rev. 1.4: consume flopen(3). 2007-09-21 17:27:48 +00:00
obrien
a0569a49ba MFC: consume kld_isloaded(3). 2007-09-21 17:25:03 +00:00
ambrisko
a6e3052cba MFC: 1.51
Fix an incorrect PCI device id.  The current value conflicts with
  the mfi(4) LSI MegaSAS RAID card.  Looking at the Linux driver for the
  mpt(4) it should be 0x0062 and not 0x0060.  Tested with an mfi card
  of this device id.

Reviewed by:	scottl
2007-09-21 16:43:31 +00:00
obrien
ed8bda3771 Bump for libutil(3) MFC's (and any others around this time). 2007-09-21 15:33:38 +00:00