Searched refs:fd (Results 176 - 200 of 571) sorted by path

1234567891011>>

/haiku/src/libs/agg/src/
H A Dagg_gsv_text.cpp548 FILE* fd = fopen(file, "rb"); local
549 if(fd)
553 fseek(fd, 0l, SEEK_END);
554 len = ftell(fd);
555 fseek(fd, 0l, SEEK_SET);
559 fread(&m_loaded_font[0], 1, len, fd);
562 fclose(fd);
/haiku/src/libs/bsd/
H A Ddaemon.c57 int fd = open("/dev/null", O_RDWR); local
58 if (fd != -1) {
59 dup2(fd, STDIN_FILENO);
60 dup2(fd, STDOUT_FILENO);
61 dup2(fd, STDERR_FILENO);
62 if (fd > STDERR_FILENO)
63 close(fd);
H A Dpty.cpp51 login_tty(int fd) argument
55 if (ioctl(fd, TIOCSCTTY, NULL) != 0)
58 dup2(fd, 0);
59 dup2(fd, 1);
60 dup2(fd, 2);
62 close(fd);
/haiku/src/libs/compat/freebsd_iflib/compat/sys/
H A Dnv.h96 void nvlist_dump(const nvlist_t *nvl, int fd);
/haiku/src/libs/stdc++/legacy/
H A DSFile.cc53 SFile::SFile(int fd, int size) argument
54 : fstream(fd)
H A Dfilebuf.cc57 filebuf::filebuf(int fd) argument
60 _IO_file_attach(this, fd);
63 filebuf::filebuf(int fd, char* p, int len) argument
66 _IO_file_attach(this, fd);
126 int fd = ::open(filename, posix_mode, prot);
127 if (fd < 0)
129 _fileno = fd;
149 filebuf* filebuf::attach(int fd) argument
151 return (filebuf*)_IO_file_attach(this, fd);
H A Dfstream.cc57 fstreambase::fstreambase(int fd) argument
60 _IO_file_attach(rdbuf(), fd); local
70 fstreambase::fstreambase(int fd, char *p, int l) argument
77 _IO_file_attach(rdbuf(), fd); local
94 void fstreambase::attach(int fd) argument
96 if (!rdbuf()->attach(fd))
/haiku/src/libs/uuid/
H A Dgen_uuid.c76 static int fd = -2; local
79 if (fd == -2) {
81 fd = open("/dev/urandom", O_RDONLY);
82 if (fd == -1)
83 fd = open("/dev/random", O_RDONLY | O_NONBLOCK);
84 if (fd >= 0) {
85 i = fcntl(fd, F_GETFD);
87 fcntl(fd, F_SETFD, i | FD_CLOEXEC);
100 return fd;
110 int i, n = nbytes, fd local
[all...]
/haiku/src/servers/midi/
H A DDeviceWatcher.cpp44 DeviceEndpoints(int fd, MidiPortConsumer* consumer, MidiPortProducer* producer) argument
45 : fFD(fd), fConsumer(consumer), fProducer(producer)
228 int fd = open(path, O_RDWR | O_EXCL); local
229 if (fd < 0) {
234 fd = open(path, O_RDONLY | O_EXCL);
235 if (fd < 0 && errno == EACCES)
236 fd = open(path, O_WRONLY | O_EXCL);
237 if (fd < 0)
241 TRACE(("Doing _AddDevice(\"%s\"); fd=%d\n", path, fd));
[all...]
H A DPortDrivers.cpp23 MidiPortConsumer::MidiPortConsumer(int fd, const char* name) argument
25 fFileDescriptor(fd)
45 MidiPortProducer::MidiPortProducer(int fd, const char *name) argument
47 fFileDescriptor(fd), fKeepRunning(true)
H A DPortDrivers.h19 MidiPortConsumer(int fd, const char* path);
30 MidiPortProducer(int fd, const char* path = NULL);
/haiku/src/servers/power/
H A Dlid_monitor.cpp21 int fd = open("/dev/power/acpi_lid/0", O_RDONLY); local
22 if (fd > 0)
23 fFDs.insert(fd);
35 LidMonitor::HandleEvent(int fd) argument
38 if (read(fd, &status, 1) != 1)
H A Dlid_monitor.h20 virtual void HandleEvent(int fd);
H A Dpower_button_monitor.cpp39 int fd = open(path.String(), O_RDONLY); local
40 if (fd > 0)
41 fFDs.insert(fd);
55 PowerButtonMonitor::HandleEvent(int fd) argument
58 if (read(fd, &button_pressed, 1) != 1)
H A Dpower_button_monitor.h21 virtual void HandleEvent(int fd);
H A Dpower_monitor.h20 virtual void HandleEvent(int fd) = 0;
/haiku/src/system/boot/loader/
H A Delf.h15 extern status_t elf_load_image(int fd, preloaded_image** _image);
H A Dpartitions.cpp108 Partition::Partition(int fd) argument
121 fFD = dup(fd);
446 add_partitions_for(int fd, bool mountFileSystems, bool isBootDevice) argument
448 TRACE(("add_partitions_for(fd = %d, mountFS = %s)\n", fd,
451 Partition *partition = new(nothrow) Partition(fd);
481 int fd = open_node(device, O_RDONLY); local
482 if (fd < B_OK)
483 return fd;
485 status_t status = add_partitions_for(fd, mountFileSystem
[all...]
/haiku/src/system/boot/loader/file_systems/bfs/
H A DDirectory.cpp19 extern Node *get_node_from(int fd);
/haiku/src/system/kernel/arch/x86/
H A Dsyscalls_compat.cpp23 #include <fs/fd.h>
/haiku/src/system/kernel/disk_device_manager/
H A DKFileSystem.cpp62 int fd = -1; local
63 if (partition->Open(O_RDONLY, &fd) != B_OK)
65 float result = fModule->identify_partition(fd, partition->PartitionData(),
67 close(fd);
78 int fd = -1; local
79 status_t result = partition->Open(O_RDONLY, &fd);
82 result = fModule->scan_partition(fd, partition->PartitionData(), cookie);
83 close(fd);
135 int fd = -1; local
136 status_t result = partition->Open(O_RDWR, &fd);
168 int fd = -1; local
194 int fd = -1; local
221 int fd = -1; local
246 int fd = -1; local
[all...]
H A Ddisk_device_manager.cpp157 int fd = -1; local
158 status_t result = partition->Open(openMode, &fd);
162 return fd;
/haiku/src/system/kernel/fs/
H A Dvfs_tracing.h10 #include <fs/fd.h>
42 NewFD(io_context* context, int fd, file_descriptor* descriptor) argument
46 fFD(fd)
53 out.Print("fd new: descriptor: %p (%" B_PRId32 "), context: %p, "
54 "fd: %d", fDescriptor, fReferenceCount, fContext, fFD);
74 out.Print("fd put: descriptor: %p (%" B_PRId32 ")", fDescriptor,
82 GetFD(io_context* context, int fd, file_descriptor* descriptor) argument
86 fFD(fd)
93 out.Print("fd get: descriptor: %p (%" B_PRId32 "), context: %p, "
94 "fd
105 RemoveFD(io_context* context, int fd, file_descriptor* descriptor) argument
160 InheritFD(io_context* context, int fd, file_descriptor* descriptor, io_context* parentContext) argument
[all...]
/haiku/src/system/libnetwork/
H A Dr5_compatibility.cpp24 int _netstat(int fd, char **output, int verbose);
48 _netstat(int fd, char **output, int verbose) argument
/haiku/src/system/libroot/os/arch/x86/
H A Dcompatibility.c23 int _klock_node_(int fd);
24 int _kunlock_node_(int fd);
27 int _kstatfs_(dev_t device, void *whatever, int fd, const char *path, fs_info *info);
63 _klock_node_(int fd) argument
65 return _kern_lock_node(fd);
70 _kunlock_node_(int fd) argument
72 return _kern_unlock_node(fd);
91 _kstatfs_(dev_t device, void *whatever, int fd, const char *path, fs_info *info) argument
94 if (fd >= 0) {
96 if (fstat(fd,
[all...]

Completed in 156 milliseconds

1234567891011>>