935b8dd2 | 18-Jan-2021 |
Aaron LI |
<sys/sysmsg.h>: Add missing copyright and license header |
86ccdacb | 17-Jan-2021 |
Aaron LI |
Implement clock_nanosleep(2) system call * Extend the nanosleep1() function in kern_time.c to support the clock_nanosleep(2) system call. Add {kern,sys}_clock_nanosleep() functi
Implement clock_nanosleep(2) system call * Extend the nanosleep1() function in kern_time.c to support the clock_nanosleep(2) system call. Add {kern,sys}_clock_nanosleep() functions and update kern_nanosleep() accordingly. * Add clock_nanosleep() syscall to syscalls.master and regenerate syscall-related files. * Update libc symbols with the new syscall. * Add clock_nanosleep() warpper in libthread_xu. * Update nanosleep.2 man page to describe clock_nanosleep(). * Update <time.h> and bump __DragonFly_version. This work is loosely based on the FreeBSD implementation: https://reviews.freebsd.org/rS315526 This clock_nanosleep(2) syscall passed all tests in the Open POSIX Test Suite [0]: conformance/interfaces/clock_nanosleep/1-1: execution: PASS conformance/interfaces/clock_nanosleep/1-2: execution: PASS conformance/interfaces/clock_nanosleep/1-3: execution: PASS conformance/interfaces/clock_nanosleep/1-4: execution: PASS conformance/interfaces/clock_nanosleep/1-5: execution: PASS conformance/interfaces/clock_nanosleep/2-1: execution: PASS conformance/interfaces/clock_nanosleep/2-2: execution: PASS conformance/interfaces/clock_nanosleep/2-3: execution: PASS conformance/interfaces/clock_nanosleep/3-1: execution: PASS conformance/interfaces/clock_nanosleep/4-1: execution: PASS conformance/interfaces/clock_nanosleep/5-1: execution: PASS conformance/interfaces/clock_nanosleep/6-1: execution: PASS conformance/interfaces/clock_nanosleep/9-1: execution: PASS conformance/interfaces/clock_nanosleep/8-1: execution: PASS conformance/interfaces/clock_nanosleep/10-1: execution: PASS conformance/interfaces/clock_nanosleep/11-1: execution: PASS conformance/interfaces/clock_nanosleep/13-1: execution: PASS conformance/interfaces/clock_nanosleep/15-1: execution: PASS [0] Open POSIX Test Suite: http://posixtest.sourceforge.net/ Reviewed-by: swildner, dillon, tuxillo, zach
show more ...
|
af23a4c2 | 18-Jan-2021 |
Aaron LI |
nanosleep(2): Return EINVAL if tv_sec < 0 (POSIX-compliant) When the requested sleep interval is negative, return EINVAL. This behavior is the same as Linux and makes our nanosleep(2) p
nanosleep(2): Return EINVAL if tv_sec < 0 (POSIX-compliant) When the requested sleep interval is negative, return EINVAL. This behavior is the same as Linux and makes our nanosleep(2) pass all tests in the Open POSIX Test Suite [0]. conformance/interfaces/nanosleep/1-1: execution: PASS conformance/interfaces/nanosleep/1-2: execution: PASS conformance/interfaces/nanosleep/1-3: execution: PASS conformance/interfaces/nanosleep/2-1: execution: PASS conformance/interfaces/nanosleep/3-1: execution: PASS conformance/interfaces/nanosleep/3-2: execution: PASS conformance/interfaces/nanosleep/4-1: execution: PASS conformance/interfaces/nanosleep/5-1: execution: PASS conformance/interfaces/nanosleep/5-2: execution: PASS conformance/interfaces/nanosleep/6-1: execution: PASS conformance/interfaces/nanosleep/7-1: execution: PASS conformance/interfaces/nanosleep/7-2: execution: PASS conformance/interfaces/nanosleep/10000-1: execution: PASS [0] Open POSIX Test Suite: http://posixtest.sourceforge.net/
show more ...
|
19432bfa | 14-Jan-2021 |
Aaron LI |
nanosleep(2): Plug a memory disclourse and be POSIX-compliant The nanosleep1() called by sys_nanosleep() would only update rmt on EINTR, but it can also return other errors, such as EINV
nanosleep(2): Plug a memory disclourse and be POSIX-compliant The nanosleep1() called by sys_nanosleep() would only update rmt on EINTR, but it can also return other errors, such as EINVAL. And in that case, sys_nanosleep() would update the user-space rmtp by copying garbage from its stack frame. This is not only a kernel memory disclourse, but also not POSIX-compliant. Fix sys_nanosleep() to update rmtp only on EINTR. In addition, zero the kernel rmt variable for double safety. Obtained-from: FreeBSD (r315510) Reviewd-by: dillon
show more ...
|
ab262a76 | 19-Jan-2021 |
Aaron LI |
kern/makesyscalls.sh: Revert change to '#endif' comment Well, I misread the '#ifdef _KERNEL' with '#ifndef', so the comment of '#endif' is right. Revert the recent change to this part ;
kern/makesyscalls.sh: Revert change to '#endif' comment Well, I misread the '#ifdef _KERNEL' with '#ifndef', so the comment of '#endif' is right. Revert the recent change to this part ;) Reported-by: swildner
show more ...
|
484a77ba | 14-Jan-2021 |
Aaron LI |
<sys/sysproto.h>: Regenerate after 'makesyscalls.sh' update |
19244695 | 14-Jan-2021 |
Aaron LI |
kern/makesyscalls.sh: Better place #undef and fix #endif comments * Move the placement of '#undef PAD_' so it just follows the end of syscall argument section. * Fix the comme
kern/makesyscalls.sh: Better place #undef and fix #endif comments * Move the placement of '#undef PAD_' so it just follows the end of syscall argument section. * Fix the comments of '#endif', so that the '_SYS_SYSPROTO_H_' and '_KERNEL' hierachies are now correct.
show more ...
|
ee6c7869 | 16-Jan-2021 |
Aaron LI |
test/vmm: Refactor Makefile by using <bsd.prog.mk> |
c6ecc293 | 16-Jan-2021 |
Aaron LI |
Use ${} instead of $() in various makefiles Also use ${.TARGET} and ${.ALLSRC] wherever impossible. Minor style adjustment in at(1)'s makefiles. |
e4adeac1 | 19-Jan-2021 |
Sascha Wildner |
Fix various mistakes (s/it were/it was/) in manual pages. |
a319222d | 19-Jan-2021 |
Sascha Wildner |
libutil/setusercontext: Apply FreeBSD's b149798e50fac1113a7. FBSD commit msg: Fix a clang 3.5 warning about abs(3) being given an argument of type quad_t in setusercontext(). W
libutil/setusercontext: Apply FreeBSD's b149798e50fac1113a7. FBSD commit msg: Fix a clang 3.5 warning about abs(3) being given an argument of type quad_t in setusercontext(). While here, sanitize the clamping of the priority value, and use the correct type for the return value of login_getcapnum().
show more ...
|
883e6f09 | 18-Jan-2021 |
Tomohiro Kusumi |
usr.sbin/fstyp: Fix exfat detection from FreeBSD ddf61156132b610915325769cbb93ea11be0d433 |
f91b8f11 | 16-Jan-2021 |
Sascha Wildner |
Add a smbfs(5) manual page (taken from FreeBSD). |
341b423d | 16-Jan-2021 |
Sascha Wildner |
libc/citrus: Cleanup the DFprivate_1.0 section of the Symbol.map. None of these symbols were ever in our libc. |
b93c04bf | 16-Jan-2021 |
Sascha Wildner |
libc/citrus: Remove two unused header files. |
c420de58 | 13-Jan-2021 |
Dan Cross |
talkd: Find users in more than one talk request. talkd was written to use `utmpentry` from `who`, which caches the results of read the `utmpx` file. However, talkd is usually invoke
talkd: Find users in more than one talk request. talkd was written to use `utmpentry` from `who`, which caches the results of read the `utmpx` file. However, talkd is usually invoked from inetd `wait` mode; it's possible that a user might login after `talkd` starts; with the cached utmpx data, one can't `talk` to that user. Further, consumption of the utmp data nulls it out for subsequent requests. The result is that the first talk succeeds, but subsequent requests fail. The fix is to avoid using the `utmpentry` machinery, and just read `utmp` directly every time we need to. Signed-off-by: Dan Cross <cross@gajendra.net>
show more ...
|
1f28d7d4 | 15-Jan-2021 |
Dan Cross |
talk: talk into account sa_len field in sockaddr. `osockaddr` predates the introduction of the sa_len field in `struct sockaddr`. The family has moved to the second field in the str
talk: talk into account sa_len field in sockaddr. `osockaddr` predates the introduction of the sa_len field in `struct sockaddr`. The family has moved to the second field in the structure, but `talk` didn't account for this when it constructs a `sockaddr_in` to send data to another system. The failure case was kind of odd: one could `talk` to a user on, say, a Linux machine, the remote user could respond, and things would work as expected. However, the inverse case, where a user on Linux tried to `talk` to a user on Dragonfly failed: the talk announcement would be made, but an attempt to respond would fail with a protocol error since the `sin_family` field would be zero. Signed-off-by: Dan Cross <cross@gajendra.net>
show more ...
|
db6b8d41 | 15-Jan-2021 |
Sascha Wildner |
Update the pciconf(8) database. January 11, 2021 snapshot from https://pci-ids.ucw.cz |
bbe5188b | 15-Jan-2021 |
Sascha Wildner |
Sync cmp(1) with FreeBSD. Mainly for 80445b7a3f738e0b which fixes a bug. Reported-by: William Ahern <william@25thandclement.com> |
44df28c1 | 13-Jan-2021 |
Sascha Wildner |
hexdump.1/operator.7: Use Ta instead of literal tabs. |
1e45dd8c | 12-Jan-2021 |
Matthew Dillon |
kernel - Fix atime field for PTYs * Fix the atime field for PTYs. A calculation in the shortcut code that avoids having to update the timestamp on every read() or write() was re
kernel - Fix atime field for PTYs * Fix the atime field for PTYs. A calculation in the shortcut code that avoids having to update the timestamp on every read() or write() was reversed. Reported-by: dancrossnyc
show more ...
|
a7580237 | 12-Jan-2021 |
Matthew Dillon |
finger - Take into account terminal session ID * The 'w' command tries to figure out what process is running on a TTY line and emit that as part of its output. Update its heuristics to
finger - Take into account terminal session ID * The 'w' command tries to figure out what process is running on a TTY line and emit that as part of its output. Update its heuristics to select the "most interesting" process. Reported-by: dancrossnyc Bug-report: #3260
show more ...
|
0a158471 | 12-Jan-2021 |
Matthew Dillon |
finger - Remove -T option * This doesn't appear to work against anything, so remove it. FreeBSD apparently removed this option in 2007. Reported-by: dancrossnyc Bug-report
finger - Remove -T option * This doesn't appear to work against anything, so remove it. FreeBSD apparently removed this option in 2007. Reported-by: dancrossnyc Bug-report: #3258
show more ...
|
8e082715 | 12-Jan-2021 |
Matthew Dillon |
finger - Fix 'lastlogx' logic * finger(1) was simply incorrect in how it was trying to access the `lastlogx` database; fix it to use the correct interface. Reported-by: dancro
finger - Fix 'lastlogx' logic * finger(1) was simply incorrect in how it was trying to access the `lastlogx` database; fix it to use the correct interface. Reported-by: dancrossnyc Bug-report: #3257
show more ...
|
f6ba1d0e | 12-Jan-2021 |
Matthew Dillon |
finger - Reduce printed Login name field width so line fits 80 cols * With the TTY field expanded, reduce the Login name field width so the output still fits in 80 cols. |