File: fsync.c

package info (click to toggle)
tra 20020816-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 1,696 kB
  • ctags: 2,623
  • sloc: ansic: 22,519; makefile: 406; asm: 269
file content (14 lines) | stat: -rw-r--r-- 142 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "tra.h"

int
fsync(int fd)
{
	Dir d;

	nulldir(&d);
	if(dirfwstat(fd, &d) < 0){
		werrstr("fsync: %r");
		return -1;
	}
	return 0;
}