Commit Graph

17831 Commits

Author SHA1 Message Date
christos
e09cabee76 args are flipped. 2015-09-25 19:27:31 +00:00
christos
a94376db50 use provide KERN_PROC_PATHNAME in PROC_ARGS. 2015-09-25 19:18:28 +00:00
christos
c09ba22ef4 Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.
2015-09-25 11:39:08 +00:00
christos
dc1fa8fa85 we always build librtld_db and libproc. 2015-09-25 11:35:05 +00:00
martin
2f0225ffc2 librtld_db depends on libproc, so conditionalize it as well 2015-09-25 10:08:35 +00:00
martin
e662b1ba49 libproc depends on libctf, so conditionalize it with the same condition 2015-09-25 07:41:53 +00:00
christos
46e2ed0d2c make dtrace follow libproc. 2015-09-24 18:37:33 +00:00
christos
85dc0057a4 Hello lint. 2015-09-24 15:30:39 +00:00
christos
58ad14e816 Hook up libproc and librtld_db into the build 2015-09-24 14:48:36 +00:00
christos
80a7733395 Add kinfo_getvmmap from FreeBSD 2015-09-24 14:39:20 +00:00
christos
1ede8275d7 - fix various leaks on error
- don't use the wrong error variable in switch
- always set the error return code
- return consistent errors when the input data cannot be handled.
2015-09-22 16:16:02 +00:00
christos
525756d35c be more forgiving, and don't abort on unexpected errors. 2015-09-22 16:15:08 +00:00
christos
b350f7a434 Handle herrors properly so that postfix can return 4XX codes when appropriate.
Pointed out by Viktor Dukhovni.
2015-09-22 14:46:09 +00:00
joerg
605a3a0b27 Drop .proc. It is ignored by GNU as anyway. 2015-09-22 13:27:13 +00:00
joerg
7cd266968a Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64. 2015-09-22 13:26:14 +00:00
pooka
bc0dc0b26e Add more compat defs for code compiled for !NetBSD targets.
At least GNU Hurd lacks MAXHOSTNAMELEN/MAXPATHLEN/PATH_MAX, so make sure
those have some arbitrary semi-sane values.

from Robert Millan in PR misc/50166, with some modifications from myself
2015-09-21 21:50:16 +00:00
pooka
6a501c9863 Fix typos to match values from rumpuser_config.h
from Hajime Tazaki via rumpkernel-users
2015-09-18 10:56:25 +00:00
christos
b573611377 move libctf after the barrier since it depends on libz 2015-09-17 02:00:33 +00:00
he
3c48f5cbbf Add entry for nexttowardf(3) and a link for the function name.
Bump manual page date.
2015-09-13 10:58:30 +00:00
wiz
46a774636f Fix typo. 2015-09-13 10:46:41 +00:00
he
a9e1b0780a Add entries for rintl(3) and the nearbyint functions, and
make manual page links to the new functions.
Bump manual page date.
2015-09-13 09:46:30 +00:00
christos
aa52694f67 use the unsigned char version of the input char in all cases "cap[uc]" to
avoid accessing cap[negative], found by Elliott Hughes
2015-09-12 19:08:47 +00:00
christos
ebe26a98ee namespace protect allocaddrinfo 2015-09-10 14:05:06 +00:00
wiz
6c66f8e126 Bump date for previous. 2015-09-10 12:30:08 +00:00
christos
37cb794041 mke allocaddrinfo static. 2015-09-10 11:33:27 +00:00
he
84825b10fa Document frexpl() now that we have it as well. 2015-09-10 08:28:54 +00:00
ozaki-r
0cea365c35 Include several libc functions in rump.ping6
We need getaddrinfo, getifaddrs, if_indextoname and if_nametoindex
in addition to getnameinfo.
2015-09-09 10:06:05 +00:00
dholland
3f3a74a05e Apply patch in PR 45391 from Yui NARUSE: generate HUGE_VAL rather than
-HUGE_VAL for 0^negative. No objection after asking nearly two years
ago if I shouldn't just commit it.
2015-09-08 05:23:31 +00:00
joerg
53ebe24369 Constify set_field_buffer. 2015-09-07 15:50:49 +00:00
mrg
20f519c75f add a bunch of functions found in <stdio.h> that weren't listed here.
(this list may still be incomplete.)
2015-09-06 04:20:50 +00:00
pgoyette
04194d2b38 English grammar nit: there's only one function described in this man page 2015-09-06 03:10:50 +00:00
dholland
110c72e16b Improve the short description. 2015-09-06 01:37:35 +00:00
dholland
87aa30da64 SEE ALSO fmemopen(3) 2015-09-06 01:36:21 +00:00
dholland
eba062b188 Mention fmemopen(). 2015-09-06 01:35:34 +00:00
christos
33eb4d867d PR/50195: Henning Petersen: Incorrect check in getnameinfo_link. 2015-09-03 15:01:19 +00:00
jnemeth
14a099927b PR/49641 - Henning Petersen -- wordo 2015-09-03 04:05:38 +00:00
kamil
1c79b1c709 ANSIfy getopt(3) - this is the REPLACE_GETOPT version from getopt_long(3)
For the reference, this version still passes the current set of ATF tests
for the getopt(3) function.

