Lines Matching refs:filename
78 static int do_utimes_path(int dfd, const char __user *filename,
93 error = user_path_at(dfd, filename, lookup_flags, &path);
124 * do_utimes - change times on filename or file descriptor
126 * @filename: path name or NULL
130 * If filename is NULL and dfd refers to an open file, then operate on
131 * the file. Otherwise look up filename, possibly using dfd as a
138 long do_utimes(int dfd, const char __user *filename, struct timespec64 *times,
141 if (filename == NULL && dfd != AT_FDCWD)
143 return do_utimes_path(dfd, filename, times, flags);
146 SYSCALL_DEFINE4(utimensat, int, dfd, const char __user *, filename,
162 return do_utimes(dfd, filename, utimes ? tstimes : NULL, flags);
172 static long do_futimesat(int dfd, const char __user *filename,
197 return do_utimes(dfd, filename, utimes ? tstimes : NULL, 0);
201 SYSCALL_DEFINE3(futimesat, int, dfd, const char __user *, filename,
204 return do_futimesat(dfd, filename, utimes);
207 SYSCALL_DEFINE2(utimes, char __user *, filename,
210 return do_futimesat(AT_FDCWD, filename, utimes);
213 SYSCALL_DEFINE2(utime, char __user *, filename, struct utimbuf __user *, times)
224 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0);
234 SYSCALL_DEFINE2(utime32, const char __user *, filename,
246 return do_utimes(AT_FDCWD, filename, t ? tv : NULL, 0);
250 SYSCALL_DEFINE4(utimensat_time32, unsigned int, dfd, const char __user *, filename, struct old_timespec32 __user *, t, int, flags)
262 return do_utimes(dfd, filename, t ? tv : NULL, flags);
266 static long do_compat_futimesat(unsigned int dfd, const char __user *filename,
283 return do_utimes(dfd, filename, t ? tv : NULL, 0);
287 const char __user *, filename,
290 return do_compat_futimesat(dfd, filename, t);
293 SYSCALL_DEFINE2(utimes_time32, const char __user *, filename, struct old_timeval32 __user *, t)
295 return do_compat_futimesat(AT_FDCWD, filename, t);