Commit Graph

99318 Commits

Author SHA1 Message Date
jhb
7d918623ed - Correct the translation of old rlimit values to properly handle the old
RLIM_INFINITY case for ogetrlimit().
- Use %jd and intmax_t to output negative time in usec in calcru().
- Rework getrusage() to make a copy of the rusage struct into a local
  variable while holding Giant and then do the copyout from the local
  variable to avoid having to have the original process rusage struct
  locked while doing the copyout (which would not be safe).  This also
  includes a few style fixes from Bruce to getrusage().

Submitted by:	bde (1, parts of 3)
Suggested by:	bde (2)
2004-02-06 19:30:12 +00:00
jhb
6f1d1b4b59 A few more style fixes from Bruce including a few I missed last time.
Submitted by:	bde
2004-02-06 19:25:34 +00:00
deischen
45140f3f66 Add cancellation point to sem_wait() and sem_timedwait() for pshared
semaphores.  Also add cancellation cleanup handlers to keep semaphores
in a consistent state.

Submitted in part by:	davidxu
Reviewed by:		davidxu
2004-02-06 15:20:56 +00:00
deischen
34337ec7df Prevent memory leak on sem_destroy() by destroying the semaphore's
internal mutex and CV.
2004-02-06 15:15:44 +00:00
sanpei
c0c79ec499 MFNetBSD:
netbsd.org -> NetBSD.org(rev.1.109)
	fix typo in comment(rev.1.90)

add list of ``already merged''
2004-02-06 14:38:14 +00:00
deischen
77a51787da Only allow the semaphore to be taken when the value is positive.
Don't decrement it twice when it is taken.

Reported by:	kris
2004-02-06 13:54:38 +00:00
ru
32ebedf6ce Inherit BINDIR from a parent Makefile.inc. 2004-02-06 12:58:32 +00:00
ru
1cb0435d20 Only include ../Makefile.inc once in loader/Makefile. 2004-02-06 12:45:27 +00:00
sos
2e6f1b1f44 Commit simple workarounf for the "LiteOn" hang on boot problem.
This allows the system to boot so I can get the world out of
my mailbox and get some work done to figure out what this mess
is all about.
2004-02-06 11:36:50 +00:00
ru
a1f433be39 From what I can tell, install.sh supported all of the install(1)
options since revision 1.2, so removed the XXX comment now.

Fixed bogus test(1) expression that would be evaluated as a null
string test if script is run without arguments, compacted option
lists.
2004-02-06 11:00:13 +00:00
ru
22c6ec4c00 Removed all the complexities when installing the strip(1) binary.
Submitted by:	bde
2004-02-06 09:25:59 +00:00
peter
70ef80154c Turn of ath since it causes a link failure without the hal till sam's
set up with a cross compiler and has the time to port the hal.
2004-02-06 01:51:58 +00:00
peter
e7094869f3 Make LINT compile on amd64 2004-02-06 01:47:52 +00:00
peter
4408d0c9f7 Make this compile on amd64.
"I'll cope" by:  sam
2004-02-06 00:10:54 +00:00
deischen
5641da8c47 Correct check for invalid semaphore on sem_destroy() (s/==/!=/).
Reported by:	kris
2004-02-05 23:32:45 +00:00
sam
83973022e3 must convert protocol to sa type when preparing a DELETE message
Submitted by:	Roselyn Lee <rosel@verniernetworks.com>
MFC after:	1 week
2004-02-05 23:19:17 +00:00
ru
a1d941195d Fixes from 31-Jul-2003; make it 8-bit clean.
Forgotten by:	ru (for far too long)
2004-02-05 23:16:31 +00:00
ru
d05550fc75 This commit was generated by cvs2svn to compensate for changes in r125505,
which included commits to RCS files with non-trunk default branches.
2004-02-05 23:16:31 +00:00
peter
5f99eb018e Attempt to clean up the emu10k1-alsa.h stuff so that config doesn't
delete it each time its run and have it regenerated each time by make.
I used a quick hackish script rather than putting it in the files file
and used the before-depend rule to avoid the depend/no-depend hacks.
2004-02-05 22:51:16 +00:00
ru
4c72afa60b Fixed style of DPADD and LDADD assignments as per style.Makefile(5). 2004-02-05 22:44:25 +00:00
deischen
54eba7ee42 Correct the weak reference for sem_unlink. 2004-02-05 22:36:27 +00:00
cracauer
71c33ec8b7 Commit fix sent by Tor Egge <Tor.Egge@cvsup.no.freebsd.org>
Only use return value from system call if system call succeeded.

Tested with `make world` and some of my own scripts.

This should be MFCed soon.  While /bin/sh is hard to test the fix is
obviously correct and can be assumed not to break something else
(famous last words...).
2004-02-05 22:34:05 +00:00
ru
74133e2d19 Added missing DPADD. 2004-02-05 22:01:28 +00:00
ru
6160ebd44d Fixed ``make checkdpadd''. Removed redundant dependency. 2004-02-05 21:52:33 +00:00
des
7cd309cd57 Require initrandom rather than random, since random requires
mountcritlocal, which requires disks, which gbde_swap provides.

Noticed by:	brooks
2004-02-05 21:40:37 +00:00
iedowse
84628eff1c Don't print the oldest line in the message buffer if the buffer is
full, since that line is almost always incomplete. Make the parsing
of <%d> lines more strict.

