Home
last modified time | relevance | path

Searched refs:file_fd (Results 1 – 9 of 9) sorted by relevance

/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl17.c71 int file_fd; variable
131 if ((file_fd = mkstemp(template)) < 0) { in setup()
135 if (write(file_fd, buf, STRINGSIZE) < 0) { in setup()
172 close(file_fd); in cleanup()
190 if (fcntl(file_fd, F_SETLK, &lock1) < 0) { in do_child1()
201 fcntl(file_fd, F_SETLK, &unlock); in do_child1()
222 if (fcntl(file_fd, F_SETLK, &lock2) < 0) { in do_child2()
233 if (fcntl(file_fd, F_SETLKW, &lock4) < 0) { in do_child2()
260 if (fcntl(file_fd, F_SETLK, &lock3) < 0) { in do_child3()
271 if (fcntl(file_fd, F_SETLKW, &lock5) < 0) { in do_child3()
[all …]
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); in setup()
178 if (file_fd > 0 && close(file_fd)) in cleanup()
/external/ltp/testcases/kernel/syscalls/fstatfs/
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); in setup()
116 if (file_fd > 0 && close(file_fd)) in cleanup()
/external/ltp/testcases/kernel/syscalls/readdir/
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); in setup()
146 if (file_fd > 0) in cleanup()
147 close(file_fd); in cleanup()
/external/ltp/testcases/kernel/syscalls/readlinkat/
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); in setup()
119 close(file_fd); in cleanup()
/external/ltp/lib/
Dtst_device.c135 int dev_fd, file_fd; in attach_device() local
143 file_fd = open(file, O_RDWR); in attach_device()
144 if (file_fd < 0) { in attach_device()
150 if (ioctl(dev_fd, LOOP_SET_FD, file_fd) < 0) { in attach_device()
152 close(file_fd); in attach_device()
159 close(file_fd); in attach_device()
/external/valgrind/auxprogs/
Dvalgrind-di-server.c184 int file_fd; member
740 if (conn_state[conn_no].file_fd == 0) { in handle_transaction()
745 conn_state[conn_no].file_fd, in handle_transaction()
758 if (conn_state[conn_no].file_fd != 0) { in handle_transaction()
786 conn_state[conn_no].file_fd = fd; in handle_transaction()
811 if (ok && conn_state[conn_no].file_fd == 0) { in handle_transaction()
828 size_t nRead = pread(conn_state[conn_no].file_fd, in handle_transaction()
917 if (conn_state[conn_no].file_fd > 0) in handle_transaction()
918 close(conn_state[conn_no].file_fd); in handle_transaction()
1189 conn_state[i].file_fd = 0; /* not known yet */ in main()
/external/squashfs-tools/squashfs-tools/
Dunsquashfs.c880 int write_block(int file_fd, char *buffer, int size, long long hole, int sparse) in write_block() argument
886 int error = lseek(file_fd, off, SEEK_CUR); in write_block()
905 if(write_bytes(file_fd, zero_data, avail_bytes) in write_block()
912 if(write_bytes(file_fd, buffer, size) == -1) in write_block()
962 void queue_file(char *pathname, int file_fd, struct inode *inode) in queue_file() argument
968 file->fd = file_fd; in queue_file()
1001 unsigned int file_fd, i; in write_file() local
1008 file_fd = open_wait(pathname, O_CREAT | O_WRONLY | in write_file()
1010 if(file_fd == -1) { in write_file()
1027 queue_file(pathname, file_fd, inode); in write_file()
[all …]
/external/toolchain-utils/cros_utils/
Dlogger.py119 def LogMsg(self, file_fd, term_fd, msg, flush=True): argument
120 if file_fd:
121 self._WriteTo(file_fd, msg, flush)