Commit Graph

109463 Commits

Author SHA1 Message Date
lukem
ee7f3a601a Rework -p support again;
- If mkdir() fails on a component (no matter what the error is),
  stat() the result.  If the stat() fails, print the error mkdir() generated.
  Otherwise, if the result is not a directory, explicitly fail with ENOTDIR.
- Move the chmod() of last element to be done only if the mkdir() succeeded
  (i.e, it wasn't an existing directory)

Fixes problem introduced in previous commit where "mkdir -p existing"
on a read-only file system would incorrectly return a non zero exit code,
whilst retaining the race-condition fix of the previous commit.

Thanks to simonb@ for sanity checking my fix versus the standards.
2003-03-05 03:58:44 +00:00
groo
d5953564e9 Remove the HAS_* ifdefs which select [v]s{,n}printf. Always choose the
n version.
2003-03-05 02:20:19 +00:00
thorpej
72dd57106c Implement a minimal pager for the uvm_loanzero_object, which simply has
a "put" method which reactivates or dequeues the page.

Need for pager pointed out by enami tsugutomo.
2003-03-05 01:52:41 +00:00
christos
4b0ce4e260 fix for potential buffer overflow in snprintf() (from OpenBSD) 2003-03-05 01:15:48 +00:00
jrf
c93c016461 Patch from PR 12304 submitted by Matthias Buelow mkb@moghedien.mayn.de.
Patch reviewed by Itojun itojun@netbsd.org.
2003-03-05 01:10:46 +00:00
dogcow
0ef88e5d5c note changes to mdsetimage (which broke after the binutils update) 2003-03-05 00:06:34 +00:00
fvdl
91ef1f21bf Make the apic address unsigned, as it should be. 2003-03-04 23:27:32 +00:00
fvdl
c89161c65f ioapic address is not actually a pointer, initialize it as uint32_t 2003-03-04 23:21:25 +00:00
fvdl
e575c4bc69 Fix some fields that did not have explicit types yet. 2003-03-04 23:20:29 +00:00
fvdl
48aa516ffe Use read_psl and write_psl. 2003-03-04 22:43:36 +00:00
fvdl
e1a37a9604 Define read_psl and write_psl as aliases for read_eflags and write_eflags. 2003-03-04 22:43:09 +00:00
jmmv
db97c4116c Use the pidfile created by wsmoused. 2003-03-04 22:32:11 +00:00
jmmv
b74771a131 Create a pidfile while running (which can be tuned with the new "pidfile"
configuration variable). Ok'ed by christos.
2003-03-04 22:31:15 +00:00
fvdl
b2a3a55d38 Enable the define for EISA MPBIOS support. 2003-03-04 22:19:32 +00:00
fvdl
d9bd125d50 Make EISA support conditional (on by default on i386). 2003-03-04 22:19:04 +00:00
matt
df4902d922 NetBSD doesn't support PS_REGNUM or anything >= MQ_REGNUM. 2003-03-04 21:12:32 +00:00
nathanw
f60f35f3ab Don't acquire __environ_lock around exec*() calls; nothing requires
that these calls be thread-safe with respect to the environment, and it
causes serious problems for threaded applications which call vfork() and
exec*() (including indirectly, via popen() or system()).

Acquire and release __environ_lock in the parent in popen() and system() to
play safe and provide the child with a stable environment.

__environ_lock should also have an atfork() handler; still under development.
2003-03-04 19:44:09 +00:00
jmmv
2ea5d53fe3 Avoid writing things to the fifo if it was not opened. 2003-03-04 19:43:09 +00:00
jmmv
73b21378a4 Check if configuration data exists before freeing memory. 2003-03-04 19:28:59 +00:00
perseant
d51fdbef63 Make sure we hold the uobjlock when checking for dirty pages, in lfs_vflush.
Note that pages can become dirty without our knowing it, anyway; don't
panic if that happens.
2003-03-04 19:19:43 +00:00
christos
b399e96d11 No other program prints errors inside angle brackets! 2003-03-04 19:19:25 +00:00
perseant
003cfbd545 Don't add dirty blocks to the ifile in lfs_segunlock, if we're trying to
unmount the filesystem.  This avoids a "dirty blocks" panic.
2003-03-04 19:15:26 +00:00
perseant
958a4c008c Don't force all truncations to be synchronous 2003-03-04 19:10:35 +00:00
tron
98e6fa0c08 Teach procfs_allocvp() about Puptime to avoid panics if "/proc/uptime"
is opened.
2003-03-04 18:55:02 +00:00
christos
aa229efdc3 Avoid memory leak. Pointed out by Patrick Latifi <patrickl at secureops dot com> 2003-03-04 18:30:58 +00:00
thorpej
65ec6ba6e7 Fix lib/20558:
A dynamically linked program invokes the rtld cleanup routine via
an atexit handler.  This rtld cleanup routine invokes _fini() for
shared libraries, which in-turn invoke __cxa_finalize() with their
DSO handle.  By luck, this happens to work okay for non-threaded
programs, but for a threaded program, this leads to deadlock (sometimes
manifested as an assertion failure, if the program didn't actually
create any threads).

Fixed by teaching __cxa_finalize() that it can be recursively invoked,
adjusting the handler list manipulation accordingly.
2003-03-04 18:09:48 +00:00
thorpej
50c739e7b8 Also test the libc atexit routine in the presence of libpthread. 2003-03-04 18:00:48 +00:00
kochi
b1b04fbfdf Update for acpica-unix-20030228. 2003-03-04 17:28:00 +00:00
kochi
589c0d70ae Resolve conflicts from acpica-20030228-2 import. 2003-03-04 17:25:09 +00:00
jmmv
1d2af97bbf Remove trailing whitespace. 2003-03-04 17:16:15 +00:00
kochi
f874599c20 Import the Intel ACPICA 20030228 release. 2003-03-04 17:07:34 +00:00
kochi
f93b318be7 import the Intel ACPICA 20030228 release 2003-03-04 16:43:14 +00:00
fredb
4ac9063aa0 Explain that "sh" has no effect except for locally attached printers,
using, in part, language provided by Gabriel Rosenkoeter. This partially
fixes bin/20525 filed by Peter I. Hansen.
CVS ----------------------------------------------------------------------
2003-03-04 16:10:04 +00:00
yamt
4ff37a4920 no point to compare wint_t and EOF. 2003-03-04 15:09:54 +00:00
yamt
da2254b6db iswctype: return 0 if charclass is 0. 2003-03-04 15:05:57 +00:00
jmmv
29e803a523 Add the /usr/share/examples/wsmoused directory (hi wiz!). 2003-03-04 14:53:01 +00:00
jmmv
48f9faab8e Add the wsmoused.conf(5) manpage. 2003-03-04 14:51:52 +00:00
jmmv
0ca9b0e305 Add the /usr/share/examples/wsmoused directory and the wsmoused.conf file
inside it.
2003-03-04 14:39:06 +00:00
jmmv
ba49f26643 Configuration file is optional, as well as sections inside it. 2003-03-04 14:38:25 +00:00
jmmv
f556391190 Add a wsmoused sample configuration file. 2003-03-04 14:36:17 +00:00
jmmv
68e2c80483 Add support to parse a configuration file, /etc/wsmoused.conf by default.
This file lets users tune the behavior of the daemon in a easy way, without
having to mess with command line options (nor in rc.conf).
It will also simplify future integration of new functionality within the
program as multiple "modes" of operator are recognized.
The new wsmoused.conf(5) manpage contains all related details.

Some error message cleanup and minor manpage fixes too.

Ok'ed by christos.
2003-03-04 14:33:55 +00:00
fvdl
1d6960703b Return value style update (no parentheses) 2003-03-04 14:22:15 +00:00
yamt
182b7b7cda lower acpi interrupt level to IPL_VM.
it's the highest level it can use because it uses malloc(9).
XXX probably, it's still higher than it needs.

ok'ed by thorpej.
2003-03-04 13:44:08 +00:00
soren
e0395ed0f1 G/c old macppc grf entries. 2003-03-04 13:29:12 +00:00
soren
889bcccc72 Attach on recent TiBooks.
XXX The mixer doesn't work yet.
2003-03-04 13:28:20 +00:00
yamt
36c89d3a8a wctob returns EOF, not WEOF. 2003-03-04 13:27:12 +00:00
tshiozak
352611fffc add manpages for wctype, wctrans, iswctype and towctrans. 2003-03-04 12:26:26 +00:00
dogcow
dd911e8f5d Reworked the bfd accesses to use the documented interfaces.
Also, use the file offsets for direct reading/writing, rather
than going through poorly-documented bfd internal magic.
2003-03-04 12:16:41 +00:00
tshiozak
188f0525a0 add manual pages for iswctype(), towctrans(), wctype() and wctrans(). 2003-03-04 12:11:49 +00:00
wiz
2c9762a5ec Mention how to enter ddb on macppc. Bump date and copyright. 2003-03-04 12:02:51 +00:00