Commit Graph

113338 Commits

Author SHA1 Message Date
simonb 20a5af5edd Allow either parameter to the getbsize(3) function to be a NULL, in
which case it is ignored.
2003-05-30 00:12:09 +00:00
fvdl afff857edc Add the options MPBIOS_SCANPCI and MPACPI_SCANPCI to configure PCI roots
with the MPBIOS/ACPI bus information, by walking through the buses, and
descending down every bus that hasn't been marked configured yet.
2003-05-29 20:22:28 +00:00
nathanw 4ee0df68f2 Allocate and initialize dirp->dd_lock before calling telldir(), which
will try to lock it.

Addresses PR lib/21712.
2003-05-29 18:29:59 +00:00
christos 25cb0b1e94 de-lint pointer casts. 2003-05-29 18:15:25 +00:00
christos 7d2c2eeaea - make all targparam.h files consistent with the arch includes
- add a new INTPTR_IS_LONG define and use it.

- XXX: the PTRDIFF, SIZEOF, INTPTR defines really make lint more relaxed
  in some platforms than others. We should really be looking for the
  particular tokens to enable this kind of checking. I.e.
  now:

	char *p;
	int foo = (int)p;

  does not produce a warning on INTPTR_IS_LONG == 0 platformas.
  In reality it should only elide the warning if:

	char *p;
	int foo = (intptr_t)p;

  but it is not that smart (yet).
2003-05-29 18:12:13 +00:00
christos 0328813526 Back to unsigned int and int for {u,}intptr_t, otherwise java has no chance... 2003-05-29 18:06:55 +00:00
dsl c522fd9f62 partsize and partstart don't need to be globals 2003-05-29 17:54:22 +00:00
dsl 4ed96ba68a Use local partstart and partsize.
Add code that might let this code add the boot partition for the 2 ports that need it.
2003-05-29 17:53:24 +00:00
dsl 83067f27c6 psrtsize and partstart are only over used inside md_make_bsd_partitions,
use locals instead of globals.
2003-05-29 17:51:26 +00:00
kleink 4f95ecd71a KNF example: NULL vs. 0, space after switch. 2003-05-29 17:48:49 +00:00
yamt 85d0052723 workaround for UBC limit.
while our nfsd announces MAXBSIZE as wtmax for tcp,
VOP_GETPAGES of filesystems that uses genfs_getpages can't
handle >= MAX_READ_AHEAD(16) pages at once.
therefore, depending on PAGE_SIZE of the machine and file offset of
a read request, we can't VOP_GETPAGES the range at once.
2003-05-29 15:18:14 +00:00
he 3812b817f3 Add back in man3/readdir.3 lost in previous commit. 2003-05-29 11:11:40 +00:00
hannken 5c19a0665c Change "%qu" to "PRIu64" to make it compile on sparc64. 2003-05-29 08:13:41 +00:00
simonb d3706e51e4 Remove some useless comments. 2003-05-29 03:53:57 +00:00
gson f60f21cf0b The remaining capacity percentage was incorrect for batteries larger than
21.47 Wh becaue of integer overflow.
2003-05-29 02:47:49 +00:00
simonb 0ddc5a67fd KNF nit. 2003-05-29 02:22:51 +00:00
fair 1f49a3d273 Add many missing categories. 2003-05-29 01:22:19 +00:00
kristerw 2a9882e7e9 Be consistent with use of types (e.g. do not use LINENUM for quantities
that are not line numbers).
2003-05-29 00:59:23 +00:00
kristerw a5348cc746 Remove a duplicated entry. 2003-05-28 23:14:03 +00:00
nathanw a86930707b Expand the test in itimerfire() to only wake up an idle SA LWP if the
process isn't stopped.
2003-05-28 22:27:57 +00:00
nathanw 998110e1d0 Put the tsleep() call in sa_yield() inside a while loop that tests
whether there is anything to do - almost as if it were a predicate
test outside of a condition wait. This prevents returning to userland
when tsleep() has woken up spuriously, such as from a signal that was
caught and then removed by a tracing process.

Kills off some double-stops in GDB due to signals as well as a couple
of pthread__idle assertions when detaching from a process.

