int fd, f = 0; 
int fd, err, f = 0; 
int os_open_file(char *file, struct openflags flags, int mode){	int fd, f = 0;	if(flags.r && flags.w) f = O_RDWR;	else if(flags.r) f = O_RDONLY;	else if(flags.w) f = O_WRONLY;	else f = 0;	if(flags.s) f |= O_SYNC;	if(flags.c) f |= O_CREAT;	if(flags.t) f |= O_TRUNC;	if(flags.e) f |= O_EXCL;	fd = open64(file, f, mode);	if(fd < 0)		return(-errno);	if(flags.cl && fcntl(fd, F_SETFD, 1)){		os_close_file(fd);		return(-errno);	}	return(fd);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/b4fd310e163477236a241580b3b8c29aee65f4cc/file.c/clean/arch/um/os-Linux/file.c