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

  /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");
  /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);
  /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);
  /hardware/qcom/camera/msm8998/QCamera2/util/
QCameraHALPP.cpp 322 int file_fd = open(name, O_RDWR | O_CREAT, 0777); local
323 if (file_fd > 0) {
324 fchmod(file_fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
326 writen_bytes = write(file_fd, pBuf, buf_len);
327 close(file_fd);
  /external/ltp/lib/
tst_device.c 136 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);
  /art/runtime/
vdex_file.h 174 int file_fd,
199 static std::unique_ptr<VdexFile> Open(int file_fd,
209 file_fd,
vdex_file.cc 133 int file_fd,
151 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...]
  /hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
mm_qcamera_rdi.c 46 int file_fd; local
52 file_fd = open(file_name, O_RDWR | O_CREAT, 0777);
53 if (file_fd < 0) {
57 write(file_fd,
62 close(file_fd);
mm_qcamera_app.c 252 int file_fd; local
258 file_fd = open(file_name, O_RDWR | O_CREAT, 0777);
259 if (file_fd < 0) {
266 write(file_fd,
272 close(file_fd);
282 int file_fd; local
287 file_fd = open(buf, O_RDWR | O_CREAT, 0777);
288 write(file_fd, data, size);
289 close(file_fd);
    [all...]
  /external/valgrind/auxprogs/
valgrind-di-server.c 184 int file_fd; member in struct:__anon42123
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...]
  /external/toolchain-utils/cros_utils/
logger.py 119 def LogMsg(self, file_fd, term_fd, msg, flush=True):
120 if file_fd:
121 self._WriteTo(file_fd, msg, flush)
  /hardware/qcom/camera/msm8998/QCamera2/HAL/
QCamera2HWICallbacks.cpp 2763 int file_fd = open(buf, O_RDWR | O_CREAT, 0777); local
2826 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); local
3028 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); local
    [all...]
QCameraPostProc.cpp 3083 int file_fd = open(saveName, O_RDWR | O_CREAT, 0655); 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...]
  /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/google/marlin/camera/QCamera2/HAL/
QCamera2HWICallbacks.cpp 2607 int file_fd = open(buf, O_RDWR | O_CREAT, 0777); local
2670 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); local
2861 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); local
    [all...]
QCameraPostProc.cpp 2776 int file_fd = open(saveName, O_RDWR | O_CREAT, 0655); local
    [all...]
  /device/google/marlin/camera/QCamera2/HAL3/
QCamera3Channel.cpp 552 int file_fd = open(buf, O_RDWR | O_CREAT, 0777); local
554 if (file_fd >= 0) {
556 fchmod(file_fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
564 written_len += write(file_fd, data,
572 close(file_fd);
2222 int file_fd = open(buf, O_RDWR| O_CREAT, 0644); local
2444 int file_fd = open(buf, O_RDWR| O_CREAT, 0777); local
3222 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); local
    [all...]
QCamera3HWI.cpp 6474 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); local
    [all...]
  /hardware/qcom/camera/msm8998/QCamera2/HAL3/
QCamera3Channel.cpp 562 int file_fd = open(buf, O_RDWR | O_CREAT, 0777); local
564 if (file_fd >= 0) {
566 fchmod(file_fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
568 written_len = write(file_fd, frame->buffer, frame->frame_len);
578 written_len += write(file_fd, data,
587 close(file_fd);
2414 int file_fd = open(buf, O_RDWR| O_CREAT, 0644); local
2635 int file_fd = open(buf, O_RDWR| O_CREAT, 0777); local
    [all...]
QCamera3HWI.cpp 8828 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); local
    [all...]

Completed in 483 milliseconds