christos
baf7db8b0f
rename to regnsub, regsub is a very popular name.
2016-01-14 21:45:01 +00:00
christos
f7bf81e728
stravis, reg{,a}sub
2016-01-14 20:42:29 +00:00
christos
4c892c323a
add reg{,a}sub
2016-01-14 20:41:47 +00:00
christos
607e9de17b
add stravis(3) from OpenBSD
2016-01-14 20:41:23 +00:00
christos
26492c8912
switch to the external version of libmalloc
2016-01-13 21:57:26 +00:00
christos
caa46aef53
fix lint build
2016-01-11 01:34:39 +00:00
jdc
b120305be0
Clear the "forced" flag after updating a line, otherwise we'll always do
...
complete line redraws.
2016-01-10 08:11:06 +00:00
jdc
dfb25fd120
Remove extra new line in debugging output.
2016-01-09 19:05:13 +00:00
jakllsch
d804fd3f29
Fix buffer-overrun/off-by-one in hid_set_data(3).
...
(The tests only detected this as a problem on ARMv7, not i386.)
2016-01-07 19:49:45 +00:00
jakllsch
f9e98a931a
Don't crash when the device's HID Report Descriptor Pops from an empty stack.
2016-01-07 16:10:49 +00:00
jdc
210cd3d8d9
Display force flag in debug print.
2016-01-07 07:37:08 +00:00
jdc
3c6f106b95
Add missing new line in debug print.
2016-01-07 07:36:35 +00:00
christos
8ec658f57a
- Change LDADD/DPADD in library dependencies to LIBDPLIBS
...
- Fix some LDADD abuse and remove useless dependencies
- include <bsd.init.mk> in the right place where appropriate
From Rin Okuyama
2016-01-05 13:07:46 +00:00
christos
10deb451c0
minor type fixes.
2016-01-02 21:58:10 +00:00
jakllsch
aaf9a4516d
Teach hid_parse_usage_in_page() how to understand hex literals, in
...
addition to the usual table lookup.
2016-01-02 01:24:44 +00:00
jakllsch
f5863ab3d2
Fix round-trip of hid_usage_in_page(hid_parse_usage_in_page()) when
...
the usage is a catch-all format string.
This should allow usbhidctl(1) to understand an item argument of
"Button:Button_65535".
2016-01-02 01:04:15 +00:00
jakllsch
c8b0c3452c
Fix hid_get_data() for negative or 32-bit report data.
2016-01-01 22:59:12 +00:00
jakllsch
f74c09dad4
Alphanumeric is spelled Alphanumeric
2016-01-01 19:14:45 +00:00
jakllsch
f8ec6d43b4
compare pointer against NULL instead of 0
2015-12-31 20:35:21 +00:00
christos
3f38d7cad6
Move blacklistd later now that it depends on libpthread (From Rin Okuyama)
2015-12-31 20:11:32 +00:00
dholland
4f3e8539c0
When computing relative months, use mktime() directly and don't call
...
our Convert(). And check it for failure. This fixes three sets of
problems:
(1) depending on the passed-in value of Timezone it might
disassemble the time in one timezone and reassemble it in
another, causing mysterious offsets of a few hours;
(2) with the previous set of changes to this file, Convert() fails
if it ends up normalizing a date, so e.g. going three months
forward from March 31 would fail;
(3) previously if Convert() failed we passed -1 on to DSTcorrect(),
which made a mess.
PR 50574.
2015-12-31 10:52:06 +00:00
dholland
2213a9c409
Always use localtime_r; I don't think any of this code is tripping
...
itself up, but it's still good practice for library functions to not
trash static libc state. Might be relevant to PR 50574.
2015-12-31 10:31:07 +00:00
dholland
4c7b8eec63
Reformat grammar part according to my standards for yacc grammars.
2015-12-31 09:12:57 +00:00
wiz
b02bef0817
Fix xrefs.
2015-12-30 16:51:31 +00:00
plunky
ea8091c08e
point to more information about clock_id
2015-12-30 16:47:24 +00:00
christos
841722be1c
Add printf/scanf man pages from FreeBSD
2015-12-29 17:55:23 +00:00
christos
420437aa3e
Add sqrtl
2015-12-29 16:57:35 +00:00
wiz
ee3b5f656a
Fix typo, from FreeBSD.
2015-12-26 10:34:36 +00:00
christos
64bdb50ef0
add fenv for m68k
2015-12-24 14:12:12 +00:00
christos
63aea4bd5b
Add mips fenv.c (From FreeBSD)
2015-12-21 17:02:02 +00:00
christos
161588a5e8
Powerpc fenv.c from FreeBSD
2015-12-20 16:24:25 +00:00
christos
bee41132a3
PR/50552: Kyle Amon: RFC3493 section 6.1 wants us to accept non-dotted-quad
...
INET4 addresses.
XXX: pullup-7
2015-12-14 22:07:37 +00:00
ozaki-r
fa956bf5d1
KNF
2015-12-14 03:49:54 +00:00
christos
6ddc858cb0
mention ip6addrctl
2015-12-13 14:54:17 +00:00
christos
1e3e3fab0f
Implement the address selection policy; from FreeBSD
2015-12-13 02:02:59 +00:00
wiz
7e13424c5b
Whitespace nit.
2015-12-12 23:55:42 +00:00
nros
33961e7b90
Add manpage to the fma function in libm.
...
The manpage is taken from the FreeBSD project since the fma implementation is
based on the one in FreeBSD.
2015-12-12 19:05:45 +00:00
joerg
69a50ce4a2
Counting from 0 to n-1 can go wrong badly, if n is unsigned and zero and
...
the counter variable is not of a type larger than n. Fixes PR 50490.
2015-12-11 21:22:57 +00:00
wiz
f36df50d9f
Markup improvements.
2015-12-10 21:32:35 +00:00
wiz
d7f847e7d4
Fix date.
2015-12-09 08:30:03 +00:00
gson
07d2388506
unbreak the build
2015-12-08 16:53:27 +00:00
christos
a25476cdad
PR/50506: Tobias Nygren: kqueue(2) lacks EV_DISPATCH/EV_RECEIPT support
2015-12-08 14:52:06 +00:00
christos
8d14d38c26
If we did not setup the tty, don't reset it.
2015-12-08 12:57:16 +00:00
christos
a2993d741e
Only reset the terminal if we have a tty (Boris Ranto)
2015-12-08 12:56:55 +00:00
christos
a40b6ba18c
more changes I forgot to commit
2015-12-08 12:51:21 +00:00
christos
5fd02f85b5
preserve a copy of the tm so we can check later.
2015-12-08 12:51:04 +00:00
pgoyette
c423c59d2d
Update to match reality. For these functions, we still try the system
...
call first, and only fall back to /dev/clockctl if the system call
fails.
2015-12-07 23:20:57 +00:00
christos
5e2a9cf1aa
- Add support for "midnight" "noon", dawn etc.
...
- Add validation to date/time strings by checking that mktime did not change
the fields of struct tm from the ones requested
- Allow the format "year monthname day".
From kre
2015-12-07 20:55:49 +00:00
christos
640422f86c
Fix west australia offset, from kre
2015-12-06 14:43:59 +00:00
christos
772b3284c4
It is wrong to -I/usr/include/ssp
2015-12-03 13:11:45 +00:00
christos
a08e968bd0
PR/44915: Havard Eidnes:
...
- Convert NS_NOTFOUND to EAI_NONAME instead
of EAI_NODATA which more inline with what other OS's do.
- Convert NO_DATA to NS_NOTFOUND since there is no equivalent mapping
for nsswitch (perhaps we could add one so what we could recover the exact
error and return EAI_NODATA?)
- If we end up following a CNAME chain that does not find any data return that
instead of internal error.
XXX: pullup-7
2015-12-02 18:09:53 +00:00
wiz
374d132d42
Drop trailing whitespace.
2015-11-29 21:38:10 +00:00
pgoyette
121d6f085a
Initial documentation of the internal syscalls that implement the librt
...
posix semaphores. As requested in PR kern/37427
XXX Feel free to expand this page!
2015-11-29 06:10:01 +00:00
plunky
5197ec91c8
fix spelling Multiplexor->Multiplexer
2015-11-28 07:47:30 +00:00
wiz
a1d408828c
Sort sections. Mark up NULL. End Bl with El.
2015-11-26 09:48:21 +00:00
christos
600fe0a3fe
fix memory leaks (from Rin Okuyama)
2015-11-26 01:05:08 +00:00
christos
f5cb16e708
Always copy the area buffer, even when the length was the same
...
(from Rin Okuyama)
2015-11-26 01:03:22 +00:00
christos
55be0c146d
Fix documentation inconsistencies, and add some clarifications (from kre)
2015-11-26 01:00:54 +00:00
christos
51dbeaccf4
Patch from kre:
...
- fix missing/inconsistent abbreviations
- set dst only if we are using localtime.
- properly check for errors where there were missing checks
- handle errno properly including saving and restoring.
2015-11-26 01:00:02 +00:00
christos
f464a786c5
From PR/50092:
...
- handle calling _ti_readterm with an existing initialized terminal
- simplify free code
Also:
- fix an inconsistency in userdefs count computation
2015-11-25 19:13:49 +00:00
christos
30fc0caf54
We have the max length; use snprintf.
2015-11-25 18:46:59 +00:00
christos
db71acfd71
PR/50092: Rin Okuyama: Fix memory leak.
2015-11-25 18:46:24 +00:00
christos
7ddef8633d
PR/50092: Fix memory leak.
2015-11-25 18:38:21 +00:00
christos
7099a15c75
PR/50092: don't leak screen on multiple setterms.
2015-11-24 01:59:32 +00:00
christos
e804370940
fix ti_puts prototype
2015-11-23 22:35:28 +00:00
kamil
43589aae40
Note to update major of libpanel(3) for new major of curses(3)
2015-11-22 04:56:00 +00:00
kamil
15fb689c63
Plug-in libpanel(3): Z-order for curses windows
2015-11-22 04:44:30 +00:00
kamil
51fc1f0d9d
Specify path of a local internal header of libpanel
2015-11-22 04:30:33 +00:00
kamil
93a51714f2
Set LIBDPLIBS in libpanel for the required curses dependency
2015-11-22 04:26:14 +00:00
kamil
60586773ca
Set the INCSDIR value of panel.h to /usr/include
2015-11-22 04:23:32 +00:00
kamil
71ae6a01f6
Define man page links of the libpanel functions
2015-11-22 04:21:39 +00:00
kamil
596a81a358
Update the list of libpanel man pages
2015-11-22 04:16:22 +00:00
pgoyette
2904172c27
Remove duplicated 'i' from list of numeric formats
2015-11-19 10:03:26 +00:00
wiz
09534ff4a3
Bump date for previous.
2015-11-19 07:03:13 +00:00
christos
14fcefd52e
Introduce a HASH_BSIZE macro to return the blocksize; in the 64K case this
...
returns 0xffff to avoid overflow. This is used where sizes are stored.
2015-11-18 18:22:42 +00:00
pgoyette
9d449a8fd8
Update RETURN VALUE to match reality and POSIX
2015-11-18 13:19:52 +00:00
christos
60aa2a0eb6
Account for the -1 hack to fit 0x10000 in a short in hash_page.c
2015-11-18 13:00:46 +00:00
christos
057be2c9f2
If MAX_BSIZE == hashp->BSIZE (65536) then it does not fit in a short, and
...
we end up storing 0... This means that every entry needs a page. We store
MAX_BSIZE - 1 here, but it would be better to always store (avail - 1) here
so that we don't waste a byte and be consistent.
2015-11-18 00:23:39 +00:00
christos
8b926f831a
PR/50441: Manuel Bouyer: hash seq enumeration skips keys on big data.
...
XXX: pullup-7
2015-11-17 20:19:55 +00:00
christos
53ba0e3d35
revert 0b documentation.
2015-11-13 16:00:32 +00:00
christos
50ccfe1eab
Generalize the test, compare on the protocol semantics instead of the name
...
since it could be udp6...
2015-11-13 15:23:17 +00:00
christos
6cd5630e13
Do proper accounting for the extra -1 slot. Perhaps this is too confusing
...
and it would be better to just access the array with [fd + 1] instead?
2015-11-13 15:22:12 +00:00
tron
25c8e9abea
Remove now unnecessary cast.
2015-11-13 11:43:26 +00:00
tron
7655e3065e
Don't try to use listen(2) on a UDP socket which will always fail.
...
Previously this was not a problem because the return value of listen(2)
was ignored. With this fix amd(8) no longer fails to start with the
error message "cannot create rpc/udp service".
TL;DR: Make amd(8) work again
2015-11-13 11:23:08 +00:00
tron
65a6071730
Avoid broken state if realloc(3) fails.
2015-11-13 10:43:32 +00:00
wiz
455c3673bc
Family is singular, so use singular form of verb.
2015-11-13 09:56:27 +00:00
wiz
594b3ba9a8
Remove trailing whitespace.
2015-11-13 09:50:31 +00:00
christos
05dbf82446
consistency fixes.
2015-11-12 17:51:05 +00:00
christos
6ea48155ff
Now that our source tree has binary constants, recognize them.
2015-11-12 17:30:03 +00:00
christos
f5dda10488
fix compilation/lint
2015-11-10 20:56:20 +00:00
christos
9a91ff6ff5
CID 1338520: Check NULL
...
CID 1338521: Fix error (realloc returns different pointer)
2015-11-10 18:11:05 +00:00
christos
aa158b270c
CID 1338517: Check negative returns
2015-11-10 18:08:05 +00:00
christos
69deaff196
CID 1338515: Make it clear that the pfd variable can't be NULL
2015-11-10 18:06:53 +00:00
christos
5d9565aab9
CID 1338513: Check listen(2) return
2015-11-10 18:01:16 +00:00
christos
ab2f8d0338
fix return type
2015-11-09 15:12:12 +00:00
christos
2a964e6106
Add debugging for pollfd
2015-11-08 19:30:53 +00:00
christos
6821cf5fc4
Only do the compat cruft if we are compiling libc.
2015-11-08 02:46:53 +00:00
joerg
aae634b518
Soft-float support for rounding mode is currently not thread-safe, which
...
is not acceptable. Decision should be made on whether full fenv.h
support is desirable and then fix this appropiately.
Math functions (both libc and libm) should not touch errno, this creates
unnecessary problems for compilers.
2015-11-08 02:20:26 +00:00
christos
245e5bc63c
initialize revents too.
2015-11-07 23:17:09 +00:00
christos
df8f5914dc
PR/50408: Pedro Giffuni: Provide a way for rpc to use poll(2) instead of
...
select(2), and the linux svc_pollfd and svc_maxpollfd members. Our select(2)
implementation does not suffer from the FD_SETSIZE limitation so this is
not turned on by default.
2015-11-07 23:09:20 +00:00