Lines Matching refs:filename

80 static int do_utimes_path(int dfd, const char __user *filename,
95 error = user_path_at(dfd, filename, lookup_flags, &path);
126 * do_utimes - change times on filename or file descriptor
128 * @filename: path name or NULL
132 * If filename is NULL and dfd refers to an open file, then operate on
133 * the file. Otherwise look up filename, possibly using dfd as a
140 long do_utimes(int dfd, const char __user *filename, struct timespec64 *times,
143 if (filename == NULL && dfd != AT_FDCWD)
145 return do_utimes_path(dfd, filename, times, flags);
148 SYSCALL_DEFINE4(utimensat, int, dfd, const char __user *, filename,
164 return do_utimes(dfd, filename, utimes ? tstimes : NULL, flags);
174 static long do_futimesat(int dfd, const char __user *filename,
199 return do_utimes(dfd, filename, utimes ? tstimes : NULL, 0);
203 SYSCALL_DEFINE3(futimesat, int, dfd, const char __user *, filename,
206 return do_futimesat(dfd, filename, utimes);
209 SYSCALL_DEFINE2(utimes, char __user *, filename,
212 return do_futimesat(AT_FDCWD, filename, utimes);
215 SYSCALL_DEFINE2(utime, char __user *, filename, struct utimbuf __user *, times)
226 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0);
236 SYSCALL_DEFINE2(utime32, const char __user *, filename,
248 return do_utimes(AT_FDCWD, filename, t ? tv : NULL, 0);
252 SYSCALL_DEFINE4(utimensat_time32, unsigned int, dfd, const char __user *, filename, struct old_timespec32 __user *, t, int, flags)
264 return do_utimes(dfd, filename, t ? tv : NULL, flags);
268 static long do_compat_futimesat(unsigned int dfd, const char __user *filename,
285 return do_utimes(dfd, filename, t ? tv : NULL, 0);
289 const char __user *, filename,
292 return do_compat_futimesat(dfd, filename, t);
295 SYSCALL_DEFINE2(utimes_time32, const char __user *, filename, struct old_timeval32 __user *, t)
297 return do_compat_futimesat(AT_FDCWD, filename, t);