Commit Graph

14166 Commits

Author SHA1 Message Date
pooka 01e9b21900 Default f_namemax to MAXNAMLEN, mostly for initial statvfs struct
passed to kernel in mount.

XXX: there's currently no way for a file server to override the
one passed in mount.
2010-07-15 21:53:10 +00:00
pooka e894ab517b Export the opid -> opstr tables (for outside debugging use). 2010-07-11 12:29:08 +00:00
wiz 4d7c45167f Sort sections. 2010-07-09 20:58:38 +00:00
wiz bb4a6891d0 Fix typo. 2010-07-09 20:56:01 +00:00
jruoho b46f888960 Add a compatibility note. Also some minor improvements. 2010-07-09 18:16:31 +00:00
jruoho be670be457 Update ERRORS, tidy SEE ALSO. 2010-07-09 18:07:20 +00:00
jruoho 267d79598f Rearrange, reword, clarify. Remove duplicate paragraphs and recurring
sentences. Update the ERRORS to reflect reality in NetBSD.
2010-07-09 18:01:53 +00:00
jruoho bc665d2683 Re-add EINVAL for pthread_condattr_destroy(3) (misread the pthread__error()). 2010-07-09 17:54:08 +00:00
jruoho e328c0292c Note also alignment via mmap(2), as done in NetBSD. 2010-07-09 17:15:59 +00:00
jruoho c42287d313 As per (now closed) PR lib/43581, add a note about unsupported modifications
to the red zone size.
2010-07-09 17:03:04 +00:00
jruoho dd981aaaa6 Remove error conditions. Add CAVEATS to note the questionable value of the
functions in NetBSD, which does not support additional condition attributes.
Note that these do not conform to SUSv4, where two additional attributes are
mandated.
2010-07-09 16:54:30 +00:00
jruoho 4ec5f0283b Use .Ss for non-standard subtitle. 2010-07-09 12:00:38 +00:00
jruoho 10bc8c491b Rewrite this for clarity. Also remove AUTHORS; someone was proud enough to
put himself as the author, even though the page was directly cut-and-pasted
from the Open Group's specification.
2010-07-09 11:03:26 +00:00
jruoho 70d17355ab Add missing prototypes. Noted by wiz@ -- thanks. 2010-07-09 10:55:57 +00:00
wiz 83d2a68694 Mark up NULL. 2010-07-09 10:55:11 +00:00
wiz f42b354e7d Mark up NULL, remove double space. 2010-07-09 10:49:48 +00:00
wiz 2fb2239c33 Add missing word. 2010-07-09 10:45:36 +00:00
jruoho 379ef6d482 Fix the return values; pthread_resume_np() may fail with ESRCH. In addition,
some improvements to markup and wording.
2010-07-09 09:18:45 +00:00
jruoho 6f7f6ed0ba Add the last compatibility note for the NetBSD extensions. 2010-07-09 09:10:34 +00:00
jruoho 9c4ae7f5c2 Update conformance to the 2001 revision. 2010-07-09 08:51:28 +00:00
wiz b4d7d4fbfb Sort errors. 2010-07-09 08:32:39 +00:00
wiz c351e7655b Remove empty line. 2010-07-09 08:31:35 +00:00
jruoho 6aa4892177 Rationalize by moving
pthread_key_delete(3) to pthread_key_create(3); and
	pthread_setspecific(3) to pthread_getspecific(3)
2010-07-09 08:22:04 +00:00
jruoho 3cc3be4df9 Rationalize by moving
pthread_attr_setname_np(3) to pthread_attr_getname_np(3); and
	pthread_setname_np(3) to pthread_getname_np(3).
