fchmod.c

来自「早期freebsd实现」· C语言 代码 · 共 18 行

C
18
字号
#include <stdio.h>#include <unistd.h>#include <compat.h>intfchmod(fd, mode)	int fd;	u_int mode;{	char *tty;	/* Find the tty. */	if ((tty = ttyname(fd)) == NULL)		return (-1);	return (chmod(tty, mode));}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?