This version is by default unused.
2015-09-01 19:39:57 +00:00
ozaki-r
3296ce621c Fix rump.ndp -I options by rump-ifying if_nametoindex(3)
From s-yamaguchi@IIJ
2015-09-01 09:54:34 +00:00
kamil
596fd5662e Constness correction for the getopt(3) function under REPLACE_GETOPT
Use the __UNCONST() macro, which is used in the other parts for the same
argument nargv, but under the !REPLACE_GETOPT namespace.
2015-09-01 01:28:17 +00:00
joerg
e78620fb9b Don't unconditionally pass MLIBDIR via CPPFLAGS. Drop now dead branch. 2015-08-28 11:45:02 +00:00
pooka
01d7ebdd80 Fix PTHREAD_FOO_INITIALIZER for C++ by not using volatile in the relevant
pthread types in C++ builds, attempt 2.

The problem with attempt 1 was making assumptions of what the MD
__cpu_simple_lock_t (declared volatile) looks like.  To get a same type
except non-volatile, we change the MD type to __cpu_simple_lock_nv_t
and typedef __cpu_simple_lock_t as a volatile __cpu_simple_lock_nv_t.
IMO, __cpu_simple_lock_t should not be volatile at all, but changing it
now is too risky.

Fixes at least Rumprun w/ gcc 5.1/5.2.  Furthermore, the mpd application
(and possibly others) will no longer require NetBSD-specific patches.

Tested: build.sh for i386, Rumprun for x86_64 w/ gcc 5.2.

Based on the patch from Christos in lib/49989.
2015-08-27 12:30:50 +00:00
pooka
1dfc153377 Remember that dlsym() tends to fail on PowerPC during init (or at least
tended), so call rumphijack_dlsym() instead to be safe.
2015-08-25 13:50:19 +00:00
pooka
2d85d43b0f Revert 1.14 now that the arduous task of fixing rumphijack to allow
mmap() in early init has been completed.
2015-08-25 13:46:23 +00:00
pooka
4e9c298177 allow mmap() to be called before init runs 2015-08-25 13:45:00 +00:00
wiz
89df855eb5 Update for v1.10: use '(*)' instead of '#' as dagger replacement.
dholland finds the '#' unintuitive and hard to read.
2015-08-22 14:04:54 +00:00
christos
372af8af4b This is not needed anymore. 2015-08-21 06:56:35 +00:00
kamil
3bff2c862b Minor alterations to reallocarr(3)
Add comment about division.
Mark error branches with __predict_false().
Reduce one branch with the OR trick.
2015-08-20 22:27:49 +00:00
joerg
b7742922d5 Fix portability. 2015-08-20 20:08:04 +00:00
pooka
71859f7093 In rumprun mode on ARM, don't build syscall or signal code into libc.
(like on x86)
2015-08-20 16:13:40 +00:00
christos
fa1a248aa9 Generate ioconf.h automatically.
XXX: still dup of KERN.ioconf here
2015-08-20 12:24:04 +00:00