2010-07-09 07:31:01 +00:00
jruoho 950e52c1c6 Ups. pthread_barrierattr_destroy(3) may fail with EINVAL. 2010-07-08 23:27:50 +00:00
jruoho 16fcf35f93 Cleanup errors; no error returns are defined in NetBSD. (The error codes
should be audited, and tested, for all pthread functions. Also the used
separation between "shall fail" and "may fail" should probably be removed.)
2010-07-08 23:23:37 +00:00
jruoho 8fe295c535 .Xr instaed of .Fn for pthread_mutex_init(3), update the error codes,
cleanup STANDARDS, etc.
2010-07-08 22:46:34 +00:00
jruoho ec0cdba3c9 Group also pthread_attr_getschedparam(3) and pthread_attr_getschedpolicy(3),
as these two pages fit well together.
2010-07-08 22:19:26 +00:00
jruoho 290a8eeeb6 Add some remarks and clarifications, simplify RETURN VALUES, grammar, etc. 2010-07-08 21:48:07 +00:00
wiz 0ce392a24d Add comma in enumeration, remove Xr to itself from SEE ALSO. 2010-07-08 21:35:09 +00:00
wiz 5a5247a953 Add comma in enumeration, sort errors. 2010-07-08 21:34:22 +00:00
wiz 75c6ae8ffe Sort errors. 2010-07-08 21:34:06 +00:00
wiz 2376f0c4a6 Add comma in enumeration, sort errors. 2010-07-08 21:33:38 +00:00
jruoho acb018ea1d Split long lines, .Dv NULL, note pthread_barrierattr_init(3). 2010-07-08 20:59:43 +00:00
tron 98e3b3e4ec Explicitly cast argument of ffs(3) to fix lint error. 2010-07-08 20:12:37 +00:00
jruoho 0fcec3f1b2 Add missing word. 2010-07-08 20:09:29 +00:00
jruoho baea5f9773 Continue the discussion with few remarks and rearrange slightly. 2010-07-08 20:07:23 +00:00
rmind d199be9733 Merge/group man pages:
- pthread_barrier_{init,destroy,wait} into pthread_barrier(3).
- pthread_cond_* into pthread_cond(3).
- pthread_mutex_* into pthread_mutex(3).
- pthread_rwlock_* into pthread_rwlock(3).
- pthread_spin_* into pthread_spin(3).
Cross-link amongst groups.
OK jruoho@
2010-07-08 19:20:16 +00:00
wiz feae669037 Add missing word. 2010-07-08 18:30:00 +00:00
wiz 92345efbda Whitespace nit. 2010-07-08 18:24:34 +00:00
wiz 228b1868fd Sort sections. 2010-07-08 18:15:27 +00:00
rmind 0dcf29f92e pthread_create: simplify error path slightly. 2010-07-08 15:13:35 +00:00
rmind cb0faac14c svc_getreq[set]: use unsigned when assigning to fds_bits.
XXX: This code should not invade fd_set internals at all.
2010-07-08 14:45:08 +00:00
jruoho 9d6f993b89 Rewrite and include a short summary. 2010-07-08 06:47:49 +00:00
jruoho 1540fc21ba Finally, split pthread_attr_getschedpolicy() and pthread_attr_setschedpolicy()
to their own page.
2010-07-07 16:22:30 +00:00
jruoho 6218b6cbdb Xref pthread_attr_getschedparam(3) and sched(3). Use a list for clarity. 2010-07-07 16:07:10 +00:00
jruoho edddb28a67 Split pthread_attr_getschedparam() and pthread_attr_setschedparam() to a
separate page.
2010-07-07 16:04:19 +00:00
jruoho cf6053f7b6 Split pthread_attr_getinheritsched() and pthread_attr_setinheritsched() to a
separate page, and actually document these.
2010-07-07 15:30:32 +00:00
jruoho 904af291c8 Move pthread_attr_getguardsize() and pthread_attr_setguardsize() to a
separate page, and actually document these.
2010-07-07 13:04:20 +00:00
jruoho 40267ee9ae Fix some minor errors/typos and clarify. 2010-07-07 12:49:15 +00:00
jruoho 2bf45345db Move the thread stack attribute functions to a separate page. In addition,
document pthread_attr_getstack() and pthread_attr_setstack(). Try to also
document these a little better (in particular, note some items in the long
list of caveats and questions related to application-controlled thread stack).
2010-07-07 11:04:52 +00:00
njoly 0eab175c82 Add missing list end. 2010-07-07 10:22:33 +00:00
wiz c4ed068736 Sort sections. 2010-07-07 09:54:07 +00:00
jruoho dbb0e63cfb Split pthread_attr_getdetachstate(3) and pthread_attr_setdetachstate(3) to a
separate page. Once ready, the main page, pthread_attr(3), will contain a
summary of the various thread attribute functions.
2010-07-07 08:57:36 +00:00
jruoho 7f32058c79 Remove pthread_attr_getscope() and pthread_attr_setscope(). 2010-07-07 08:41:11 +00:00
jruoho 69ff1aa9c5 Move pthread_attr_{g,s}etscope() to a separate page and try to document
these better. Should fix PR lib/41831 from Wolfgang Stukenbrock.

