mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Perform minor fixups
One of those fixups is making sure that AF_LOCAL is equal to AF_UNIX on the New Technology. See #122
This commit is contained in:
parent
83d0c3b870
commit
807706a099
14 changed files with 76 additions and 134 deletions
|
@ -17,6 +17,7 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/sigbits.h"
|
||||
#include "libc/calls/struct/sigset.h"
|
||||
#include "libc/log/log.h"
|
||||
#include "libc/nexgen32e/nexgen32e.h"
|
||||
|
@ -33,9 +34,10 @@ TEST(fastdiv, test) {
|
|||
}
|
||||
|
||||
TEST(dsleep, test) {
|
||||
sigset_t oldmask;
|
||||
long double t1, t2;
|
||||
sigprocmask(SIG_BLOCK, &kSigsetFull, &oldmask);
|
||||
sigset_t mask, oldmask;
|
||||
sigfillset(&mask);
|
||||
sigprocmask(SIG_BLOCK, &mask, &oldmask);
|
||||
sched_yield();
|
||||
t1 = dtime(CLOCK_MONOTONIC);
|
||||
dsleep(0.001L);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue