christos
f2d2b20d38
PR/52826: Onno van der Linden: Return PRI_NONE for sched_get_priority_m{in,ax}
...
and SCHED_OTHER.
2017-12-16 18:31:36 +00:00
rin
fd569112f9
Revert change made by rev 1.11; now, fmtcheck(3) does not complain about
...
unused trailing arguments as before.
See also discussion on tech-userland:
http://mail-index.netbsd.org/tech-userlevel/2017/12/07/msg011019.html
2017-12-13 06:43:45 +00:00
abhinav
b2e12d0489
Add ctype to the NAME section (as this is a man page for ctype)
...
Remove rest of the names from the NAME section
(These names have their own individual man pages, as such it doesn't make sense
to have their names in the NAME section in this man page as well. Moreover,
we have been trying to fix such man pages so that apropos(1)/whatis(1) are
able to search these man pages. Other examples of such fixed man pages include
memory(3), string(3) etc.)
ok wiz@
2017-12-12 14:13:52 +00:00
bouyer
878cb1cfc5
Fix fallout from hid factorisation:
...
- need to install sys/dev/hid/hid.h for userland
- include it where needed - most of the time in place if usb/usbhid.h
2017-12-10 20:38:13 +00:00
christos
87ad8af409
PR/52801: Kamil Rytarowski: Add missing weak aliases for wcsto{f,d,ld}_l
...
XXX: pullup-8
2017-12-09 22:48:00 +00:00
christos
47abce8f3f
For applications that don't issue their own prompt (like python)
...
don't set unbuffered unless they've already printed the prompt.
This avoids printing the prompt before the application has a chance
to process the input line.
From sjg@
2017-12-08 16:56:23 +00:00
kre
93e0a20756
Revert last 2 updates - these are, of course, not needed at all...
2017-12-08 09:59:26 +00:00
kre
4ebaec0fd9
This time do _lwp_park() timeout unconsting correctly not just compilably.
2017-12-08 09:41:16 +00:00
kre
85d957d42b
Deal with more lwp_park() timestamp unconsting
2017-12-08 09:24:31 +00:00
wiz
dbc6984550
Remove trailing whitespace.
2017-12-08 09:14:36 +00:00
christos
01521b4a47
unconst the timestamp
2017-12-08 03:08:19 +00:00
christos
85bf85b701
make _lwp_park return the remaining time to sleep in the "ts" argument
...
if it is a relative timestamp, as discussed in tech-kern.
XXX: pullup-8
2017-12-08 01:19:29 +00:00
kre
7fec48294c
Fix obvious typo (cut&pasto or whatever) - there's only one value that
...
specifies the number of digits after the decimal point (oh, sorry, the
"radix character") the other specifies the number before...
While here, add a little more info on the effects of using the #n value.
2017-12-07 22:19:17 +00:00
rmind
f24cbc0ab2
libnpf(3): improve the wording, fix and expand some sections.
2017-12-07 00:22:06 +00:00
dholland
6dc0f13680
The list of async-signal-safe functions got moved to sigaction(2).
2017-12-06 16:38:22 +00:00
rin
d2b4f0d1a5
Fix possible use of uninitialized variable in case of WIN32 && !_WIN64.
2017-12-06 14:05:14 +00:00
rin
c084bfdff8
Teach fmtcheck(3) about wint_t, intmax_t, char *, intmax_t *, and wide string
...
arguments. Taken from FreeBSD:
https://svnweb.freebsd.org/base/head/lib/libc/gen/fmtcheck.c#rev181154
2017-12-06 12:32:02 +00:00
rin
41130f53d9
Teach fmtcheck(3) about the ' (thousands separator) flag. Taken from FreeBSD:
...
https://svnweb.freebsd.org/base/head/lib/libc/gen/fmtcheck.c#rev143905
2017-12-06 12:30:27 +00:00
rin
efd7892a37
Teach fmtcheck(3) about the flags a, A, F, G, t, and z. Taken from FreeBSD:
...
https://svnweb.freebsd.org/base/head/lib/libc/gen/fmtcheck.c#rev117014
2017-12-06 12:28:53 +00:00
rin
75399b3dca
Correct oversight of wrong format string with fewer number of arguments than
...
default format string has.
2017-12-06 11:33:34 +00:00
mrg
be18dbc420
normalise some indentation. NFC.
2017-12-01 22:47:06 +00:00
wiz
2daf92edc4
Add riastradh's man pages for sha3 and friends.
...
Commented out since the symbols themselves are not yet public.
2017-11-30 16:00:48 +00:00
riastradh
969998948d
Import SHA-3 code into libc and libkern.
...
No new public symbols in libc, but publishing the symbols is a simple
matter if/when we decide to do so.
Proposed on tech-kern and tech-userlevel with no objections:
https://mail-index.NetBSD.org/tech-kern/2017/11/11/msg022581.html
https://mail-index.NetBSD.org/tech-userlevel/2017/11/11/msg010968.html
2017-11-30 05:47:24 +00:00
ryo
1ee7b8d05d
fix to work
...
* no need to check x29 != NULL. fp may be NULL.
* don't break in-use register x5.
2017-11-28 13:09:05 +00:00
ryo
2b1e7d7ebc
KNF. use tab
2017-11-28 09:06:25 +00:00
maya
a1f7eefb77
use calloc rather than malloc + memset 0
2017-11-27 23:54:28 +00:00
christos
91729e7f3d
Fix various bugs with strfmon:
...
- Avoid out of bounds access for the currency_symbol[3] when the symbol
is shorter (as it happens with the C locale where it is empty)
- Don't compare pointers to NUL, it is not helpful.
- Make the default sep_by_space 1 as suggested in:
https://ftp.gnu.org/old-gnu/Manuals/glibc-2.2.3/html_node/libc_111.html
- Use the correct number of bytes for memmove(3)
XXX: pullup-8
2017-11-27 22:43:07 +00:00
christos
2817b6ef18
Use 16x instead of 4x the amount of space since each wint_t can result in
...
4 bytes of 4 characters ("\ooo") each.
2017-11-27 16:37:21 +00:00
uwe
8a5ddfccec
.Xr makedev 3
2017-11-20 17:03:31 +00:00
skrll
f9ef5aa297
The HPPA architectures (1.1 and 2.0) both define quadruple-word (128-bit)
...
floating point types. Adjust alignment to match.
2017-11-16 13:54:00 +00:00
wiz
5b65709e5e
Remove Tn.
2017-11-13 09:04:57 +00:00
alnsn
5486dd5a65
Use a more efficient data structure for graph peeling.
...
New code is about 50% faster on amd64 and it consumes less memory.
2017-11-11 18:05:31 +00:00
christos
9b7a6414b8
Add O_REGULAR to enforce opening of only regular files
...
(like we have O_DIRECTORY for directories).
This is better than open(, O_NONBLOCK), fstat()+S_ISREG() because opening
devices can have side effects.
2017-11-09 20:30:01 +00:00
joerg
27ef7ea778
Assert that __cxa_atexit is not used with NULL as DSO. Don't use
...
__cxa_atexit directly from atexit, they have different behavior.
2017-11-06 14:26:03 +00:00
christos
2b98159f0b
fix error messages (use __func__, quotes)
...
also differentiate between canonical and non-relative.
2017-11-05 15:33:15 +00:00
kre
6c755bb23a
Be more consistent with how we refer to fopen() - pointed out by wiz@
2017-11-04 08:53:23 +00:00
kre
1a3a8b3401
Some (mostly minor) wording improvements (IMO)
2017-11-04 08:04:40 +00:00
wiz
0858eb46a4
Fix xref. Remove Tn.
2017-11-04 07:59:17 +00:00
kre
1593016b98
Avoid losing a fd (ie: close it) in the (ever so likely) case that the
...
fd exceeds the limits of what can be stored in a FILE (65535).
2017-11-04 07:26:35 +00:00
christos
b4e5b9fac2
Implement nofollow (l) for fopen(3).
2017-11-04 02:49:55 +00:00
kamil
3720ea4f1f
Revert previous on demand.
...
Rationale:
The DSO handle is a required part of the (external) __cxa_atexit interface.
The atexit mapping is an implementation detail and not part of the public
interface. Doing it directly creates UB as it involves casting function
pointers between incompatible types.
-- Joerg
2017-11-02 19:39:33 +00:00
kamil
5919a1817c
Correct handling of __cxa_atexit(a,b,NULL) in libc
...
In the NetBSD implementation and suggested by Itanium C++ ABI, we wrap
the atexit(x) call as __cxa_atexit(x,NULL,NULL).
__cxa_atexit() is an internal function for the usage of C++.
Correct a bug that __cxa_atexit(x,y,NULL) is handled in the same way as
atexit(x) (which is simplified to __cxa_atexit(x,NULL,NULL).
This misbehavior has been detected in the Thread Sanitizer port to NetBSD.
Patch reviewed by <christos>
Sponsored by <The NetBSD Foundation>
2017-11-02 18:37:14 +00:00
wiz
a853e07e30
Remove Tn
2017-10-30 15:49:24 +00:00
wiz
5ab4936e8f
Sort errors.
2017-10-30 15:48:38 +00:00
wiz
918f9ea9bf
Fix Bl argument.
2017-10-30 15:46:38 +00:00
wiz
e347d4a2bc
Remove Tn. Do not split on An lines.
2017-10-30 15:44:29 +00:00
wiz
356694b084
Remove empty Fd. Use minus for return value. End list. Sort SEE ALSO.
2017-10-30 15:43:21 +00:00
abhinav
0754fa7ebe
Fix the escape used for em dash
...
ok wiz@
2017-10-29 06:07:48 +00:00
abhinav
3c9fe72fbc
Add NULL check after doing memory allocation at a couple of places
...
ok christos@
2017-10-27 18:16:09 +00:00
kre
2f85c3d4cc
Replace a line that somehow got lost in the import from tzcode2017c
2017-10-27 08:43:11 +00:00