Lines Matching refs:file
25 * sync all outstanding file operations for file opened on fd
26 * if file==0 then fd used
27 * if fd<0 then file used
40 cosync(Coshell_t* co, const char* file, int fd, int mode)
47 if (file && *file)
59 s = file;
75 if ((td = open(file, mode|O_cloexec)) < 0)
90 if (!file || mode < 0 || (fd = open(file, O_RDONLY|O_cloexec)) < 0) return(-1);
114 * this kind of stuff doesn't happen with *real* file systems
117 if (file && *file)
119 strcpy(tmp, file);
122 if (!rename(file, tmp)) rename(tmp, file);