XXX: Please proofread.
2010-07-07 08:22:53 +00:00
njoly aab619738e Add missing list end. 2010-07-06 23:15:47 +00:00
jruoho 6a595a491d Same here; fix LIBRARY, add COMPATIBILITY/ERRORS, etc. 2010-07-06 22:24:56 +00:00
pooka 54aeac7f90 unwhine lint 2010-07-06 21:58:18 +00:00
jruoho ae0626ba0d Fix LIBRARY. Add ERRORS and COMPATIBILITY. And some small improvements. 2010-07-06 21:54:12 +00:00
jruoho 935deb263f Document pthread_attr_get_np(). Fixes PR lib/39289 from ahoka@. 2010-07-06 21:36:34 +00:00
pooka d8a0b8cdce stat mount target path only if we're actually goint to use it.
This avoids errors from the comfd case when the mount target does
not exist in our local namespace.
2010-07-06 18:22:20 +00:00
pooka a6b3b71bb8 set time_t compat where necessary 2010-07-06 18:01:14 +00:00
christos 2c086933d8 Apply more limits to GLOB_LIMIT, number of stat(2) calls from me and number
of readdir(3) calls from Maksymilian Arciemowicz. Also reduce the memory
used by matches strings from Maksymilian Arciemowicz.
2010-07-06 14:59:22 +00:00
pooka afdc25dbdf When using the top secret PUFFS_COMFD model, write out size of the
puffs kernel args before the contents.  This allows parties which
have no clue about the contents to proxy the protocol easily.
2010-07-06 13:27:16 +00:00
mrg 0b9686b0cc these were only relevant for a.out builds; time to sleep forever... 2010-07-06 06:04:58 +00:00
mrg 4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
mrg 4f893703d8 delete all the a.out csu code. 2010-07-05 21:27:55 +00:00
christos 6540fba480 consistency with c source 2010-07-05 00:45:19 +00:00
roy 76cbf63f87 area is now used 2010-07-04 07:30:33 +00:00
christos 9b94acc7a6 Avoid DoS attacks for patterns that have braces. Noted by Maksymilian
Arciemowicz.
XXX: Pullup to 5.x
2010-07-02 21:13:10 +00:00
jruoho c8bb322856 Use .Fn instead of .Fa for functions. Also rearrange slightly. 2010-06-30 13:38:10 +00:00
seanb 10f798a007 - remove extra len check as per discussion on tech-net. 2010-06-29 14:44:19 +00:00
joerg e883e926df Ensure that initfini.c is referenced by exit.c. The start up code has to
reference the latter as a return of main() results in a call to exit(3),
so this ensures that the libc constructors are run for statically linked
programs. Fixes PR 37454.
2010-06-28 21:58:02 +00:00
skrll c6d6c8c225 More KNF 2010-06-24 20:46:11 +00:00
skrll d481569999 ANSIfy / KNF. 2010-06-24 20:42:24 +00:00
hannken 1423e65b26 Clean up vnode lock operations pass 2:
VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.
2010-06-24 12:58:48 +00:00
tnozaki 51c2514072 fix cross build breakage mklocale(1).
move inline finction that uses sys/ctype_bits.h to runetype_misc.h.
2010-06-20 02:23:15 +00:00
tnozaki 197b699328 null terminate 2010-06-19 14:48:16 +00:00
tnozaki 3cc4120729 1. refactoring new locale-db(RuneCT10) loading method with mmap(2).
2. remove unused field from _RuneLocale.
3. localeio(CITRUS=no) can read new locale-db(RuneCT10) now.
2010-06-19 13:26:51 +00:00
tnozaki 2a7af30c36 1. split runetype_local.h -> runetype_file.h
and remove renameing _Rune* -> _NBRune* namespace protection.

   FreeBSD traditionaly exposes struct _Rune* in runetype.h
   which included by ctype.h. it may cause conflicting type error
   in our cross build process, former we use renaming namespace
   to avoid this problem, now i reworked more resonable way.

