Lines Matching defs:file
71 int os_access(const char *file, int mode)
80 err = access(file, amode);
134 int os_file_type(char *file)
139 err = os_stat_file(file, &buf);
158 int os_file_mode(const char *file, struct openflags *mode_out)
164 err = access(file, W_OK);
170 err = access(file, R_OK);
179 int os_open_file(const char *file, struct openflags flags, int mode)
202 fd = open64(file, f, mode);
310 int os_file_size(const char *file, unsigned long long *size_out)
315 err = os_stat_file(file, &buf);
317 printk(UM_KERN_ERR "Couldn't stat \"%s\" : err = %d\n", file,
326 fd = open(file, O_RDONLY, 0);
330 "errno = %d\n", file, errno);
336 "\"%s\", errno = %d\n", file, errno);
348 int os_file_modtime(const char *file, long long *modtime)
353 err = os_stat_file(file, &buf);
355 printk(UM_KERN_ERR "Couldn't stat \"%s\" : err = %d\n", file,
545 int os_create_unix_socket(const char *file, int len, int close_on_exec)
563 snprintf(addr.sun_path, len, "%s", file);
597 printk(UM_KERN_ERR "F_SETLK failed, file already locked by pid %d\n",