Home
last modified time | relevance | path

Searched refs:fileDescriptor (Results 1 – 2 of 2) sorted by relevance

/haiku/src/libs/compat/freebsd_network/
H A Dfirmware.c50 int fileDescriptor = -1; in firmware_get() local
81 fileDescriptor = open(firmwarePath, B_READ_ONLY); in firmware_get()
82 if (fileDescriptor >= 0) in firmware_get()
86 if (fileDescriptor < 0) in firmware_get()
89 firmwareFileSize = lseek(fileDescriptor, 0, SEEK_END); in firmware_get()
93 lseek(fileDescriptor, 0, SEEK_SET); in firmware_get()
108 readCount = read(fileDescriptor, (void*)firmware->data, firmwareFileSize); in firmware_get()
118 close(fileDescriptor); in firmware_get()
129 if (fileDescriptor >= 0) in firmware_get()
130 close(fileDescriptor); in firmware_get()
/haiku/src/system/libroot/posix/unistd/
H A Dlockf.cpp14 lockf(int fileDescriptor, int function, off_t size) in lockf() argument
24 return fcntl(fileDescriptor, F_SETLK, &fileLock); in lockf()
28 return fcntl(fileDescriptor, F_SETLKW, &fileLock); in lockf()
32 return fcntl(fileDescriptor, F_SETLK, &fileLock); in lockf()
36 if (fcntl(fileDescriptor, F_GETLK, &fileLock) == -1) in lockf()