/external/valgrind/memcheck/tests/ |
file_locking.c | 24 static int lock_file(const int fd) 33 return fcntl(fd, F_SETLK, &fl) >= 0; 39 int fd; local 42 fd = open(filename, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); 43 if (fd < 0) 49 flags = fcntl(fd, F_GETFD); 51 if (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) < 0) 55 if (! lock_file(fd)) 62 if (mmap(NULL, 1, PROT_WRITE, MAP_SHARED, fd, 0) == 0) 71 close(fd); [all...] |
writev1.c | 18 static int fd; variable 35 if ((fd = open(f_name, O_WRONLY | O_CREAT, 0666)) < 0) { 39 } else if ((nbytes = write(fd, buf_list[1], K_1)) != K_1) { 44 if (close(fd) < 0) { 49 if ((fd = open(f_name, O_RDWR, 0666)) < 0) { 55 lseek(fd, 0, 0); 56 if (writev(fd, wr_iovec, 2) < 0) { 61 lseek(fd, K_1, 0); 62 if ((nbytes = read(fd, buf_list[0], CHUNK)) != 0) 68 if (writev(fd, wr_iovec, -1) < 0) [all...] |
/prebuilts/go/darwin-x86/src/internal/poll/ |
fd_poll_nacl.go | 13 fd *FD 17 func (pd *pollDesc) init(fd *FD) error { pd.fd = fd; return nil } 23 if pd.fd != nil { 24 syscall.StopIO(pd.fd.Sysfd) 54 // SetDeadline sets the read and write deadlines associated with fd. 55 func (fd *FD) SetDeadline(t time.Time) error [all...] |
/prebuilts/go/linux-x86/src/internal/poll/ |
fd_poll_nacl.go | 13 fd *FD 17 func (pd *pollDesc) init(fd *FD) error { pd.fd = fd; return nil } 23 if pd.fd != nil { 24 syscall.StopIO(pd.fd.Sysfd) 54 // SetDeadline sets the read and write deadlines associated with fd. 55 func (fd *FD) SetDeadline(t time.Time) error [all...] |
/system/core/adb/ |
transport_local.cpp | 84 int fd = network_connect(host.c_str(), port, SOCK_STREAM, 10, &error); local 85 if (fd == -1) { 91 D("client: connected %s remote on fd %d", serial.c_str(), fd); 92 close_on_exec(fd); 93 disable_tcp_nagle(fd); 96 if (!set_tcp_keepalive(fd, 1)) { 100 int ret = register_socket_transport(fd, serial.c_str(), port, 0); 102 adb_close(fd); 111 int fd = -1 local 213 int serverfd, fd; local 300 int fd; local [all...] |
/system/extras/tests/storage/ |
wipe_blkdev.c | 38 static u64 get_block_device_size(int fd) 43 ret = ioctl(fd, BLKGETSIZE64, &size); 51 static int wipe_block_device(int fd, u64 len, int secure) 65 ret = ioctl(fd, req, &range); 84 int fd; local 104 fd = open(devname, O_RDWR); 105 if (fd < 0) { 110 if (fstat(fd, &statbuf) < 0) { 120 len = get_block_device_size(fd); 127 ret = wipe_block_device(fd, len, secure) [all...] |
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/i386/ |
avx512f_vl-wig1-intel.d | 12 [ ]*[a-f0-9]+:[ ]*62 f2 fd 0f 21 f5[ ]*vpmovsxbd xmm6\{k7\},xmm5 13 [ ]*[a-f0-9]+:[ ]*62 f2 fd 8f 21 f5[ ]*vpmovsxbd xmm6\{k7\}\{z\},xmm5 14 [ ]*[a-f0-9]+:[ ]*62 f2 fd 0f 21 31[ ]*vpmovsxbd xmm6\{k7\},DWORD PTR \[ecx\] 15 [ ]*[a-f0-9]+:[ ]*62 f2 fd 0f 21 b4 f4 c0 1d fe ff[ ]*vpmovsxbd xmm6\{k7\},DWORD PTR \[esp\+esi\*8-0x1e240\] 16 [ ]*[a-f0-9]+:[ ]*62 f2 fd 0f 21 72 7f[ ]*vpmovsxbd xmm6\{k7\},DWORD PTR \[edx\+0x1fc\] 17 [ ]*[a-f0-9]+:[ ]*62 f2 fd 0f 21 b2 00 02 00 00[ ]*vpmovsxbd xmm6\{k7\},DWORD PTR \[edx\+0x200\] 18 [ ]*[a-f0-9]+:[ ]*62 f2 fd 0f 21 72 80[ ]*vpmovsxbd xmm6\{k7\},DWORD PTR \[edx-0x200\] 19 [ ]*[a-f0-9]+:[ ]*62 f2 fd 0f 21 b2 fc fd ff ff[ ]*vpmovsxbd xmm6\{k7\},DWORD PTR \[edx-0x204\] 20 [ ]*[a-f0-9]+:[ ]*62 f2 fd 2f 21 f5[ ]*vpmovsxbd ymm6\{k7\},xmm [all...] |
avx512f_vl-wig1.d | 12 [ ]*[a-f0-9]+:[ ]*62 f2 fd 0f 21 f5[ ]*vpmovsxbd %xmm5,%xmm6\{%k7\} 13 [ ]*[a-f0-9]+:[ ]*62 f2 fd 8f 21 f5[ ]*vpmovsxbd %xmm5,%xmm6\{%k7\}\{z\} 14 [ ]*[a-f0-9]+:[ ]*62 f2 fd 0f 21 31[ ]*vpmovsxbd \(%ecx\),%xmm6\{%k7\} 15 [ ]*[a-f0-9]+:[ ]*62 f2 fd 0f 21 b4 f4 c0 1d fe ff[ ]*vpmovsxbd -0x1e240\(%esp,%esi,8\),%xmm6\{%k7\} 16 [ ]*[a-f0-9]+:[ ]*62 f2 fd 0f 21 72 7f[ ]*vpmovsxbd 0x1fc\(%edx\),%xmm6\{%k7\} 17 [ ]*[a-f0-9]+:[ ]*62 f2 fd 0f 21 b2 00 02 00 00[ ]*vpmovsxbd 0x200\(%edx\),%xmm6\{%k7\} 18 [ ]*[a-f0-9]+:[ ]*62 f2 fd 0f 21 72 80[ ]*vpmovsxbd -0x200\(%edx\),%xmm6\{%k7\} 19 [ ]*[a-f0-9]+:[ ]*62 f2 fd 0f 21 b2 fc fd ff ff[ ]*vpmovsxbd -0x204\(%edx\),%xmm6\{%k7\} 20 [ ]*[a-f0-9]+:[ ]*62 f2 fd 2f 21 f5[ ]*vpmovsxbd %xmm5,%ymm6\{%k7\ [all...] |
/external/mesa3d/src/loader/ |
loader.c | 72 int fd; local 74 fd = open(device_name, O_RDWR | O_CLOEXEC); 75 if (fd == -1 && errno == EINVAL) 78 fd = open(device_name, O_RDWR); 79 if (fd != -1) 80 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); 82 return fd; 143 static char *drm_get_id_path_tag_for_fd(int fd) 148 if (drmGetDevice(fd, &device) != 0 163 int i, num_devices, fd; local [all...] |
/hardware/qcom/display/msm8960/liboverlay/ |
mdpWrapper.h | 49 bool getFScreenInfo(int fd, fb_fix_screeninfo& finfo); 52 bool getVScreenInfo(int fd, fb_var_screeninfo& vinfo); 55 bool setVScreenInfo(int fd, fb_var_screeninfo& vinfo); 58 bool startRotator(int fd, msm_rotator_img_info& rot); 61 bool rotate(int fd, msm_rotator_data_info& rot); 64 bool setOverlay(int fd, mdp_overlay& ov); 67 bool endRotator(int fd, int sessionId); 70 bool unsetOverlay(int fd, int ovId); 73 bool getOverlay(int fd, mdp_overlay& ov); 76 bool play(int fd, msmfb_overlay_data& od) [all...] |
/prebuilts/go/darwin-x86/src/net/ |
fd_windows.go | 29 pfd poll.FD 42 pfd: poll.FD{ 54 func (fd *netFD) init() error { 55 errcall, err := fd.pfd.Init(fd.net, true) 62 func (fd *netFD) setAddr(laddr, raddr Addr) { 63 fd.laddr = laddr 64 fd.raddr = raddr 65 runtime.SetFinalizer(fd, (*netFD).Close) 69 func (fd *netFD) connect(ctx context.Context, la, ra syscall.Sockaddr) (syscall.Sockaddr, error) [all...] |
/prebuilts/go/linux-x86/src/net/ |
fd_windows.go | 29 pfd poll.FD 42 pfd: poll.FD{ 54 func (fd *netFD) init() error { 55 errcall, err := fd.pfd.Init(fd.net, true) 62 func (fd *netFD) setAddr(laddr, raddr Addr) { 63 fd.laddr = laddr 64 fd.raddr = raddr 65 runtime.SetFinalizer(fd, (*netFD).Close) 69 func (fd *netFD) connect(ctx context.Context, la, ra syscall.Sockaddr) (syscall.Sockaddr, error) [all...] |
/external/autotest/client/tests/rtc/src/ |
rtctest.c | 36 int i, fd, retval, irqcount = 0; local 54 fd = open(rtc, O_RDONLY); 56 if (fd == -1) { 64 retval = ioctl(fd, RTC_UIE_ON, 0); 80 retval = read(fd, &data, sizeof(unsigned long)); 97 FD_SET(fd, &readfds); 99 retval = select(fd+1, &readfds, NULL, NULL, &tv); 105 retval = read(fd, &data, sizeof(unsigned long)); 116 retval = ioctl(fd, RTC_UIE_OFF, 0); 124 retval = ioctl(fd, RTC_RD_TIME, &rtc_tm) [all...] |
/frameworks/native/opengl/libs/EGL/ |
FileBlobCache.cpp | 55 int fd = open(mFilename.c_str(), O_RDONLY, 0); local 56 if (fd == -1) { 65 if (fstat(fd, &statBuf) == -1) { 67 close(fd); 76 close(fd); 81 PROT_READ, MAP_PRIVATE, fd, 0)); 85 close(fd); 93 close(fd); 99 close(fd); 108 close(fd); 125 int fd = open(fname, O_CREAT | O_EXCL | O_RDWR, 0); local [all...] |
/libcore/luni/src/main/java/libcore/io/ |
Linux.java | 51 public native FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketException; 54 public native void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; 55 public native void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; 63 public native void close(FileDescriptor fd) throws ErrnoException; 64 public native void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; 65 public native void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; 71 public native void fchmod(FileDescriptor fd, int mode) throws ErrnoException; 72 public native void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; 73 public native int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException, InterruptedIOException; 74 public native int fcntlInt(FileDescriptor fd, int cmd, int arg) throws ErrnoException [all...] |
Os.java | 48 public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketException; 51 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; 52 public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; 57 public void close(FileDescriptor fd) throws ErrnoException; 58 public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; 59 public void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; 65 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException; 66 public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; 67 public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException, InterruptedIOException; 68 public int fcntlInt(FileDescriptor fd, int cmd, int arg) throws ErrnoException [all...] |
/bionic/libc/bionic/ |
ioctl.cpp | 34 int ioctl(int fd, int request, ...) { 39 return __ioctl(fd, request, arg);
|
mkfifo.cpp | 37 int mkfifoat(int fd, const char* path, mode_t mode) { 38 return mknodat(fd, path, (mode & ~S_IFMT) | S_IFIFO, 0);
|
pthread_setname_np.cpp | 62 int fd = __open_task_comm_fd(t, O_RDONLY); local 63 if (fd == -1) return errno; 65 ssize_t n = TEMP_FAILURE_RETRY(read(fd, buf, buf_size)); 66 close(fd); 94 int fd = __open_task_comm_fd(t, O_WRONLY); local 95 if (fd == -1) return errno; 97 ssize_t n = TEMP_FAILURE_RETRY(write(fd, thread_name, thread_name_len)); 98 close(fd);
|
/dalvik/dx/tests/083-ssa-phi-placement/ |
Blort.class | |
Blort.java | 48 Object fd; field in class:Blort 51 if (fd == null) {
|
/development/gsi/gsi_util/gsi_util/utils/ |
file_utils.py | 37 fd, path = tempfile.mkstemp(**kwargs) 38 os.close(fd)
|
/external/adhd/cras/src/server/ |
cras_rclient.h | 17 * fd - The file descriptor used for communication with the client. 22 struct cras_rclient *cras_rclient_create(int fd, size_t id); 34 * fd - The file descriptor that was sent by the remote client (or -1 if no 41 int fd);
|
/external/autotest/client/deps/fakemodem/src/ |
fakenet.c | 27 int fd, err; local 29 if ((fd = open ("/dev/net/tun", O_RDWR)) < 0) { 45 if ((err = ioctl (fd, TUNSETIFF, (void *) &ifr)) < 0) { 47 close (fd); 51 return fd; 58 int fd; local 62 fd = tun_alloc (namebuf); 63 if (fd == -1)
|
/external/autotest/client/site_tests/security_mprotect/src/ |
prot_exec.c | 26 int fd; local 32 if ((fd = open(argv[1], O_RDWR|O_CREAT|O_EXCL, S_IRWXU)) < 0) 34 lseek(fd, 100, SEEK_CUR); 35 write(fd, "A", 1); 38 fd, 0)) == MAP_FAILED) 44 fd, 0)) != MAP_FAILED) 49 fd, 0)) == MAP_FAILED) 53 close(fd);
|