Commit Graph

100506 Commits

Author SHA1 Message Date
des
cc22bb8b78 Use void * instead of char * to avoid violating C99 strict aliasing rules. 2004-03-16 20:45:37 +00:00
des
ce346529a3 Use unions to avoid violating C99 strict aliasing rules. 2004-03-16 20:42:02 +00:00
thierry
ffa157ec1e Approved by: mat (mentor). 2004-03-16 19:39:11 +00:00
mux
3ca8d2f211 Add explicit dependency on "ether", since we use ether_ifattach(). 2004-03-16 19:25:55 +00:00
alc
a2e820d27b Refactor the existing machine-dependent sf_buf_free() into a machine-
dependent function by the same name and a machine-independent function,
sf_buf_mext().  Aside from the virtue of making more of the code machine-
independent, this change also makes the interface more logical.  Before,
sf_buf_free() did more than simply undo an sf_buf_alloc(); it also
unwired and if necessary freed the page.  That is now the purpose of
sf_buf_mext().  Thus, sf_buf_alloc() and sf_buf_free() can now be used
as a general-purpose emphemeral map cache.
2004-03-16 19:04:28 +00:00
jhb
71c3a1c44c Remove a bogus assertion and readd it in a more correct location. A thread
might be enqueued on a sleep queue but not be asleep when the timeout fires
if it is blocked on a lock trying to check for pending signals before going
to sleep.  In the case of fixing up the TDF_TIMEOUT race, however, the
thread must be marked asleep.

Reported by:	kan (the bogus one)
2004-03-16 18:56:22 +00:00
schweikh
d54678864e Added entries for 90 columns russian VGA modes.
PR:		conf/51830
Submitted by:	Sergiy Vyshnevetskiy <serg@vostok.net>
MFC after:	1 week
2004-03-16 18:04:14 +00:00
obrien
c0b1fcdc1f Fix $FreeBSD$ ids. 2004-03-16 17:24:06 +00:00
jhb
b7e56e9eea Change libdisk and sysinstall to use d_addr_t rather than u_long for disk
addresses.  For arch's with 64-bit longs, this is a nop, but for i386 this
allows sysinstall to properly handle disks and filesystems > 1 TB.

Changes from the original patch include:
- Use d_addr_t rather than inventing a blkcnt type based on int64_t.
- Use strtoimax() rather than strtoull() to parse d_addr_t's from config
  files.
- Use intmax_t casts and %jd rather than %llu to printf d_addr_t values.

Tested on:	i386
Tested by:	kuriyama
Submitted by:	julian
MFC after:	1 month
2004-03-16 17:07:06 +00:00
sos
662b843050 Update the SiS support to distinguish older southbridges better. 2004-03-16 16:23:28 +00:00
hrs
ae5f2882e5 New release note:
raid(4) removal.
2004-03-16 15:30:46 +00:00
mtm
b888616478 o Add an -S option to not attempt to ascertain the validity of a shell.
o Add a -D option to not attempt to create the home directory.
o Treat the /nonexistent home directory specially. It means the user has
  no home directory and it should not be created.
o Update Copyright year and my email.
2004-03-16 13:46:29 +00:00
phk
fe6f003286 Remove dangling raidctl reference 2004-03-16 13:42:23 +00:00
grehan
84ca086b14 Add powerpc to temporary fix. The new cpu device claims all
'generic' OpenFirmware nexus nodes, since it uses bus_generic_probe.
Maybe the cpu device probe should be MD.
2004-03-16 13:34:50 +00:00
tjr
feae82b01a Refer to "wide characters" instead of "wide-characters". 2004-03-16 13:30:11 +00:00
nyan
76ef71db9d The arlconfig is needed on i386 only. 2004-03-16 12:46:14 +00:00
nyan
304659e67f Move the arl to i386 only. 2004-03-16 12:43:08 +00:00
nyan
6e962440fd Don't use the pcic polling. 2004-03-16 12:40:11 +00:00
scottl
8fd981485e Remove the RAIDframe manual page 2004-03-16 12:35:55 +00:00
scottl
57374797f1 Remove the RAIDframe userland tool. 2004-03-16 12:28:40 +00:00
scottl
d7a0e027d9 Remove the module reference for RAIDframe 2004-03-16 12:27:34 +00:00
scottl
5bf26ae88e Remove RAIDFrame. It hasn't worked since GEOM replaced the old disk
mini-layer.  I don't have time to bing it forward into the GEOM world, and
no one else has stepped forward to claim it.  It'll be in the Attic for safe
keeping for now.
2004-03-16 12:23:43 +00:00
des
f795311fe8 Given the impact of CFLAGS and COPTFLAGS on the build, report them in
the log, even when not verbose.
2004-03-16 12:12:10 +00:00
des
74c45061e0 Whitespace nit. 2004-03-16 12:08:59 +00:00
tjr
d28b18f4b5 Sort MLINKS.
Noticed by:	ru
2004-03-16 11:06:31 +00:00
dwmalone
116755fef7 Nudge Giant as far as I can into kern_open(). Mark open() as MPSAFE.
Use kern_open() to implement creat() rather than taking the long route
through open(). Mark creat as MPSAFE.

