summaryrefslogtreecommitdiff
path: root/sys/src/ape/lib/ap/plan9/ttyname.c
blob: 980186a81f11d7916f852fe7c7c7e34b19271977 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <unistd.h>
#include <stdio.h>

char *
ttyname(int fd)
{
	static char buf[100];

	sprintf(buf, "/fd/%d", fd);
	return buf;
}