Commit Graph

13992 Commits

Author SHA1 Message Date
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