projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
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
));
}