syscall.c\internal\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/internal/syscall.c
blob: 4f159e0b528fd05eb6cde5ae6ec688d667b20e51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <errno.h>
#include <unistd.h>
long __syscall_ret(unsigned long r)
{
	if (r >= (unsigned long)-1 - 4096) {
		errno = -(long)r;
		return -1;
	}
	return (long)r;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月04日 21:08:03 +0000

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