projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
beginnings of full TLS support in shared libraries
[musl]
/
src
/
unistd
/
dup3.c
1
#define _GNU_SOURCE
2
#include <unistd.h>
3
#include <errno.h>
4
#include "syscall.h"
5
6
int dup3(int old, int new, int flags) {
7
int r;
8
while ((r=__syscall(SYS_dup3, old, new, flags))==-EBUSY);
9
return __syscall_ret(r);
10
}