Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <unistd.h>
2
#include <stdio.h>
3
 
4
char *
5
ttyname(int fd)
6
{
7
	static char buf[100];
8
 
9
	sprintf(buf, "/fd/%d", fd);
10
	return buf;
11
}