⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _fixdelay.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef lintstatic	char sccsid[] = "@(#)_fixdelay.c 1.1 92/07/30 SMI"; /* from S5R2 1.1 */#endif#include "curses.ext"/* * The use has just changed his notion of whether we want nodelay mode. * Do any system dependent processing. *//* ARGSUSED */_fixdelay(old, new)bool old, new;{#ifdef USG# include <fcntl.h>	int fl, rv, fd;	extern int errno;	FILE	*inf;	inf = SP -> term_file;	if( inf == stdout )	{		inf = stdin;	}	fd = fileno( inf );	fl = fcntl(fd, F_GETFL, 0);	if (new)		fl |= O_NDELAY;	else		fl &= ~O_NDELAY;	if (old != new)		rv = fcntl(fd, F_SETFL, fl);#else	/* No system dependent processing on the V7 or Berkeley systems. */#endif}

⌨️ 快捷键说明

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