Searched refs:fdstat (Results 1 – 2 of 2) sorted by relevance
/external/libusb/libusb/os/ |
D | sunos_usb.c | 834 int fd, fdstat, mode; in sunos_check_device_and_status_open() local 919 if ((fdstat = open(statfilename, O_RDWR)) == -1) { in sunos_check_device_and_status_open() 925 count = write(fdstat, &control, sizeof(control)); in sunos_check_device_and_status_open() 930 (void) close(fdstat); in sunos_check_device_and_status_open() 936 if ((fdstat = open(statfilename, O_RDONLY)) == -1) { in sunos_check_device_and_status_open() 948 (void) close(fdstat); in sunos_check_device_and_status_open() 954 hpriv->eps[ep_index].statfd = fdstat; in sunos_check_device_and_status_open() 955 usbi_dbg("ep=0x%02x datafd=%d, statfd=%d", ep_addr, fd, fdstat); in sunos_check_device_and_status_open()
|
/external/perfetto/src/profiling/memory/ |
D | heapprofd_producer.cc | 106 struct stat fdstat; in IsFile() local 108 if (fstat(fd, &fdstat) == -1) { in IsFile() 116 return fdstat.st_ino == fnstat.st_ino; in IsFile()
|