2. merge rune_local.h to runetype_local.h, and remove it.
3. split bsdctype.h -> bsdctype_{file,local}.h
2010-06-13 04:14:56 +00:00
tnozaki 4935b908f2 s/_CTYPE_NUM_CHARS/_CTYPE_CACHE_SIZE/ 2010-06-12 18:02:31 +00:00
tnozaki fd847aaa33 stop to renaming _CTYPE_* -> _RUNETYPE_*. 2010-06-12 05:54:05 +00:00
dholland 4bded2208d After consultation with jdc@, apply the patch from PR 42412 even though
the crash went away -- it's not clear that it went away for any reason
besides by accident.

The change is: use calloc instead of malloc for allocating SCREENs.
2010-06-10 05:24:55 +00:00
pooka 451e6b4882 Version rumpuser ABI with a lightweight mechanism. 2010-06-09 14:08:17 +00:00
pooka 3f4944e6bb Add the ability to specify a preferred address the "map anon memory"
hypercall.
2010-06-09 11:35:36 +00:00
pooka 46ea1019d6 Allow loading the symbols from objects which are not directly mapped
into memory, namely the main object (i.e. map->l_addr is NULL).
2010-06-08 15:32:55 +00:00
wiz e54f45dc8a Fix xref. 2010-06-07 16:37:07 +00:00
wiz e02d784273 Grammar and spacing fixes. 2010-06-07 16:33:45 +00:00
tnozaki 9efec5bce3 1. MB_LEN_MAX switch MD to MI.
2. unfortunately hppa's MB_LEN_MAX is defined incorrectly 6 instead of 32
   so we have to add more setlocale(3) __RENAME func, __setlocale50.
