Searched defs:file_fd (Results 1 - 8 of 8) sorted by relevance

/external/ltp/testcases/kernel/syscalls/fstatfs/
H A Dfstatfs01.c56 static int file_fd; variable
63 {&file_fd, "fstatfs() on a file"},
107 file_fd = SAFE_OPEN(cleanup, "test_file", O_RDWR | O_CREAT, 0700);
116 if (file_fd > 0 && close(file_fd))
117 tst_resm(TWARN | TERRNO, "close(file_fd) failed");
/external/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl07.c69 static int file_fd, pipe_fds[2], fifo_fd; variable
77 {&file_fd, "regular file"},
170 file_fd = SAFE_OPEN(cleanup, "test_file", O_CREAT | O_RDWR, 0666);
178 if (file_fd > 0 && close(file_fd))
179 tst_resm(TWARN | TERRNO, "close(file_fd) failed");
H A Dfcntl17.c71 int file_fd; variable
131 if ((file_fd = mkstemp(template)) < 0) {
135 if (write(file_fd, buf, STRINGSIZE) < 0) {
172 close(file_fd);
190 if (fcntl(file_fd, F_SETLK, &lock1) < 0) {
201 fcntl(file_fd, F_SETLK, &unlock);
222 if (fcntl(file_fd, F_SETLK, &lock2) < 0) {
233 if (fcntl(file_fd, F_SETLKW, &lock4) < 0) {
260 if (fcntl(file_fd, F_SETLK, &lock3) < 0) {
271 if (fcntl(file_fd, F_SETLK
[all...]
/external/ltp/testcases/kernel/syscalls/readdir/
H A Dreaddir21.c54 static unsigned int del_dir_fd, file_fd; variable
68 {&file_fd, &dirp, sizeof(struct old_linux_dirent), ENOTDIR},
109 file_fd = SAFE_OPEN(cleanup, TEST_FILE, O_RDWR | O_CREAT, 0777);
146 if (file_fd > 0)
147 close(file_fd);
/external/ltp/testcases/kernel/syscalls/readlinkat/
H A Dreadlinkat02.c44 static int file_fd, dir_fd; variable
54 {&file_fd, SYMLINK_FILE, BUFF_SIZE, ENOTDIR},
92 file_fd = SAFE_OPEN(cleanup, TEST_FILE, O_RDWR | O_CREAT, 0644);
119 close(file_fd);
/external/ltp/lib/
H A Dtst_device.c136 int dev_fd, file_fd; local
145 file_fd = open(file, O_RDWR);
146 if (file_fd < 0) {
152 if (ioctl(dev_fd, LOOP_SET_FD, file_fd) < 0) {
154 close(file_fd);
169 close(file_fd);
176 close(file_fd);
/external/valgrind/auxprogs/
H A Dvalgrind-di-server.c184 int file_fd; member in struct:__anon28802
740 if (conn_state[conn_no].file_fd == 0) {
745 conn_state[conn_no].file_fd,
758 if (conn_state[conn_no].file_fd != 0) {
786 conn_state[conn_no].file_fd = fd;
811 if (ok && conn_state[conn_no].file_fd == 0) {
828 size_t nRead = pread(conn_state[conn_no].file_fd,
917 if (conn_state[conn_no].file_fd > 0)
918 close(conn_state[conn_no].file_fd);
1189 conn_state[i].file_fd
[all...]
/external/squashfs-tools/squashfs-tools/
H A Dunsquashfs.c880 int write_block(int file_fd, char *buffer, int size, long long hole, int sparse) argument
886 int error = lseek(file_fd, off, SEEK_CUR);
905 if(write_bytes(file_fd, zero_data, avail_bytes)
912 if(write_bytes(file_fd, buffer, size) == -1)
962 void queue_file(char *pathname, int file_fd, struct inode *inode) argument
968 file->fd = file_fd;
1001 unsigned int file_fd, i; local
1008 file_fd = open_wait(pathname, O_CREAT | O_WRONLY |
1010 if(file_fd == -1) {
1027 queue_file(pathname, file_fd, inod
2006 int file_fd; local
[all...]

Completed in 239 milliseconds