Lines Matching refs:fd
96 explicit FileHandle_Impl (int fd, char const * path = "<anon>");
235 FileHandle_Impl::FileHandle_Impl (int fd, char const * path) in FileHandle_Impl() argument
237 m_fd (fd), in FileHandle_Impl()
730 extern "C" oslFileHandle osl_createFileHandleFromFD( int fd ) in osl_createFileHandleFromFD() argument
732 if (-1 == fd) in osl_createFileHandleFromFD()
736 if (-1 == fstat (fd, &aFileStat)) in osl_createFileHandleFromFD()
739 FileHandle_Impl * pImpl = new FileHandle_Impl (fd); in osl_createFileHandleFromFD()
874 int fd = open( buffer, flags, mode ); in osl_openFile() local
875 if (-1 == fd) in osl_openFile()
881 int f = fcntl (fd, F_GETFL, 0); in osl_openFile()
885 (void) close(fd); in osl_openFile()
888 if (-1 == fcntl (fd, F_SETFL, (f & ~O_NONBLOCK))) in osl_openFile()
891 (void) close(fd); in osl_openFile()
898 if (-1 == fstat (fd, &aFileStat)) in osl_openFile()
901 (void) close(fd); in osl_openFile()
907 (void) close(fd); in osl_openFile()
914 if (-1 == flock (fd, LOCK_EX | LOCK_NB)) in osl_openFile()
917 if ((errno != ENOTSUP) || ((-1 == flock (fd, LOCK_SH | LOCK_NB)) && (errno != ENOTSUP))) in osl_openFile()
920 (void) close(fd); in osl_openFile()
933 if (-1 == fcntl (fd, F_SETLK, &aflock)) in osl_openFile()
936 (void) close(fd); in osl_openFile()
944 FileHandle_Impl * pImpl = new FileHandle_Impl (fd, buffer); in osl_openFile()
948 (void) close(fd); in osl_openFile()