3. move setlocale1.c and setlocale32.c to lib/libc/compat/locale/*
   prepareing for next libc major crunk.
4. bump libc minor version.
2010-06-07 13:52:28 +00:00
pooka 388dad1711 no need to typecast in pathconf anymore 2010-06-07 11:23:07 +00:00
pooka 0e05405bd1 Reenable pathconf now that the retval argument is register_t. 2010-06-07 11:22:36 +00:00
pooka a784ae74af Make retval argument for pathconf a register_t to match VOP_PATHCONF.
This makes the size the same on 64bit archs.  Don't bother bumping
any version, since you'd have explicitly had to jump through some
hoops to use pathconf before.
2010-06-07 11:21:31 +00:00
jruoho 35bff1e486 Remove some leftover .\" comments.
The sysctl variables will be described in sysctl(7).
2010-06-07 07:39:43 +00:00
jruoho 9921e5b526 Build links also for mq_timedreceive(3) and mq_timedsend(3). 2010-06-07 07:26:20 +00:00
jruoho 00b42ad814 Mostly refer to the main page, mq(3), in SEE ALSO. 2010-06-07 07:21:52 +00:00
jruoho dfba418d38 Add mq(3), a manual page for the POSIX message queues. This tries to act as
a short introduction to the rationale and API, noting also some pros and cons.

rmind@: basically ok. Please feel free to adjust, correct, and extend.
2010-06-07 07:11:27 +00:00
dholland 4035b6ee7d Improve wording describing the behavior of the attributes argument, and
add reference to pthread_attr(3), as requested in PR 42871. The text
added is different from but based on a suggestion by Matthew Mondor.
2010-06-07 04:36:34 +00:00
pooka a7bb34b4fd Actually, disable pathconf for a while longer: the retval needs a
little finetuning (not that everyone is jumping right to using it,
but fixing will have to wait until tomorrow, and who knows what
i'll forget during the night and how long it will eventually take).
2010-06-06 23:11:05 +00:00
pooka 1cfb9937ae Pass VOP_PATHCONF to backend file server. inspired by njoly. 2010-06-06 22:46:17 +00:00
pooka aef13c83d0 signal pathconf in the vector of supported ops 2010-06-06 22:44:54 +00:00
tnozaki 0ab294f640 remove unused magic. 2010-06-05 16:37:13 +00:00
jruoho bb1d0e97b1 Fix .Xr; dirent(5) -> dirent(3). 2010-06-04 05:42:24 +00:00
veego 51cdef0f36 Use MAP_FILE|MAP_SHARED instead of MAP_FILE for the flags parameter of mmap(2).
Patch is from martin.

Solves my own PR kern/43346
2010-06-03 12:40:52 +00:00
pooka ae456b5717 Check return value of posix_memalign ... always helpful to not return
garbage memory in case of failure.
2010-06-02 18:15:35 +00:00
tnozaki a07e73ee74 uint8_t -> unsigned char, int16_t -> short. 2010-06-02 16:04:52 +00:00
tnozaki bf280d2720 remove duplicated towctrans internal function. 2010-06-02 15:47:25 +00:00
pooka e3c273abc1 Don't pass "canfail" down to rumpuser_malloc -- there's quite little
we can do with that info way down there.  Instead, pass alignment.
Implement rumpuser_malloc() with posix_memalign().
2010-06-01 20:11:33 +00:00
christos cbd798c94b tidy up memory allocation and don't unnecessarily print "./" before names. 2010-06-01 18:20:26 +00:00
tnozaki d8217122b9 refactoring old locale-db(BSDCTYPE) loading method with mmap(2). 2010-06-01 18:00:28 +00:00
tnozaki 9a35d7972b more split ctype.h -> sys/ctype_inline.h, sys/ctype_bits.h 2010-06-01 13:52:07 +00:00
pooka 9970bb9e64 Support KTHREAD_JOINABLE/kthread_join(). Also fixes earlier bug
where all pthreads were created non-detached.
2010-05-31 23:09:29 +00:00
njoly 7d9c448d51 Consistently use `.Brq Dv XXX' across syscalls man pages, for NAME_MAX
and PATH_MAX.
2010-05-31 12:16:20 +00:00
drochner 5170f0046a another POSIX compliance fix: sigwait(3) should not use errno but
return the error code directly
2010-05-31 11:02:24 +00:00
drochner 690a7f09c9 -fix internal use of sigwaitinfo(2) by sigwait(3): The former returns
the signal number now, as required by POSIX. The latter should just
 return 0 on success. Fixes a mysql problem reported by Kurt Schreiner.
-document the new behavior of sigwaitinfo and sigtimedwait
-retain non-POSIX behavior for NetBSD-5 binary compatibility -- the fix
 would likely not be polled into the .0-branches, and having 5.0.x and
 5.x behave differently would be confusing. Besides that, it was
 documented in the manpage all the time.
2010-05-30 19:31:39 +00:00
tnozaki cdd31057f2 remove redundant guard. 2010-05-30 11:36:12 +00:00
tnozaki cd71bcf609 1. fix build problem CITRUS=no
2. make CITRUS={yes,no} knob friendly with libc/compat.
2010-05-30 08:28:53 +00:00
wiz 82776533ea New sentence, new line. 2010-05-30 07:57:08 +00:00
dholland 2264536172 Note briefly how to avoid the problem where 0 can be a valid successful
return as well as an error. Suggested by Robert Elz in follow up to PR 39392.
2010-05-29 20:32:18 +00:00
pgoyette 2ac5480827 Update libpci for change in pci_find{vendor,product} entrypoint names. 2010-05-25 08:35:47 +00:00
pgoyette 1365824bee Adapt libpci build to include new pci_verbose.c 2010-05-24 20:31:17 +00:00
tnozaki 04cc7786fc rework bulid breakage problem on linux.
ldef.h: s/1<<8/_CTYPE_CACHE_SIZE/
ctype_local.h: use limits.h instead of machine/limits.h
runetype_local.h: don't use HAVE_NBTOOL_CONFIG as evil way.
2010-05-22 18:15:21 +00:00
tnozaki 99f737b9cb fix cross build breakage under linux box, reported by Andreas Gustafsson, thanks!
runetype_local.h: don't include ctype_local.h when toolchain build.
2010-05-22 17:47:25 +00:00
tnozaki b18f206e58 move __mb_len_max_runtime from rune_local.h -> setlocale_local.h. 2010-05-22 13:50:02 +00:00
tnozaki bbed57c2e0 make _locale_impl_t.cache as pointer to maintain easily binary compatibility in future.
no ABI change was made.
2010-05-22 13:15:59 +00:00
tnozaki 32cc8c2e5f rune.h is not public, so merge with rune_local.h. 2010-05-22 08:13:18 +00:00
tnozaki 9763c57c60 rune.h is not public, so merge with rune_local.h 2010-05-22 07:18:43 +00:00
tnozaki 64a7d4fa9a 1. hide _CTYPE_PRIVATE section in ctype.h, move them to private header ctype_local.h.
2. do not use _CTYPE_NUM_CHARS macro to read data from LC_CTYPE(old BSDCTYPE style) database.
   because 1<<CHAR_BIT is MD, so i added MI macro _CTYPE_CACHE_SIZE(1<<8).
3. remove _NB_CACHED_RUNE macro, use _CTYPE_CACHE_SIZE instead.
2010-05-22 06:38:15 +00:00
pooka 33b074be7e add option string for no attribute cache
(foreseeing the odd event I might actually implement one some day)
2010-05-21 11:29:42 +00:00
pooka 335bcd0d3c mention extended attribute ops 2010-05-21 11:20:50 +00:00
pooka 0eb828b571 bump major of libs NEEDING libpuffs 2010-05-21 10:53:41 +00:00
pooka 55a238165a support extended attributes 2010-05-21 10:52:17 +00:00
pooka c3be8a8cd5 * support extended attributes
* bump major due to structure growth
* add some spare space
* remove ABI sillyness
2010-05-21 10:50:52 +00:00
pooka 539062e7e1 adjust for protocol changes 2010-05-21 10:43:07 +00:00
pooka 651aab9fcd Don't try to print the names of messages we don't know about. 2010-05-21 08:46:14 +00:00
pooka 87467ad4b7 * fix typo
* fix "that's not supposed to be there" causing off-by-one in array
* make compile regardless of dev_t size
2010-05-20 13:07:28 +00:00
jruoho 3fe9db0422 Use standard section headers.
Xref vfs(9), which could be slightly more elaborate.
2010-05-20 05:43:54 +00:00
jruoho ebe1a1a443 Use a list with the mutex type. Note, from the standard, that recursive
mutexes should be avoided when condition variables are used.
2010-05-20 05:19:29 +00:00
jruoho f395ce5a84 Use similar markup than in pthread_mutex_init(3) etc. with the initializer
macro. Improve wording slightly.
2010-05-20 04:47:38 +00:00
jruoho 128d933f6d .Fa -> .Fn. 2010-05-20 04:41:11 +00:00
jruoho 6e31029d91 Note the initializer macros. 2010-05-20 04:40:23 +00:00
pooka 9a9b93d40a Initialize "hasdebug" default deterministically. 2010-05-20 00:13:02 +00:00
jruoho 9bfaa34d66 Build links for rest of the pthread_attr(3) functions.
Hopefully I got all of them right in the setlist...
2010-05-19 20:04:42 +00:00
pooka f6e5cf7c15 remove three years out-of-date comment 2010-05-19 12:16:45 +00:00
jruoho 2096402883 Refer to sigevent(3). 2010-05-19 06:44:51 +00:00
jruoho 2e96a91ae5 Remove the paragraph about the used notification mechanism. Instead,
reference sigevent(3). Clarify the file offset discussion.
2010-05-19 06:35:20 +00:00
wiz d9175b29a9 Split "file system" and fix a typo. 2010-05-18 18:05:52 +00:00
pooka b1b7862792 Make it possible to use the scheduler lock as the rumpuser condvar
interlock.  This is applicable in cases where the actual interlock
is the CPU the currently running thread is scheduled on.  Borrowing
the scheduler lock as the mutex mandated by pthread_cond_wait()
does away with need to have an additional mutex.  This both optimizes
runtime execution and simplifies code, as the extra lock typically
lead to quite some trickeries to avoid the dungeon collapsing due
to zaps from the wand of deadlock.
2010-05-18 14:58:41 +00:00
jruoho 51e86d90ef Refer to timeval(3) and only describe the legacy struct timezone here.
Improve markup.
2010-05-18 07:14:18 +00:00
jruoho cd2244d3a2 Xref timespec(3). 2010-05-18 06:31:17 +00:00