Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 25 of 80) sorted by relevance

1234

/io/
A Dtst-fcntl.c41 static int fd; variable
53 fd = mkstemp (name); in do_prepare()
54 if (fd == -1) in do_prepare()
72 if (fstat64 (fd, &st) != 0) in do_test()
84 val = fcntl (fd, F_GETFL); in do_test()
97 if (fcntl (fd, F_SETFL, O_RDONLY) == -1) in do_test()
103 val = fcntl (fd, F_GETFL); in do_test()
122 val = fcntl (fd, F_GETFL); in do_test()
134 val = fcntl (fd, F_GETFD); in do_test()
147 val = fcntl (fd, F_GETFD); in do_test()
[all …]
A Dtst-futimens.c28 test_futimens_helper (const char *file, int fd, const struct timespec *ts) in test_futimens_helper() argument
30 int result = futimens (fd, ts); in test_futimens_helper()
34 xfstat (fd, &st); in test_futimens_helper()
45 #define TEST_CALL(fname, fd, lname, v1, v2) \ argument
46 test_futimens_helper (fname, fd, (struct timespec[]) { { v1, 0 }, \
A Dtst-futimes.c29 test_futimens_helper (const char *file, int fd, const struct timeval *tv) in test_futimens_helper() argument
31 int r = futimes (fd, tv); in test_futimens_helper()
35 xfstat (fd, &st); in test_futimens_helper()
46 #define TEST_CALL(fname, fd, lname, v1, v2) \ argument
47 test_futimens_helper (fname, fd, (struct timeval[]) { { v1, 0 }, \
A Dfstat.c22 __fstat (int fd, struct stat *buf) in __fstat() argument
24 if (fd < 0) in __fstat()
29 return __fstatat (fd, "", buf, AT_EMPTY_PATH); in __fstat()
A Dbug-ftw4.c39 int ret, i, result = 0, fd, fd1, fd2; in main() local
62 fd = open (name, O_RDONLY); in main()
63 if (fd < 0) in main()
76 if (fd >= 0) in main()
77 close (fd); in main()
89 fd = open (name, O_RDONLY); in main()
90 if (fd < 0) in main()
103 if (fd >= 0) in main()
104 close (fd); in main()
A Dfstat64.c22 __fstat64 (int fd, struct stat64 *buf) in __fstat64() argument
24 if (fd < 0) in __fstat64()
29 return __fstatat64 (fd, "", buf, AT_EMPTY_PATH); in __fstat64()
A Dtst-statx.c81 xfstat (fd, &st); in both_implementations_tests()
103 non_kernel_tests (statx_function impl, int fd) in non_kernel_tests() argument
109 TEST_COMPARE (impl (fd, "", AT_EMPTY_PATH | AT_STATX_FORCE_SYNC, in non_kernel_tests()
113 TEST_COMPARE (impl (fd, "", AT_EMPTY_PATH | AT_STATX_DONT_SYNC, in non_kernel_tests()
122 int fd = create_temp_file ("tst-statx-", &path); in do_test() local
123 TEST_VERIFY_EXIT (fd >= 0); in do_test()
126 both_implementations_tests (&statx, path, fd); in do_test()
127 both_implementations_tests (&statx_generic, path, fd); in do_test()
147 non_kernel_tests (&statx, fd); in do_test()
149 non_kernel_tests (&statx_generic, fd); in do_test()
[all …]
A Dlockf.c28 lockf (int fd, int cmd, off_t len) in lockf() argument
46 if (__fcntl (fd, F_GETLK, &fl) < 0) in lockf()
54 return __fcntl (fd, F_SETLK, &fl); in lockf()
56 return __fcntl (fd, F_SETLKW, &fl); in lockf()
58 return __fcntl (fd, F_SETLK, &fl); in lockf()
A Dunlinkat.c26 unlinkat (int fd, const char *name, int flag) in unlinkat() argument
34 if (fd < 0 && fd != AT_FDCWD) in unlinkat()
A Ddup2.c26 __dup2 (int fd, int fd2) in __dup2() argument
28 if (fd < 0 || fd2 < 0) in __dup2()
34 if (fd == fd2) in __dup2()
A Dtst-stat-time64.c35 stat_check (int fd, const char *path, struct stat *st) in stat_check() argument
41 lstat_check (int fd, const char *path, struct stat *st) in lstat_check() argument
47 fstat_check (int fd, const char *path, struct stat *st) in fstat_check() argument
49 TEST_COMPARE (fstat (fd, st), 0); in fstat_check()
53 fstatat_check (int fd, const char *path, struct stat *st) in fstatat_check() argument
55 TEST_COMPARE (fstatat (fd, path, st, 0), 0); in fstatat_check()
64 int fd = create_temp_file ("tst-statx-", &path); in do_test() local
65 TEST_VERIFY_EXIT (fd >= 0); in do_test()
69 TEST_COMPARE (statx (fd, path, 0, STATX_BASIC_STATS, &stx), 0); in do_test()
76 (*test) (fd, path, &st); in do_test()
[all …]
A Dsymlinkat.c26 symlinkat (const char *from, int fd, const char *to) in symlinkat() argument
34 if (fd != AT_FDCWD && fd < 0 && *to != '/') in symlinkat()
A Ddup3.c27 __dup3 (int fd, int fd2, int flags) in __dup3() argument
29 if (fd < 0 || fd2 < 0) in __dup3()
35 if (fd == fd2) in __dup3()
A Dlockf64.c24 __lockf64 (int fd, int cmd, off64_t len64) in __lockf64() argument
42 if (__fcntl (fd, F_GETLK64, &fl64) < 0) in __lockf64()
50 return __fcntl64 (fd, F_SETLK64, &fl64); in __lockf64()
52 return __fcntl64 (fd, F_SETLKW64, &fl64); in __lockf64()
54 return __fcntl64 (fd, F_SETLK64, &fl64); in __lockf64()
A Dtst-utime.c29 test_utime_helper (const char *file, int fd, const struct utimbuf *ut) in test_utime_helper() argument
35 xfstat (fd, &st); in test_utime_helper()
46 #define TEST_CALL(fname, fd, lname, v1, v2) \ argument
47 test_utime_helper (fname, fd, &(struct utimbuf) { (v1), (v2) })
A Dtst-utimes.c30 test_utimes_helper (const char *file, int fd, const struct timeval *tv) in test_utimes_helper() argument
36 xfstat (fd, &st); in test_utimes_helper()
47 #define TEST_CALL(fname, fd, lname, v1, v2) \ argument
48 test_utimes_helper (fname, fd, (struct timeval[]) { { v1, 0 }, \
A Dreadlinkat.c26 readlinkat (int fd, const char *path, char *buf, size_t len) in readlinkat() argument
34 if (fd != AT_FDCWD && fd < 0 && *path != '/') in readlinkat()
A Dfchownat.c26 fchownat (int fd, const char *file, uid_t owner, gid_t group, int flag) in fchownat() argument
34 if (fd < 0 && fd != AT_FDCWD) in fchownat()
A Dfchmodat.c27 fchmodat (int fd, const char *file, mode_t mode, int flag) in fchmodat() argument
35 if (fd < 0 && fd != AT_FDCWD) in fchmodat()
A Dtst-stat.c32 stat_check (int fd, const char *path, struct stat *st) in stat_check() argument
38 lstat_check (int fd, const char *path, struct stat *st) in lstat_check() argument
44 fstat_check (int fd, const char *path, struct stat *st) in fstat_check() argument
50 TEST_COMPARE (fstat (fd, st), 0); in fstat_check()
54 fstatat_check (int fd, const char *path, struct stat *st) in fstatat_check() argument
56 TEST_COMPARE (fstatat (fd, "", st, 0), -1); in fstatat_check()
59 TEST_COMPARE (fstatat (fd, path, st, 0), 0); in fstatat_check()
68 int fd = create_temp_file ("tst-fstat.", &path); in do_test() local
69 TEST_VERIFY_EXIT (fd >= 0); in do_test()
77 TEST_COMPARE (statx (fd, path, 0, STATX_BASIC_STATS, &stx), 0); in do_test()
[all …]
A Dfstatat.c22 __fstatat (int fd, const char *file, struct stat *buf, int flag) in __fstatat() argument
24 if (fd < 0 && fd != AT_FDCWD) in __fstatat()
A Dfstatat64.c22 __fstatat64 (int fd, const char *file, struct stat64 *buf, int flag) in __fstatat64() argument
24 if (fd < 0 && fd != AT_FDCWD) in __fstatat64()
A Dfaccessat.c26 faccessat (int fd, const char *file, int type, int flag) in faccessat() argument
35 if (fd < 0 && fd != AT_FDCWD) in faccessat()
A Dmkdirat.c27 mkdirat (int fd, const char *path, mode_t mode) in mkdirat() argument
35 if (fd != AT_FDCWD && path[0] != '/') in mkdirat()
39 if (__fstat64 (fd, &st) != 0) in mkdirat()
A Dmkfifoat.c28 mkfifoat (int fd, const char *path, mode_t mode) in mkfifoat() argument
36 if (fd != AT_FDCWD && path[0] != '/') in mkfifoat()
40 if (__fstat64 (fd, &st) != 0) in mkfifoat()

Completed in 17 milliseconds

1234