roy
50a63ac8d2
KNF.
...
Normalise coding style.
White space police.
Sprinkle some extra braces to make the flow more clear.
No functional changes.
2017-01-06 13:53:18 +00:00
roy
846cb8f380
u_int -> unsigned int, u_int32_t -> uint32_t.
2017-01-06 09:14:07 +00:00
roy
506f84ec9a
Implement ncurses is_pad(3).
...
Correct documentation about is_keypad(3).
2017-01-05 23:15:43 +00:00
roy
433b66d936
Whitespace
2017-01-05 21:42:04 +00:00
roy
4550c5287c
Implement is_term_resized and resize_term(3) ncurses extensions.
...
resizeterm(3) is now a wrapper for resize_term(3).
2017-01-05 21:25:17 +00:00
roy
47cc2fc353
Add the set_escdelay(3) and set_tabsize(3) ncurses extensions.
2017-01-05 20:31:37 +00:00
wiz
e4ec469a39
Fix typo.
2017-01-05 12:35:41 +00:00
wiz
3134e606a6
Whitespace.
2017-01-05 09:46:32 +00:00
wiz
6e0a1cbf88
Use Ev for environment variables.
2017-01-05 09:46:08 +00:00
roy
ffbd31d04d
White space police
2017-01-04 03:51:29 +00:00
roy
c293b9d8ca
Allow C++ to link with all curses parts.
2017-01-04 02:05:23 +00:00
roy
5a86062c02
Add missing man pages for wsyncup.3 and wcursyncup.3
2017-01-03 13:21:40 +00:00
roy
8cf8e1d614
Support 256 colour terms.
...
From: rofl0r <retnyg@gmx.net>
2017-01-03 12:42:06 +00:00
roy
330e363652
Now that we have the initialize_color capability,
...
init_color can be made to work.
From: rofl0r <retnyg@gmx.net>
2017-01-03 12:39:44 +00:00
christos
29343d16d1
set to NULL after releasing to avoid double free.
2017-01-03 00:59:31 +00:00
roy
c247fb6646
Bump libcurses to 7.1 for prior additions.
2017-01-02 12:38:16 +00:00
roy
1369811d4e
Implement POSIX Curses functions immedok(3) and syncok(3).
2017-01-02 10:28:34 +00:00
roy
4da08ba387
Whitespace
2017-01-02 08:44:12 +00:00
maya
038de09f8a
compare to zero, instead of using signbit, and be more specific in comment.
...
-0.0 > 0 is also false. no functional change.
while this is mostly a change to be consistent in style (the rest of the
comparisons aren't done with signbit), it is also a micro-optimization.
with our default compile flags, calls to copysign are libm calls (and a
whole function call!!). this generates more efficient code.
2017-01-01 19:32:14 +00:00
abhinav
db324dcb86
Fix sentences at a couple of places.
...
Reorganize the RETURN VALUES section a bit to improve readability.
Add xrefs to clearerr(3) and ungetc(3) in SEE ALSO.
Bump date.
ok wiz@
2017-01-01 12:39:33 +00:00
roy
6de5f0d137
Implement ncurses extension has_key.
2017-01-01 03:06:06 +00:00
maya
c0f2822a3c
similar to csqrt, spare ourselves a fabsf call. we already check sign
...
later on, use this to our advantage.
No functional change.
2016-12-31 22:54:56 +00:00
roy
a663bc11be
Implement POSIX Curses typeahead function.
2016-12-31 22:47:01 +00:00
maya
43e54dd9fc
csqrt has a branch cut on the negative real axis, and this requires
...
delicacy in order to maintain continuity around it.
we have an initial case to deal with a fairly common case: getting
a real number. Avoid dealing with the branch cut in this case by
checking if the real part is negative.
later, -0.0 < 0 is not met, so instead, test for a negative number
using signbit, so negative zero is also treated as a negative number.
Fixes last part of PR lib/51427: libm issues triggered by py-numpy
ok riastradh
2016-12-31 20:01:15 +00:00
roy
77943ff6ed
Implement POSIX curses use_env function.
2016-12-31 17:46:35 +00:00
maya
03a73f9282
Spare ourselves a fabs call. We already check the sign later.
...
w = r + y*I is the same as w = r because this is the y == 0 case.
no functional change.
2016-12-31 15:33:03 +00:00
roy
2ab1e31d80
Implement ncurses extensions is_leaveok and is_keypad.
...
The former allows the ncurses (and pdcurses) macros getsyx and setsyx
to be implemented, which is needed by a surprising number of applications.
The latter is needed for Python curses support so it doesn't have to dive
into ncurses window structure.
2016-12-31 13:50:16 +00:00
roy
1c3d328353
Add the POSIX filter() function to libcurses.
2016-12-30 22:38:38 +00:00
wiz
1e92e63851
Fix some prototypes.
2016-12-29 23:50:59 +00:00
kamil
383dde7b6a
Reference siginfo(2) for a SIGCHLD signal
...
siginfo(2) describes appropriate signal specific information for SIGCHLD.
Sponsored by <The NetBSD Foundation>
2016-12-29 22:17:51 +00:00
wiz
42d8f555f6
Update prototypes to match current RPC code.
...
Bump date.
2016-12-29 22:07:12 +00:00
wiz
29b4283f3f
Fix asctime_r prototype.
2016-12-29 21:03:51 +00:00
wiz
b52b1cd113
Mention stdarg.h for va_list.
2016-12-29 20:29:30 +00:00
christos
5d7e998696
Make this portable to other OSs
2016-12-29 18:30:55 +00:00
wiz
146c3bb911
Fix typos.
2016-12-27 21:25:12 +00:00
rmind
cbc7bab49c
KNF
2016-12-27 20:32:58 +00:00
christos
52d8bce52a
Add a function to iterate over endpoints
2016-12-27 20:14:07 +00:00
rmind
5e66d73d01
Update libnpf(3) man page.
2016-12-27 17:58:56 +00:00
christos
f75d79eb69
Sync NPF with the version on github: backport standalone NPF changes,
...
which allow us to create and run separate NPF instances. Minor fixes.
(from rmind@)
2016-12-26 23:05:05 +00:00
abhinav
c95a15e71b
Add missing full stop.
2016-12-26 10:16:43 +00:00
abhinav
b2f786d04e
As per the IEEE 1003.1-2008 standard, the range of values for the %S
...
format specifier is [0,60].
2016-12-25 06:37:50 +00:00
maya
177f6a3a05
don't use systm.h header, it's not available to userland.
...
as a side effect, this fixes the evbarm64 build, which was failing due
to a declaration of psize_t physmem in systm.h, while psize_t is
kernel-only.
ok riastradh
2016-12-24 15:23:06 +00:00
abhinav
a4dca42e82
As per C99 the range of values for the %S format specifier is [0,60]
...
rather than [0,61]. The standard has removed mention of double leap seconds.
The standard has give the following rationale in the time.h man page:
"The range [0,60] seconds allows for positive or negative leap seconds.
The formal definition of UTC does not permit double leap seconds, so all
mention of double leap seconds has been removed, and the range shortened
from the former [0,61] seconds seen in previous versions of POSIX."
2016-12-24 05:33:51 +00:00
abhinav
93864c5433
Complete a sentence
...
and replace full stop with a comma at one place as the sentence wasn't finished
2016-12-23 06:01:41 +00:00
abhinav
6672db53ac
Remove trailing comma at the end of the last .Nm entry in the NAME section
2016-12-22 17:39:28 +00:00
abhinav
d52ecd3afc
Grammar fixes at few places
...
Also, don't use .D1 inside .Bd (mandoc -Tlint was complaining)
Remove whitespace at the end of a sentence
2016-12-22 17:27:02 +00:00
christos
116a2064fe
PR/50228: Christian Groessler: fix bzero(ptr, 0) on ppc. Check for 0 length
...
before jumping to cb_memset like memset does.
2016-12-19 14:30:23 +00:00
abhinav
af4d0016d3
Use markup for errno
...
Also remove a .Pp before .Bl while there
2016-12-19 07:48:35 +00:00
abhinav
fc41d23c04
Be consistent in using process' (vs process's).
2016-12-19 07:17:45 +00:00
abhinav
490a78e58c
Fix sentence.
2016-12-19 06:45:29 +00:00