wbflush.c

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· C语言 代码 · 共 21 行

C
21
字号
/*	@(#)wbflush.c	4.1	(ULTRIX)	7/3/90	*//* *    This routine does a series of writes to an array.  This should cause *    the write buffer to be flushed.  At some point in time we may want to *    make this a system call, but the problem is that by the time you *    do the context switch and get to call the wbflush() kernel routine *    the write buffer will already be flushed (because of other writes). */#define   WBSIZE   16intwbflush(){        register int wbuf[WBSIZE];	register int i;	for( i = 0; i < WBSIZE; i++)	  wbuf[i] = 0;	return;}

⌨️ 快捷键说明

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