Lines Matching refs:fd
96 explicit FileHandle_Impl (int fd, char const * path = "<anon>");
233 FileHandle_Impl::FileHandle_Impl (int fd, char const * path) in FileHandle_Impl() argument
235 m_fd (fd), in FileHandle_Impl()
728 extern "C" oslFileHandle osl_createFileHandleFromFD( int fd ) in osl_createFileHandleFromFD() argument
730 if (-1 == fd) in osl_createFileHandleFromFD()
734 if (-1 == fstat (fd, &aFileStat)) in osl_createFileHandleFromFD()
737 FileHandle_Impl * pImpl = new FileHandle_Impl (fd); in osl_createFileHandleFromFD()
872 int fd = open( buffer, flags, mode ); in osl_openFile() local
873 if (-1 == fd) in osl_openFile()
879 int f = fcntl (fd, F_GETFL, 0); in osl_openFile()
883 (void) close(fd); in osl_openFile()
886 if (-1 == fcntl (fd, F_SETFL, (f & ~O_NONBLOCK))) in osl_openFile()
889 (void) close(fd); in osl_openFile()
896 if (-1 == fstat (fd, &aFileStat)) in osl_openFile()
899 (void) close(fd); in osl_openFile()
905 (void) close(fd); in osl_openFile()
912 if (-1 == flock (fd, LOCK_EX | LOCK_NB)) in osl_openFile()
915 if ((errno != ENOTSUP) || ((-1 == flock (fd, LOCK_SH | LOCK_NB)) && (errno != ENOTSUP))) in osl_openFile()
918 (void) close(fd); in osl_openFile()
931 if (-1 == fcntl (fd, F_SETLK, &aflock)) in osl_openFile()
934 (void) close(fd); in osl_openFile()
942 FileHandle_Impl * pImpl = new FileHandle_Impl (fd, buffer); in osl_openFile()
946 (void) close(fd); in osl_openFile()