dup3.c\linux\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/linux/dup3.c
blob: 18f6fccef24fb12fdc83a72958d3423618ae7a1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#define _GNU_SOURCE
#include <unistd.h>
#include <errno.h>
#include "syscall.h"
int dup3(int old, int new, int flags) {
	int r;
	while ((r=__syscall(SYS_dup3, old, new, flags))==-EBUSY);
	return __syscall_ret(r);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月24日 20:45:13 +0000

AltStyle によって変換されたページ (->オリジナル) /