[ / / / / / / / / / / / / / ] [ dir / ausneets / ck / dempart / doomer / miku / s / sonyeon / vg ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

[–]

 No.1031324[Watch Thread][Show All Posts]


#if __POSIX_VISIBLE >= 200112
int clock_getcpuclockid(pid_t, clockid_t *);
#if 0 /* XXX missing */
struct sigevent;
int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *);
int timer_create(clockid_t, struct sigevent *__restrict, timer_t *__restrict);
int timer_delete(timer_t);
int timer_gettime(timer_t, struct itimerspec *);
int timer_getoverrun(timer_t);
int timer_settime(timer_t, int, const struct itimerspec *__restrict,
struct itimerspec *__restrict);
#endif
#endif

>tfw no posix timers

 No.1031585

OK. Since I'm already waiting in one process for a SIGALRM my workaround is to fork() another process, setitimer(), SIG_BLOCK and then sigwait() for SIGALRM.


 No.1031586>>1031616 >>1031618 >>1031621 >>1031626

Fuck POSIX use Linux system calls and stop worrying about faggot ass concepts like portability.


 No.1031616

>>1031586

Honestly this. Program for your system, not for what you think your system will be.


 No.1031618

>>1031586

Linux might as well be the only UNIX-like kernel at this point.


 No.1031621>>1031745

>>1031586 >>1031616

My little test program need to run on Dragonfly and Linux at least. Dfly is the one that's commented out the POSIX timers for some dumbass reason.


 No.1031626

>>1031586

t. linux dev


 No.1031745>>1031758


 No.1031758

>>1031745

>on OSX with Rust

plz bby give more poz




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
8 replies | 0 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / ausneets / ck / dempart / doomer / miku / s / sonyeon / vg ][ watchlist ]