/external/ltp/testcases/kernel/syscalls/fstatfs/ |
H A D | fstatfs01.c | 56 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/lib/ |
H A D | tst_device.c | 133 int dev_fd, file_fd, err; local 136 file_fd = SAFE_OPEN(cleanup_fn, file, O_RDWR); 138 if (ioctl(dev_fd, LOOP_SET_FD, file_fd) < 0) { 141 close(file_fd); 148 close(file_fd);
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl07.c | 69 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 D | fcntl17.c | 71 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 D | readdir21.c | 54 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 D | readlinkat02.c | 44 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/valgrind/auxprogs/ |
H A D | valgrind-di-server.c | 184 int file_fd; member in struct:__anon22805 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 D | unsquashfs.c | 880 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...] |