While I'm at it, mark nosys() (syscall 0) as MPSAFE, for all the
difference it will make.
2004-03-16 10:46:42 +00:00
dwmalone
bfd66a78ad Get ready to mark open, creat and nosys as MPSAFE. 2004-03-16 10:41:23 +00:00
tjr
48661b2fa3 Add fairly minimal documentation for the nmount() syscall. 2004-03-16 09:45:38 +00:00
tjr
5fb6c2e59a Use vfs_nmount() to mount linprocfs filesystems in linux_mount();
linprocfs doesn't support the old mount interface.
2004-03-16 09:05:56 +00:00
tjr
d37f036c18 Make vfs_nmount() public. The Linux emulator needs this in order to mount
linprocfs filesystems.
2004-03-16 08:59:37 +00:00
tjr
f1f3d78ff5 Correct size argument passed to copyinstr() in linux_mount(): mntfromname
and mntonname are both MNAMELEN characters long, not MFSNAMELEN.
2004-03-16 08:37:19 +00:00
cperciva
4d1e6cb1d3 Fix memory leak
PR:		bin/64321
Submitted by:	Rodney Ruddock <rodney@interopsystems.com>
MFOpenBSD:	rev 1.17
MFC after:	3 days
2004-03-16 08:33:33 +00:00
truckman
3c4fad0869 Rename the wiredlen member of struct sysctl_req to validlen and always
set it to avoid the need for a bunch of code that tests whether or
not the lock member is set to REQ_WIRED in order to determine which
length member should be used.

Fix another bug in the oldlen return value code.

Fix a potential wired memory leak if a sysctl handler uses
sysctl_wire_old_buffer() and returns an EAGAIN error to trigger
a retry.
2004-03-16 06:53:03 +00:00
hrs
82bae980d5 New release note:
arl(4) for Aironet Arlan 655 wireless adapters.
2004-03-16 04:40:10 +00:00
truckman
2b0bda9870 Don't bother calling vslock() and vsunlock() if oldlen is zero.
If vslock() returns ENOMEM, sysctl_wire_old_buffer() should set
wiredlen to zero and return zero (success) so that the handler will
operate according to sysctl(3):
     The size of the buffer is given by the location specified by
     oldlenp before the call, and that location gives the amount
     of data copied after a successful call and after a call that
     returns with the error code ENOMEM.
The handler will return an ENOMEM error because the zero length
buffer will overflow.
2004-03-16 01:28:45 +00:00
des
12adb9e4a7 Set TZ to UTC so dates in the history file will match dates in the logs. 2004-03-16 00:31:27 +00:00
des
f5a61d1e2b Build the tinderbox with -O2. 2004-03-16 00:24:54 +00:00
des
2053e2932b The documentation lists configuration variables in uppercase, so dump
them in uppercase.
2004-03-16 00:15:05 +00:00
des
e1a6d2a472 Add configuration shortcuts for CFLAGS and COPTFLAGS. 2004-03-16 00:12:59 +00:00
des
7c2bf140bd Allow the user to override CFLAGS and COPTFLAGS on the command line. 2004-03-16 00:12:33 +00:00
jhb
5670428480 When installing boot blocks into an Alpha BSD label, setup the location,
length, and flags fields at the end of the SRM boot sector so that SRM can
find the bootstrap code.  This fixes bsdlabel -m alpha to generate bootable
disklabels.

Reviewed by:	phk
2004-03-15 23:10:34 +00:00
jhb
216c5338ff Add a mixer script that saves the current settings of all mixers present
in the system on shutdown and restores the settings on boot.  The settings
can also be reset to the saved values via 'mixer reload'.

Reviewed by:	current@
2004-03-15 23:09:17 +00:00
jhb
15596982a5 Regenerate. 2004-03-15 22:44:35 +00:00
jhb
28f51bd3cc - Mark ABI syscalls that call wait4() MP safe as recent changes to
the kernel wait4() made these all panic() implementations otherwise.
- The i386 linux_ptrace() syscall is MP safe.  Alpha was already marked
  MP safe.
2004-03-15 22:43:49 +00:00
fjoe
988426d9e5 Add arl(4): driver for Aironet Arlan 655 wireless adapters.
MFC after:	2 weeks
2004-03-15 22:24:28 +00:00
phk
6c8e5c543f The PPS code needs to be much more brutal to avoid synchronism on
hardware with non-sucky clocks.
2004-03-15 21:47:34 +00:00
hrs
31018190bc New release note:
ata(4) cardbus ATA/SATA support.
	ifconfig(8) prints polling(4) status.
2004-03-15 21:20:39 +00:00
fjoe
6d50413c73 Add ru.koi8-r.win.kbd based on ru.koi8-r.shift.kbd which closely mimics
ru(winkeys) XFree86 layout.

Differences with ru.koi8-r.shift.kbd are:
- ctrl+shift = alock
- left/right win = meta, menu = saver
- alock'ed shift+[0-9] = )!@#$%^&*(
2004-03-15 20:34:18 +00:00
jhb
1ed25bd5c1 Regen for ptrace being safe again. 2004-03-15 18:50:06 +00:00
jhb
d8445e0c8d Drop the proc lock around calls to the MD functions ptrace_single_step(),
ptrace_set_pc(), and cpu_ptrace() so that those functions are free to
acquire Giant, sleep, etc.  We already do a PHOLD/PRELE around them so
that it is safe to sleep inside of these routines if necessary.  This
allows ptrace() to be marked MP safe again as it no longer triggers lock
order reversals on Alpha.

Tested by:	wilko
2004-03-15 18:48:28 +00:00