XXX stopping inside tsleep, via CURSIG(), is evil.
2003-05-28 22:17:20 +00:00
kristerw 370fc7eb10 Use __asm instead of asm, to make lint happy. 2003-05-28 21:35:13 +00:00
kleink 45586dc2f9 Need <string.h> for memcpy(). 2003-05-28 21:08:23 +00:00
dsl b5a44ece1f Look at mode of program being run, not of ldd when deciding whether to
use LD_LIBRARY_PATH.
2003-05-28 20:45:39 +00:00
kleink 9a398ec067 Add restrict qualifiers to previous. 2003-05-28 20:28:37 +00:00
christos fa46624bca add readdir_r alias 2003-05-28 20:22:55 +00:00
dsl 386a8e5059 Don't restartwin() if it isn't stopped.
Ensures we don't save the modified tty flags (as well as doing all the
initialisation twice) if the application (eg systat) calls curses functions
in its own restart code.
2003-05-28 20:19:42 +00:00
dsl 31cb6aba03 Reinstate our STOP handler before curses installs its one.
Ensures that both handlers are executed on subsequent stops.
2003-05-28 20:17:14 +00:00
christos 04413cc928 readdir_r + libc bump. 2003-05-28 20:07:46 +00:00
christos 1e1359c7d6 agent 99 2003-05-28 20:06:22 +00:00
christos 6c15d5ed81 expose DIRENT_SIZE to userland if _NETBSD_SOURCE 2003-05-28 20:04:48 +00:00
christos 0cc4f4a69e add mutex locking and dirent_r. 2003-05-28 20:04:12 +00:00
christos 9af7135771 add mutex locking for directories and readdir_r(3). Influenced by FreeBSD. 2003-05-28 20:03:37 +00:00
dsl cb9a14ea0b Report ioctl read and write the correct way around. 2003-05-28 20:02:59 +00:00
christos c8042cb209 no need to declare __isthreaded. 2003-05-28 19:57:22 +00:00
christos 210944c7de Add /proc/<pid>/stat for linux compat. j2sdk1.4.2 depends on it. 2003-05-28 18:03:15 +00:00
taca e1d53fb73f cvs 1.11.6 released. 2003-05-28 13:48:03 +00:00
christos a23e290bac Specify the interface where to place the default route, otherwise we sometimes
can put it in the wrong place.
2003-05-28 13:43:26 +00:00
kleink 9d85c4a5f8 Add ETIME, per POSIX-2001. 2003-05-27 22:37:33 +00:00
itojun f46a719b5c can't use M_WAIT here, i believe. 2003-05-27 22:36:38 +00:00
itojun 01c8c2e99a - don't use M_WAIT within splnet.
- retain m_pkthdr for mbuf passed down to ifp->if_output.
  pointed out by is@netbsd
2003-05-27 22:27:21 +00:00
wiz 53588c2a8b Back this out until I know why it does not work. 2003-05-27 21:43:32 +00:00
fvdl 3e4b8e3852 Another pair of locks to pacify UVM (XXX -- not needed). 2003-05-27 20:05:35 +00:00
wiz 43075c01c6 Use && instead of ; to only overwrite a file if the corresponding sed worked (from christos).
Add .cpp rules.
2003-05-27 19:32:18 +00:00
wiz f338b31357 Add .cpp dependency rules. 2003-05-27 19:30:45 +00:00
christos ecaad897e4 make this compile again with -DDEBUG 2003-05-27 16:46:16 +00:00
christos f74633f4ed another dependency on assym.h 2003-05-27 16:46:03 +00:00
christos 143f5a277a pass lint:
1. add new pthread__abort() and change pthread_assert(0) to it.
2. put constcond in the right place (in the macro).
3. no space after pthread__assert macro.
2003-05-27 15:24:24 +00:00
christos 4e29fa8276 add missing notreached lint comment. 2003-05-27 15:22:56 +00:00
yamt d36494e29b fix a memory leak bug that i introduced in rev.1.167.
patch provided by enami tsugutomo on current-users.
2003-05-27 14:41:06 +00:00