Searched refs:fFD (Results 1 - 25 of 50) sorted by relevance

12

/haiku/src/build/libroot/
H A DLocalFD.h24 fFD = -1;
29 fFD = fd;
36 return fFD;
41 return (fFD < 0 ? fPath.c_str() : NULL);
51 result = fstat(fFD, &st);
58 int fFD; member in class:LocalFD
/haiku/src/kits/storage/
H A DFileDescriptorIO.cpp17 fFD(fd),
26 close(fFD);
33 ssize_t bytesRead = read(fFD, buffer, size);
41 ssize_t bytesWritten = write(fFD, buffer, size);
49 ssize_t bytesRead = pread(fFD, buffer, size, position);
57 ssize_t bytesWritten = pwrite(fFD, buffer, size, position);
65 off_t result = lseek(fFD, position, seekMode);
73 off_t result = lseek(fFD, 0, SEEK_CUR);
81 return ftruncate(fFD, size) == 0 ? B_OK : errno;
89 if (fstat(fFD,
[all...]
/haiku/src/add-ons/media/media-add-ons/opensound/
H A DOpenSoundDeviceMixer.cpp19 if (fFD != 0) {
20 close(fFD);
29 fFD = open(info->devnode, O_RDWR);
30 if (fFD < 0) {
54 if (ioctl(fFD, SNDCTL_MIX_NREXT, &n, sizeof(int)) < 0) {
75 if (ioctl(fFD, SNDCTL_MIX_EXTINFO, info, sizeof(*info)) < 0) {
95 if (ioctl(fFD, SNDCTL_MIX_READ, value, sizeof(*value)) < 0) {
115 if (ioctl(fFD, SNDCTL_MIX_WRITE, value, sizeof(*value)) < 0) {
133 if (ioctl(fFD, SNDCTL_MIX_ENUMINFO, info, sizeof(*info)) < 0) {
H A DOpenSoundDeviceMixer.h20 int FD() const { return fFD; };
43 int fFD; member in class:OpenSoundDeviceMixer
H A DOpenSoundDeviceEngine.cpp22 if (fFD != 0) {
23 close(fFD);
31 , fFD(-1)
86 fFD = open(fAudioInfo.devnode, omode);
87 if (fFD < 0) {
93 if (ioctl(fFD, SNDCTL_DSP_COOKEDMODE, &v, sizeof(int)) < 0) {
104 if (ioctl(fFD, SNDCTL_DSP_SETFRAGMENT, &v, sizeof(int)) < 0) {
119 if (fFD > -1)
120 close(fFD);
121 fFD
[all...]
H A DOpenSoundDeviceEngine.h20 int FD() const { return fFD; };
88 int fFD; member in class:OpenSoundDeviceEngine
/haiku/src/kits/package/hpkg/
H A DFDDataReader.cpp20 fFD(fd)
28 fFD = fd;
35 ssize_t bytesRead = pread(fFD, buffer, size, offset);
H A DAttributeDataReader.cpp22 fFD(fd),
32 ssize_t bytesRead = fs_read_attr(fFD, fAttribute, fType, offset, buffer,
/haiku/headers/private/storage/
H A Dstorage_support.h110 : fFD(fd)
122 fFD = fd;
130 // if (fFD >= 0)
131 // _kern_close(fFD);
132 // fFD = -1;
137 int fd = fFD;
138 fFD = -1;
143 int fFD; member in class:BPrivate::Storage::FDCloser
H A DFileDescriptorIO.h38 int fFD; member in class:BFileDescriptorIO
/haiku/src/add-ons/kernel/file_systems/netfs/server/
H A DNodeHandle.cpp85 : fFD(-1)
111 error = FDManager::Open(path.GetPath(), openMode | O_NOTRAVERSE, 0, fFD);
124 if (fFD < 0)
128 if (close(fFD) < 0)
130 fFD = -1;
139 if (fFD < 0)
142 ssize_t bytesRead = read_pos(fFD, pos, buffer, size);
155 if (fFD < 0)
158 ssize_t bytesWritten = write_pos(fFD, pos, buffer, size);
171 if (fFD <
[all...]
/haiku/src/system/kernel/fs/
H A Dvfs_tracing.h46 fFD(fd)
54 "fd: %d", fDescriptor, fReferenceCount, fContext, fFD);
59 int fFD; member in class:FileDescriptorTracing::NewFD
86 fFD(fd)
94 "fd: %d", fDescriptor, fReferenceCount, fContext, fFD);
99 int fFD; member in class:FileDescriptorTracing::GetFD
109 fFD(fd)
117 "fd: %d", fDescriptor, fReferenceCount, fContext, fFD);
122 int fFD; member in class:FileDescriptorTracing::RemoveFD
166 fFD(f
181 int fFD; member in class:FileDescriptorTracing::InheritFD
[all...]
/haiku/src/kits/device/
H A DJoystick.cpp56 fFD(-1),
77 if (fFD >= 0)
78 close(fFD);
133 if (fFD >= 0)
134 close(fFD);
139 fFD = open(nameBuffer, O_RDWR | O_NONBLOCK | O_EXCL);
140 if (fFD < 0)
151 ioctl(fFD, B_JOYSTICK_SET_DEVICE_MODULE, &fJoystickInfo->module_info,
153 ioctl(fFD, B_JOYSTICK_GET_DEVICE_MODULE, &fJoystickInfo->module_info,
207 return fFD;
[all...]
/haiku/src/system/libnetwork/
H A Dinterfaces.cpp28 fFD = socket(AF_INET, SOCK_DGRAM, 0);
33 if (fFD >= 0)
34 close(fFD);
37 int FD() const { return fFD; }
40 int fFD; member in class:BPrivate::Socket
/haiku/src/system/kernel/disk_device_manager/
H A DKDiskDevice.cpp34 fFD(-1),
66 fFD = open(path, O_RDONLY);
67 if (fFD < 0)
96 if (fFD >= 0) {
97 close(fFD);
98 fFD = -1;
297 fFD = fd;
304 return fFD;
361 if (ioctl(fFD, B_GET_MEDIA_STATUS, mediaStatus, sizeof(*mediaStatus)) != 0)
383 if (ioctl(fFD, B_GET_GEOMETR
[all...]
/haiku/src/system/boot/loader/
H A Dpartitions.cpp87 fFD = open_node(node, mode);
92 close(fFD);
95 int Descriptor() const { return fFD; }
98 int fFD; member in class:boot::NodeOpener
121 fFD = dup(fd);
139 close(fFD);
193 ssize_t result = read_pos(fFD, this->offset + position, buffer, bufferSize);
210 ssize_t result = write_pos(fFD, this->offset + position, buffer,
220 if (fstat(fFD, &stat) == B_OK)
231 if (fstat(fFD,
[all...]
/haiku/headers/os/package/hpkg/
H A DDataReader.h50 int fFD; member in class:BPackageKit::BHPKG::BFDDataReader
63 int fFD; member in class:BPackageKit::BHPKG::BAttributeDataReader
/haiku/src/tools/
H A Dset_haiku_revision.cpp320 : fFD(-1),
333 if (fFD >= 0) {
334 close(fFD);
335 fFD = -1;
347 fFD = open(fileName, O_RDWR);
348 if (fFD < 0)
400 if (lseek(fFD, position, SEEK_SET) < 0)
403 ssize_t bytesRead = read(fFD, buffer, size);
421 if (lseek(fFD, position, SEEK_SET) < 0)
424 ssize_t bytesWritten = write(fFD, buffe
479 int fFD; member in class:ELFObject
[all...]
/haiku/src/add-ons/kernel/file_systems/packagefs/package/
H A DPackage.cpp461 fFD(-1)
471 fFD = fd;
483 status_t error = fCachedHeapReader->Init(rawHeapReader, fFD);
507 int fFD; member in struct:Package::CachingPackageReader
527 fFD(-1),
648 return fFD;
652 fFD = openat(fPackagesDirectory->DirectoryFD(), fFileName,
654 if (fFD < 0) {
662 if (fstat(fFD, &st) < 0) {
665 close(fFD);
[all...]
/haiku/src/add-ons/kernel/network/ppp/shared/libppp/
H A DPPPInterface.cpp39 fFD = socket(family, SOCK_DGRAM, 0);
49 // fFD = open(get_stack_driver_path(), O_RDWR);
51 fFD = socket(family, SOCK_DGRAM, 0);
61 if (fFD >= 0)
62 close(fFD);
78 if (fFD < 0)
105 if (fFD < 0) {
106 printf("No fFD\n");
167 status_t status = ioctl(fFD, NET_STACK_CONTROL_NET_MODULE, &args);
408 return ioctl(fFD, NET_STACK_CONTROL_NET_MODUL
[all...]
/haiku/src/tests/system/kernel/file_corruption/fs/
H A DVolume.cpp38 fFD(-1),
60 if (fFD >= 0)
61 close(fFD);
75 fFD = open(device, O_RDWR);
78 if (fFD < 0)
83 fFD = open(device, O_RDONLY);
85 if (fFD < 0)
90 if (fstat(fFD, &st) < 0)
102 if (ioctl(fFD, B_GET_GEOMETRY, &geometry, sizeof(geometry)) < 0)
120 fFD
[all...]
/haiku/src/kits/debugger/elf/
H A DElfFile.cpp33 fFD(fd),
63 ssize_t bytesRead = pread(fFD, fData, fSize, fOffset);
183 fFD(-1),
196 if (fFD >= 0)
197 close(fFD);
205 fFD = open(fileName, O_RDONLY);
206 if (fFD < 0) {
213 if (fstat(fFD, &st) < 0) {
222 ssize_t bytesRead = pread(fFD, elfIdent, sizeof(elfIdent), 0);
335 SymbolLookupSource* source = new(std::nothrow) SymbolLookupSource(fFD);
[all...]
/haiku/headers/private/kernel/boot/
H A Dpartitions.h42 int FD() const { return fFD; }
47 int fFD; member in class:boot::Partition
/haiku/src/tools/fs_shell/
H A Dcommand_cp.cpp145 fFD(-1),
152 if (fFD >= 0)
153 fssh_close(fFD);
161 fFD = fd;
193 if (fs_stat_attr(fFD, name, &hostInfo) < 0)
204 fssh_ssize_t bytesRead = fs_read_attr(fFD, name, type, pos, buffer,
212 fssh_ssize_t bytesWritten = fs_write_attr(fFD, name, type, pos, buffer,
219 return (fs_remove_attr(fFD, name) == 0 ? 0 : fssh_get_errno());
223 int fFD; member in class:FSShell::HostNode
298 fssh_ssize_t bytesRead = read(fFD, buffe
625 int fFD; member in class:FSShell::GuestNode
[all...]
/haiku/src/add-ons/input_server/devices/keyboard/
H A DKeyboardInputDevice.cpp131 fFD(-1),
196 fFD = open(fPath, O_RDWR);
210 return fFD >= 0 ? B_OK : B_ERROR;
222 close(fFD);
223 fFD = -1;
267 if (fFD < B_OK) {
287 if (ioctl(fFD, KB_GET_KEYBOARD_ID, &fKeyboardID,
296 status_t status = ioctl(fFD, KB_READ, &keyInfo, sizeof(keyInfo));
532 } else if (ioctl(fFD, KB_SET_KEY_REPEAT_RATE,
534 LOG_ERR("error when KB_SET_KEY_REPEAT_RATE, fd:%d\n", fFD);
[all...]

Completed in 155 milliseconds

12