Lines Matching refs:fd
88 extern "C" oslFileHandle osl_createFileHandleFromFD( int fd );
192 explicit FileHandle_Impl (int fd, char const * path = "<anon>");
299 FileHandle_Impl::FileHandle_Impl (int fd, char const * path) in FileHandle_Impl() argument
301 m_fd (fd), in FileHandle_Impl()
1270 extern "C" oslFileHandle osl_createFileHandleFromFD( int fd ) in osl_createFileHandleFromFD() argument
1272 if (-1 == fd) in osl_createFileHandleFromFD()
1276 if (-1 == fstat (fd, &aFileStat)) in osl_createFileHandleFromFD()
1279 FileHandle_Impl * pImpl = new FileHandle_Impl (fd); in osl_createFileHandleFromFD()
1414 int fd = open( buffer, flags | O_BINARY, mode ); in osl_openFile() local
1415 if (-1 == fd) in osl_openFile()
1421 int f = fcntl (fd, F_GETFL, 0); in osl_openFile()
1425 (void) close(fd); in osl_openFile()
1428 if (-1 == fcntl (fd, F_SETFL, (f & ~O_NONBLOCK))) in osl_openFile()
1431 (void) close(fd); in osl_openFile()
1438 if (-1 == fstat (fd, &aFileStat)) in osl_openFile()
1441 (void) close(fd); in osl_openFile()
1447 (void) close(fd); in osl_openFile()
1454 if (-1 == flock (fd, LOCK_EX | LOCK_NB)) in osl_openFile()
1457 if ((errno != ENOTSUP) || ((-1 == flock (fd, LOCK_SH | LOCK_NB)) && (errno != ENOTSUP))) in osl_openFile()
1460 (void) close(fd); in osl_openFile()
1473 if (-1 == fcntl (fd, F_SETLK, &aflock)) in osl_openFile()
1476 (void) close(fd); in osl_openFile()
1484 FileHandle_Impl * pImpl = new FileHandle_Impl (fd, buffer); in osl_openFile()
1488 (void) close(fd); in osl_openFile()