HomeSort by relevance Sort by last modified time
    Searched defs:file_fd (Results 1 - 25 of 28) sorted by null

1 2

  /external/ltp/testcases/kernel/syscalls/fstatfs/
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");
  /device/huawei/angler/camera/QCamera2/stack/mm-camera-test/src/
mm_qcamera_rdi.c 41 int file_fd; local
47 file_fd = open(file_name, O_RDWR | O_CREAT, 0777);
48 if (file_fd < 0) {
52 write(file_fd,
57 close(file_fd);
mm_qcamera_app.c 242 int file_fd; local
248 file_fd = open(file_name, O_RDWR | O_CREAT, 0777);
249 if (file_fd < 0) {
256 write(file_fd,
262 close(file_fd);
272 int file_fd; local
277 file_fd = open(buf, O_RDWR | O_CREAT, 0777);
278 write(file_fd, data, size);
279 close(file_fd);
    [all...]
  /device/lge/bullhead/camera/QCamera2/stack/mm-camera-test/src/
mm_qcamera_rdi.c 41 int file_fd; local
47 file_fd = open(file_name, O_RDWR | O_CREAT, 0777);
48 if (file_fd < 0) {
52 write(file_fd,
57 close(file_fd);
mm_qcamera_app.c 242 int file_fd; local
248 file_fd = open(file_name, O_RDWR | O_CREAT, 0777);
249 if (file_fd < 0) {
256 write(file_fd,
262 close(file_fd);
272 int file_fd; local
277 file_fd = open(buf, O_RDWR | O_CREAT, 0777);
278 write(file_fd, data, size);
279 close(file_fd);
    [all...]
  /external/ltp/testcases/kernel/syscalls/readlinkat/
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);
  /device/google/marlin/camera/QCamera2/stack/mm-camera-test/src/
mm_qcamera_rdi.c 47 int file_fd; local
53 file_fd = open(file_name, O_RDWR | O_CREAT, 0777);
54 if (file_fd < 0) {
58 write(file_fd,
63 close(file_fd);
mm_qcamera_app.c 251 int file_fd; local
257 file_fd = open(file_name, O_RDWR | O_CREAT, 0777);
258 if (file_fd < 0) {
265 write(file_fd,
271 close(file_fd);
281 int file_fd; local
286 file_fd = open(buf, O_RDWR | O_CREAT, 0777);
287 write(file_fd, data, size);
288 close(file_fd);
    [all...]
  /external/ltp/lib/
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/
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");
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_SETLKW, &lock5) < 0)
    [all...]
  /external/ltp/testcases/kernel/syscalls/readdir/
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);
  /system/vold/
Loop.cpp 205 int file_fd; local
207 if ((file_fd = open(loopFile, O_RDWR | O_CLOEXEC)) < 0) {
213 if (ioctl(fd, LOOP_SET_FD, file_fd) < 0) {
215 close(file_fd);
228 close(file_fd);
234 close(file_fd);
  /system/core/libsparse/
output_file.c 760 int file_fd = open(file, O_RDONLY | O_BINARY); local
761 if (file_fd < 0) {
765 ret = write_fd_chunk(out, len, file_fd, offset);
767 close(file_fd);
  /device/huawei/angler/camera/QCamera2/HAL/
QCamera2HWICallbacks.cpp 1944 int file_fd = open(buf, O_RDWR | O_CREAT, 0777); local
2007 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); local
2177 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); local
    [all...]
QCameraPostProc.cpp 2361 int file_fd = open(saveName, O_RDWR | O_CREAT, 0655); local
    [all...]
  /device/lge/bullhead/camera/QCamera2/HAL/
QCamera2HWICallbacks.cpp 1944 int file_fd = open(buf, O_RDWR | O_CREAT, 0777); local
2007 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); local
2177 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); local
    [all...]
QCameraPostProc.cpp 2361 int file_fd = open(saveName, O_RDWR | O_CREAT, 0655); local
    [all...]
  /external/valgrind/auxprogs/
valgrind-di-server.c 184 int file_fd; member in struct:__anon35410
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);
    [all...]
  /device/google/marlin/camera/QCamera2/HAL/
QCamera2HWICallbacks.cpp 2595 int file_fd = open(buf, O_RDWR | O_CREAT, 0777); local
2658 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); local
2849 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); local
    [all...]
QCameraPostProc.cpp 2765 int file_fd = open(saveName, O_RDWR | O_CREAT, 0655); local
    [all...]
  /device/google/marlin/camera/QCamera2/HAL3/
QCamera3Channel.cpp 553 int file_fd = open(buf, O_RDWR | O_CREAT, 0777); local
555 if (file_fd >= 0) {
557 fchmod(file_fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
565 written_len += write(file_fd, data,
572 close(file_fd);
2222 int file_fd = open(buf, O_RDWR| O_CREAT, 0644); local
2435 int file_fd = open(buf, O_RDWR| O_CREAT, 0777); local
3206 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); local
    [all...]
  /device/huawei/angler/camera/QCamera2/HAL3/
QCamera3Channel.cpp 482 int file_fd = open(buf, O_RDWR| O_CREAT, 0644); local
483 if (file_fd >= 0) {
484 ssize_t written_len = write(file_fd, frame->buffer, offset.frame_len);
486 close(file_fd);
1900 int file_fd = open(buf, O_RDWR| O_CREAT, 0644); local
2129 int file_fd = open(buf, O_RDWR| O_CREAT, 0777); local
    [all...]
  /device/lge/bullhead/camera/QCamera2/HAL3/
QCamera3Channel.cpp 482 int file_fd = open(buf, O_RDWR| O_CREAT, 0644); local
483 if (file_fd >= 0) {
484 ssize_t written_len = write(file_fd, frame->buffer, offset.frame_len);
486 close(file_fd);
1900 int file_fd = open(buf, O_RDWR| O_CREAT, 0644); local
2129 int file_fd = open(buf, O_RDWR| O_CREAT, 0777); local
    [all...]
  /external/squashfs-tools/squashfs-tools/
unsquashfs.c 880 int write_block(int file_fd, char *buffer, int size, long long hole, int sparse)
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)
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, inode)
2006 int file_fd; local
    [all...]

Completed in 764 milliseconds

1 2