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:
Justine Tunney 2021-03-13 19:39:17 -08:00
parent 83d0c3b870
commit 807706a099
14 changed files with 76 additions and 134 deletions

View file

@ -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);