37 Commits

Author SHA1 Message Date
Theodore Dubois c99cb7b01b Implement SIGEV_THREAD_ID 2023-05-02 21:55:49 -07:00
Theodore Dubois d0b4ee9113 Implement CLOCK_REALTIME_COARSE for dig 9.15.6
Fixes #891
2020-10-24 11:12:20 -07:00
Theodore Dubois b7ea9ff58b Implement timer_delete
#687
2020-06-05 20:52:19 -07:00
Theodore Dubois f38d232756 Implement edge-triggered epoll
#698
2020-05-22 20:18:34 -07:00
Theodore Dubois 3795b289a5 Implement timer_create and timer_settime
Fixes #707
2020-05-10 12:12:47 -07:00
Theodore Dubois 16f1bdee13 Make timerfd_read interruptible 2020-04-12 20:06:23 -07:00
Theodore Dubois 8ff84f2ae3 Handle different clock IDs in timerfd_create
Also handle TFD_TIMER_ABSTIME in timerfd_settime.

Fix #591
2020-01-03 20:13:17 -08:00
Theodore Dubois 4056571cec Print return of clock_gettime in strace 2019-12-22 19:43:07 -08:00
Theodore Dubois 6daf24b336 Implement timerfd_settime
Bug #104
2019-09-30 22:33:48 -07:00
Theodore Dubois ae689abff5 Require a siginfo when sending a signal 2019-06-22 20:48:49 -07:00
Theodore Dubois 4c7973e0e3 Implement alarm(2) 2019-05-11 22:50:44 -07:00
Theodore Dubois 6ec8ec9db5 Rename fd data structs 2019-04-14 17:49:42 -07:00
Theodore Dubois 932796916e Fix unused parameter warning 2019-03-10 23:26:20 -07:00
Saagar Jha fd51dfb115 Add stub for stime 2019-03-10 06:33:14 -07:00
Theodore Dubois 088e7b727d Implement ptys
Also a bunch of somewhat related changes, I was too lazy to break this into more than one commit
2019-01-21 12:20:43 -08:00
Theodore Dubois 032a218a63 Mark unused function arguments 2019-01-05 17:18:54 -08:00
Theodore Dubois 137e1a2814 Overhaul fdtable implementation to add locking 2019-01-02 21:50:25 -08:00
Theodore Dubois 09d3885c70 Remove useless has_timer field 2018-12-31 18:03:29 -08:00
Theodore Dubois ff4f9d9704 Don't abort on unimplemented setitimer 2018-12-23 14:54:57 -08:00
Theodore Dubois ec475f2d87 Initial implementation of timerfd 2018-12-10 12:27:45 -08:00
Theodore Dubois 3e4adb3bb2 Implement clock_gettime(CLOCK_PROCESS_CPUTIME_ID) 2018-12-06 18:04:52 -08:00
SEProblem e254c811bb implement sys call 266 - clock_getresx 2018-11-30 19:25:23 -08:00
Saagar Jha bdf9a53081 Add stubs for clock_settime and settimeofday 2018-11-14 16:24:50 -08:00
Saagar Jha 31c4decb84 Implement gettimeofday 2018-11-14 02:14:23 -08:00
woachk 360a45c741 Well, turned out that hundredths of a second is the used unit here... 2018-11-12 10:12:14 -08:00
Theodore Dubois f59ef72994 Improve strace for setitimer 2018-11-12 10:12:03 -08:00
Theodore Dubois fcf97f735a Make the members of tms_ dword_t instead of clock_t
On 64-bit systems, clock_t is twice as big as dword_t, so this would end up smashing the stack.
2018-11-11 18:25:26 -08:00
woachk 80831550a7 Use the shared rusage_get_current() implementation for consistency
Oops.
2018-11-11 13:19:22 -08:00
woachk 223e8ef5b6 Early times() implementation 2018-11-11 13:18:33 -08:00
Theodore Dubois 4b7a08dcfe Add strace for clock_gettime and fcntl 2018-10-05 17:56:06 -07:00
Theodore Dubois 943662c1a8 Add strace for nanosleep 2018-08-12 18:53:43 -07:00
Theodore Dubois 7e5e9e5c1f First pass at implementing thread groups
It builds and will give you a shell. Gonna call it a day.
2018-01-28 15:42:42 -08:00
Theodore Dubois 6a907425e6 Rename process to task 2018-01-21 12:44:55 -08:00
Theodore Dubois bf3b711cdd Implement tracking of process cpu usage 2018-01-10 15:33:11 -08:00
Theodore Dubois 77afbe3aa3 Replace err_map(errno) with errno_map, and fix EPIPE handling 2017-12-15 15:55:53 -08:00
Theodore Dubois a08a34a62f Implement thread-based timer architecture 2017-10-14 15:57:12 -07:00
Theodore Dubois f1e63c43e0 Rename sys directory to kernel
A number of the headers in it were conflicting with macOS system
headers.
2017-10-13 16:54:11 -07:00