Home
last modified time | relevance | path

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

/rt/
A Dtst-shm.c57 if (fd == -1) in worker()
62 if (fd == -1) in worker()
63 exit (fd); in worker()
65 if (fstat64 (fd, &st) == -1) in worker()
116 close (fd); in worker()
125 int fd; in do_test() local
135 if (fd != -1) in do_test()
144 if (fd == -1) in do_test()
162 close (fd); in do_test()
186 close (fd); in do_test()
[all …]
A Dtst-aio7.c45 int fd = -1; in do_test() local
47 cb.aio_fildes = fd; in do_test()
57 if (aio_cancel (fd, &cb) != -1 || errno != EBADF) in do_test()
73 if (aio_cancel (fd, &cb) != -1 || errno != EBADF) in do_test()
80 int fd = -1; in do_test() local
82 cb.aio_fildes = fd; in do_test()
103 int i, r, fd; in do_test() local
110 fd = mkstemp (name); in do_test()
111 if (fd < 0) in do_test()
117 if (write (fd, "01234567", BYTES) != BYTES) in do_test()
[all …]
A Dtst-aio64.c43 int fd; variable
56 fd = mkstemp (name); in do_prepare()
57 if (fd == -1) in do_prepare()
70 if (fstat (fd, &st) < 0) in test_file()
150 cbs[cnt].aio_fildes = fd; in do_test()
196 if (ftruncate64 (fd, 0) < 0) in do_test()
214 cbs_fsync.aio_fildes = fd; in do_test()
219 if (ftruncate64 (fd, 0) < 0) in do_test()
241 if (ftruncate64 (fd, 0) < 0) in do_test()
252 if (aio_cancel64 (fd, NULL) == -1) in do_test()
[all …]
A Dtst-aio.c42 int fd; variable
55 fd = mkstemp (name); in do_prepare()
56 if (fd == -1) in do_prepare()
69 if (fstat (fd, &st) < 0) in test_file()
149 cbs[cnt].aio_fildes = fd; in do_test()
195 if (ftruncate (fd, 0) < 0) in do_test()
213 cbs_fsync.aio_fildes = fd; in do_test()
218 if (ftruncate (fd, 0) < 0) in do_test()
240 if (ftruncate (fd, 0) < 0) in do_test()
251 if (aio_cancel (fd, NULL) == -1) in do_test()
[all …]
A Dshm_open.c40 int fd = __open64_nocancel (dirname.name, oflag, mode); in __shm_open() local
41 if (fd == -1 && __glibc_unlikely (errno == EISDIR)) in __shm_open()
47 return fd; in __shm_open()
A Dtst-aio8.c11 int fd = open ("/dev/full", O_RDWR); in do_test() local
12 if (fd == -1) in do_test()
19 req.aio_fildes = fd; in do_test()
A Dtst-aio2.c47 int fd; in do_test() local
52 fd = mkstemp (name); in do_test()
53 if (fd == -1) in do_test()
69 cb.aio_fildes = fd; in do_test()
A Dtst-aio3.c46 int fd; in do_test() local
51 fd = mkstemp (name); in do_test()
52 if (fd == -1) in do_test()
68 cb.aio_fildes = fd; in do_test()
A Dtst-aio5.c60 int fd; in do_test() local
66 fd = mkstemp (name); in do_test()
67 if (fd == -1) in do_test()
77 cb.aio_fildes = fd; in do_test()
A Dtst-aio6.c36 int fd[2]; in do_test() local
39 if (pipe (fd) != 0) in do_test()
47 cb.aio_fildes = fd[0]; in do_test()
A Dtst-aio4.c64 int fd; in do_test() local
81 fd = mkstemp (name); in do_test()
82 if (fd == -1) in do_test()
95 cb.aio_fildes = fd; in do_test()
A Dtst-shm-cancel.c65 int fd = shm_open (shm_name, O_CREAT, 0600); in tf() local
66 if (fd == -1) in tf()
82 if (close (fd) != 0) in tf()
A Dtst-mqueue3.c98 int fd = mkstemp (tmpfname); in do_test() local
99 if (fd == -1) in do_test()
114 if (write (fd, data, ps) != (ssize_t) ps) in do_test()
120 void *mem = mmap (NULL, ps, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in do_test()
A Dtst-mqueue5.c558 int fd = mkstemp (tmpfname); in do_test() local
559 if (fd == -1) in do_test()
574 if (write (fd, data, ps) != (ssize_t) ps) in do_test()
580 void *mem = mmap (NULL, ps, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in do_test()

Completed in 23 milliseconds