This commit was generated by cvs2svn to track changes on a CVS vendor
[unix-history] / usr.bin / vi / clib / fchmod.c
#include <stdio.h>
#include <unistd.h>
#include <compat.h>
int
fchmod(fd, mode)
int fd;
u_int mode;
{
char *tty;
/* Find the tty. */
if ((tty = ttyname(fd)) == NULL)
return (-1);
return (chmod(tty, mode));
}