Also simplify the logic a little:
 - Start off by making the buffer linear so that we don't have to
   deal with it wrapping around (suggested by bde).
 - Process line by line rather than byte at a time.
2004-02-05 21:07:50 +00:00
jhb
bd774f3e53 Always set a process' state to normal when it is fully constructed in
fork1() rather than only doing it for the RFSTOPPED case and then having
to fix it up in other places later on.
2004-02-05 21:01:37 +00:00
jhb
d733641f39 - A lot of style and whitespace fixes.
- Update a few comments regarding locking notes.

Submitted by:	bde (1, mostly)
2004-02-05 20:53:25 +00:00
ru
f62ef522b5 Temporarily put STRIP back; bsd.port.mk still needs it. 2004-02-05 20:48:44 +00:00
ru
aaafc5f547 Don't define STRIP in bsd.own.mk. 2004-02-05 20:16:18 +00:00
ru
176e19f455 strip wasn't stripped since we stopped to include bsd.own.mk from sys.mk. 2004-02-05 19:54:56 +00:00
ru
3cc58ddce8 style.Makefile(5).
OK'ed by:	nectar
2004-02-05 18:51:52 +00:00
ru
093e3d8214 Try harder to pick up the correct print_version.c. The old version
works before bsd.dep.mk,v 1.44, whether .depend file exists or not,
but the contents of .depend file is wrong.  With bsd.dep.mk,v 1.44,
the contents of .depend file is always broken, and build without a
.depend file is broken too.  With this change it works reliably in
all cases.  Ugh.
2004-02-05 18:49:35 +00:00
nectar
13f87a3655 Correct a reference counting bug in shmat(2). If vm_map_find(9)
failed, the reference count for the virtual memory object referenced
by the specified shared memory segment would have been erroneously
incremented.

Reported by:	Joost Pol <joost@pine.nl>
2004-02-05 18:00:35 +00:00
kan
50591e45d4 Rename cn_unavailable to cnunavailable for little more consistency.
Garbage collect unused cndebug() function.

Suggested by:	bde
2004-02-05 17:35:28 +00:00
bde
afad081121 Fixed operation of -f to match its documentation and fsck_ffs. It
has now has no effect except in combination with -p, and plain fsck
checks all file systems instead of skipping clean ones for msdosfs
only.

Renamed the force flag to skipclean and inverted its logic as in
fsck_ffs.
2004-02-05 15:47:46 +00:00
bde
68ab3ceebc Fixed some bugs in checkdirty(). The check for the clean bit was
combined with the the signature check in a wrong way (basically
(dirty:= signature_recognised() && !clean) instead of
(mightbedirty:= !signature_recognized || !clean), so file systems
with unrecognized signatures were considered clean.  Many of the
don't-care and reserved bits were not ignored, so some file systems
with valid signatures were unrecognized.  One of my FAT32 file systems
has a signature of f8,ff,ff,ff,ff,ff,ff,f7 when dirty, but only
f8,ff,ff,0f,ff,ff,ff,07 was recognised as dirty for FAT32, so the
fail-unsafeness made my file system always considered clean.

Check the i/o non-error bit in checkdirty().  Its absence would give
an unrecognized signature in code that is unaware of it, but we now
mask it out of the signature so we have to check it explicitly.  This
combines naturally with the check of the clean bit.

Reviewed by:	rnordier (except for final details)
2004-02-05 15:18:18 +00:00
rik
6f3427111c Updates cx driver information (Cronyx-Sigma)
Approved by:	imp (mentor)
2004-02-05 13:02:14 +00:00
ume
c13262dcf1 printed statistics about source address selection rules.
Obtained from:	KAME
2004-02-05 12:08:35 +00:00
ume
fcc30a957c stops program if kvm_read fails.
Obtained from:	KAME
2004-02-05 12:05:35 +00:00
ume
3fd8836dff - support hmac-ripemd160.
- support AES XCBC MAC/AES counter mode.

Obtained from:	KAME
2004-02-05 12:02:37 +00:00
ume
1331f1167c print stats on SPD cache lookups.
Obtained from:	KAME
2004-02-05 12:01:39 +00:00
ume
f43413fdab - %d is 12 chars, not 10. use NI_MAX* where appropriate.
- goodbye RC5.
- use %llu directly.
- KNF.

Obtained from:	KAME
2004-02-05 11:59:37 +00:00
des
9213273e11 Use more generic directories (most prominently, s|/home/des|%%HOME%%|) 2004-02-05 11:08:36 +00:00
des
383a855dbb Don't create a template file if we're not going to let the user edit it. 2004-02-05 10:57:29 +00:00
roam
4fcf1de1b5 Fix a typo in kan's last commit: cnavaiable() -> cnavailable() 2004-02-05 10:02:20 +00:00
pjd
2668884bb4 Fix wrong check.
Approved by:	jake, scottl (mentor)
2004-02-05 09:50:57 +00:00
ru
1bba7b771c make(1) can now handle spaces surrounding parenthesis correctly. 2004-02-05 08:44:43 +00:00
pjd
15f1a624c0 Fixed some non-critical memory leaks and one temporary file leak
(theoretical).

Approved by:	phk, scottl (mentor)
2004-02-05 08:39:38 +00:00
silby
f29c8ca8e8 Style fixes: don't indent variable names.
Submitted by:	bde
2004-02-05 08:29:27 +00:00