ptsname.c\misc\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/misc/ptsname.c
blob: 58c151c97fbbcd926b1781746aff0c5ce7216d7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdlib.h>
#include <errno.h>
char *ptsname(int fd)
{
	static char buf[9 + sizeof(int)*3 + 1];
	int err = __ptsname_r(fd, buf, sizeof buf);
	if (err) {
		errno = err;
		return 0;
	}
	return buf;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月16日 14:06:15 +0000

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