mirror of
https://github.com/ziglang/zig.git
synced 2026-01-19 05:45:12 +00:00
also start prefering NtDll API. so far: * NtQueryInformationFile * NtClose adds a performance workaround for windows unicode conversion. but that should probably be removed before merging
9 lines
135 B
C
9 lines
135 B
C
#define _GNU_SOURCE
|
|
#include <sched.h>
|
|
#include "syscall.h"
|
|
|
|
int setns(int fd, int nstype)
|
|
{
|
|
return syscall(SYS_setns, fd, nstype);
|
|
}
|