df052c2a | 02-Apr-2021 |
Sascha Wildner <saw@online.de> |
Fix typo in various licenses: merchantibility -> merchantability |
8b27a75c | 01-Apr-2021 |
Sascha Wildner <saw@online.de> |
fcntl.2: Fix typo in .Dd |
95347633 | 31-Mar-2021 |
Matthew Dillon <dillon@apollo.backplane.com> |
kernel - More fixes to libc's uname
* Remove no no-longer-used buf[] (and fix syntax error during compilation).
* Do not parse garbage data in buffers in case the sysctls fail. This would not h
kernel - More fixes to libc's uname
* Remove no no-longer-used buf[] (and fix syntax error during compilation).
* Do not parse garbage data in buffers in case the sysctls fail. This would not have been fatal anyway since we always ensure that the buffers are zero-terminated, but it wasn't clean either. Clean it up.
* Use the proper name->arrayname for a pointer to the array instead of &name->arrayname. We could also use &name->arrayname[0] but just stick with the first method.
Pointed-out-by: dan
show more ...
|
631c21f2 | 31-Mar-2021 |
Matthew Dillon <dillon@apollo.backplane.com> |
kernel - Adjust varsym API to match manual page, remove from uname
* Adjust the varsym system call to match the manual page. It now returns 0 on success instead of the length, and returns -1 wi
kernel - Adjust varsym API to match manual page, remove from uname
* Adjust the varsym system call to match the manual page. It now returns 0 on success instead of the length, and returns -1 with an errno of EOVERFLOW if the supplied buffer is too small.
* The uname*() code in libc actually assumed 0 would be returned on success, and thus never actually allowed varsym overrides. Just remove the functionality (that nobody uses) entirely.
Reported-by: dan
show more ...
|
c022ba7f | 30-Mar-2021 |
Matthew Dillon <dillon@apollo.backplane.com> |
kernel - Add fcntl(F_GETPATH) (3)
* cache_fullpath() limits the result to MAXPATHLEN, but we must still adjust the error code to match the manual page and netbsd. |
4a80ad8d | 30-Mar-2021 |
dan <1338minus1@protonmail.com> |
Modify fcntl.2 manpage to include informations about F_GETPATH |
ca859ede | 14-Mar-2021 |
zrj <rimvydas.jasinskas@gmail.com> |
libstand: Move H and L macros were they are used.
Avoid possible issues where plain "L" is used for unicode strings. |
373f159b | 14-Mar-2021 |
zrj <rimvydas.jasinskas@gmail.com> |
<sys/endian.h>: Unify _QUAD_*WORD macros.
Taken-from: NetBSD |
ab5dc9ac | 08-Mar-2021 |
Sascha Wildner <saw@online.de> |
libpthread: Implement pthread_getname_np() and pthread_setname_np().
Varieties of pthread_get_name_np() and pthread_set_name_np() that return an integer (0 or error number).
These are only used for
libpthread: Implement pthread_getname_np() and pthread_setname_np().
Varieties of pthread_get_name_np() and pthread_set_name_np() that return an integer (0 or error number).
These are only used for debugging but it looks like some ports want them.
I took some of the documentation from FreeBSD.
Reported-by: zrj
show more ...
|
58346d75 | 08-Mar-2021 |
Sascha Wildner <saw@online.de> |
libpthread: Separate the MLINKS better. |
29dc1b77 | 01-Mar-2021 |
Sascha Wildner <saw@online.de> |
utimensat.2: Fix the description of EINVAL.
Reported-by: zrj Taken-from: FreeBSD |
9693041a | 28-Feb-2021 |
Sascha Wildner <saw@online.de> |
liblzma: Add a liblzma.pc file for the benefit of dports.
Reported-by: zrj |
9736b358 | 25-Feb-2021 |
zrj <rimvydas.jasinskas@gmail.com> |
libc: Attempt to execute new atexit() destructors during __cxa_finalize().
Some c++ programs might and do register new destructors from other destructors. Try to handle such cases by relooping sc
libc: Attempt to execute new atexit() destructors during __cxa_finalize().
Some c++ programs might and do register new destructors from other destructors. Try to handle such cases by relooping scan upto CXA_DTORS_ITERATIONS times (like what _thread_finalize() does) if new destructors get added even if that will not strictly match LIFO order.
show more ...
|
941642e8 | 17-Feb-2021 |
Aaron LI <aly@aaronly.me> |
fexecve(2): Return ENOENT if exec a script opened with O_CLOEXEC
If a script (i.e., interpreter file) is opened with the O_CLOEXEC flag, it would be closed by the time the interpreter is executed, a
fexecve(2): Return ENOENT if exec a script opened with O_CLOEXEC
If a script (i.e., interpreter file) is opened with the O_CLOEXEC flag, it would be closed by the time the interpreter is executed, and then the executation would fail. So just return ENOENT from fexecve(2). This behavior aligns with Linux's.
See Linux's fexecve(2) man page.
See also: https://bugzilla.kernel.org/show_bug.cgi?id=74481
Thank dillon for implementing the holdvnode2() function to obtain the fileflags together with the fp from fd.
show more ...
|
337acc44 | 17-Feb-2021 |
Aaron LI <aly@aaronly.me> |
Implement the fexecve(2) system call
The fexecve(2) function is equivalent to execve(2), except that the file to be executed is determined by the file descriptor fd instead of a pathname.
The purpo
Implement the fexecve(2) system call
The fexecve(2) function is equivalent to execve(2), except that the file to be executed is determined by the file descriptor fd instead of a pathname.
The purpose of fexecve(2) is to enable executing a file which has been verified to be the intended file. It is possible to actively check the file by reading from the file descriptor and be sure that the file is not exchanged for another between the reading and the execution.
See https://pubs.opengroup.org/onlinepubs/9699919799/functions/fexecve.html
This work is partially based on swildner's patch and FreeBSD's implementation (revisions 177787, 182191, 238220).
XXX: We're missing O_EXEC support in open(2).
Reviewed-by: dillon
show more ...
|
78e2ba73 | 17-Feb-2021 |
Aaron LI <aly@aaronly.me> |
execve(2): Minor markup improvements |
f01ed875 | 23-Jan-2021 |
Aaron LI <aly@aaronly.me> |
execve.2: Document reopening of standard descriptors
Meanwhile, add the STANDARDS section and document the current standard status. The reopening of standard descriptors is specified in IEEE Std 10
execve.2: Document reopening of standard descriptors
Meanwhile, add the STANDARDS section and document the current standard status. The reopening of standard descriptors is specified in IEEE Std 1003.1-2001/Cor 1-2002, item XSH/TC1/D6/15.
Obtained-from: FreeBSD (r101480)
show more ...
|
a6dbcf28 | 18-Feb-2021 |
Aaron LI <aly@aaronly.me> |
libthread_xu: Add clock_nanosleep symbols to pthread.map
Although pthread.map is currently unused (commented in the Makefile), add 'clock_nanosleep' and '_clock_nanosleep' symbols to it anyway. |
cfbcdad7 | 18-Feb-2021 |
Sascha Wildner <saw@online.de> |
libthread_xu: Remove some unused declarations from thr_private.h. |
9e4cdec7 | 17-Feb-2021 |
Sascha Wildner <saw@online.de> |
libc: Change microseconds args of ualarm() and usleep() to useconds_t.
It's a standard type and more expressive.
No functional change, unsigned int becomes uint32_t. |
f7e13d93 | 16-Feb-2021 |
Sascha Wildner <saw@online.de> |
nanosleep.2: Mark up defines with .Dv |
146d6051 | 06-Feb-2021 |
Sascha Wildner <saw@online.de> |
libkinfo/Makefile: Oops, fix typo in the MLINKS. |
80c39d10 | 05-Feb-2021 |
Sascha Wildner <saw@online.de> |
kinfo.3: Mention cputime_pcpu_statistics() and route_pcpu_statistics(). |
0b8a519e | 25-Jan-2021 |
Sascha Wildner <saw@online.de> |
getipnodebyname.3: Fix missing whitespace. |
cea736a1 | 23-Jan-2021 |
Sascha Wildner <saw@online.de> |
Clean up markup of AF_INET* in a few manual pages. |