Searched refs:fd (Results 326 - 350 of 571) sorted by relevance

<<11121314151617181920>>

/haiku/src/tests/system/libroot/posix/
H A Dfseek_test.cpp35 int fd; local
53 fd = mkstemp(fname);
54 if (fd == -1)
57 fp = fdopen(fd, "w+");
108 } else if (lseek(fd, 0, SEEK_CUR) != 0) {
126 } else if (lseek(fd, 0, SEEK_CUR) != 0) {
144 } else if (lseek(fd, 0, SEEK_CUR) != 0) {
162 } else if (lseek(fd, 0, SEEK_CUR) != 0) {
180 } else if (lseek(fd, 0, SEEK_CUR) != 0) {
198 } else if (lseek(fd,
[all...]
/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/add-ons/kernel/file_cache/
H A Dlaunch_speedup.cpp118 status_t LoadFromDirectory(int fd);
538 int fd = _kern_open(directoryFD, Name(), O_RDONLY, 0); local
539 if (fd < B_OK)
540 return fd;
543 if (fstat(fd, &stat) != 0) {
544 close(fd);
551 close(fd);
557 close(fd);
561 if (read(fd, buffer, stat.st_size) < stat.st_size) {
563 close(fd);
597 int fd = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0644); local
[all...]
/haiku/headers/private/storage/
H A DFileDescriptorIO.h14 BFileDescriptorIO(int fd,
/haiku/src/add-ons/accelerants/et6x00/
H A DSetDisplayMode.c22 return ioctl(fd, ET6000_SET_DISPLAY_MODE, &mode, sizeof(mode));
/haiku/src/servers/midi/
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)
/haiku/headers/os/package/hpkg/
H A DPackageReader.h39 status_t Init(int fd, bool keepFD, uint32 flags = 0);
/haiku/headers/private/package/hpkg/
H A DPackageWriterImpl.h55 status_t AddEntry(const char* fileName, int fd = -1);
78 status_t _RegisterEntry(const char* fileName, int fd);
80 const char* name, size_t nameLength, int fd,
106 void _AddDirectoryChildren(Entry* entry, int fd,
/haiku/src/apps/debugger/user_interface/gui/team_window/
H A DConsoleOutputView.h27 int32 fd, const BString& output);
/haiku/headers/os/net/
H A DSocket.h35 void _SetTo(int fd, const BNetworkAddress& local,
/haiku/src/tools/unzip/unix/
H A Dunxcfg.h34 extern int _kern_open(int fd, const char *path, int openMode, int perms);
/haiku/src/apps/poorman/libhttpd/
H A Dlibhttpd.h184 ** httpd_server* which includes a socket fd that you can select() on.
210 /* When a listen fd is ready to read, call this. It does the accept() and
211 ** returns an httpd_conn* which includes the fd to read the request from and
292 extern void httpd_set_ndelay( int fd );
295 extern void httpd_clear_ndelay( int fd );
298 extern int httpd_read_fully( int fd, void* buf, size_t nbytes );
301 extern int httpd_write_fully( int fd, const char* buf, size_t nbytes );
/haiku/headers/posix/
H A Ddirent.h39 DIR* fdopendir(int fd);
/haiku/src/add-ons/accelerants/radeon_hd/
H A Daccelerant_protos.h26 status_t radeon_init_accelerant(int fd);
/haiku/src/add-ons/accelerants/vesa/
H A Daccelerant.cpp142 int fd = open(path, B_READ_WRITE); local
143 if (fd < 0)
146 status_t status = init_common(fd, true);
162 close(fd);
/haiku/headers/os/drivers/
H A Dfs_interface.h263 float (*identify_partition)(int fd, partition_data* partition,
265 status_t (*scan_partition)(int fd, partition_data* partition,
292 status_t (*defragment)(int fd, partition_id partition,
294 status_t (*repair)(int fd, partition_id partition, bool checkOnly,
296 status_t (*resize)(int fd, partition_id partition, off_t size,
298 status_t (*move)(int fd, partition_id partition, off_t offset,
300 status_t (*set_content_name)(int fd, partition_id partition,
302 status_t (*set_content_parameters)(int fd, partition_id partition,
304 status_t (*initialize)(int fd, partition_id partition, const char* name,
306 status_t (*uninitialize)(int fd, partition_i
[all...]
/haiku/headers/private/fs_shell/
H A Dfssh_fs_interface.h284 float (*identify_partition)(int fd, fssh_partition_data *partition,
286 fssh_status_t (*scan_partition)(int fd, fssh_partition_data *partition,
314 fssh_status_t (*defragment)(int fd, fssh_partition_id partition,
316 fssh_status_t (*repair)(int fd, fssh_partition_id partition, bool checkOnly,
318 fssh_status_t (*resize)(int fd, fssh_partition_id partition,
320 fssh_status_t (*move)(int fd, fssh_partition_id partition,
322 fssh_status_t (*set_content_name)(int fd, fssh_partition_id partition,
324 fssh_status_t (*set_content_parameters)(int fd, fssh_partition_id partition,
326 fssh_status_t (*initialize)(int fd, fssh_partition_id partition,
329 fssh_status_t (*uninitialize)(int fd, fssh_partition_i
[all...]
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/fuse/
H A Dfuse_main.cpp77 int fd = open("/dev/null", O_RDONLY); local
78 if (fd < 0) {
84 if (fd > 2) {
85 close(fd);
/haiku/src/system/libroot/posix/sys/
H A Dmman.cpp92 mmap(void* address, size_t length, int protection, int flags, int fd, argument
103 fd = -1;
104 } else if (fd < 0) {
151 length, areaProtection, mapping, true, fd, offset);
/haiku/src/add-ons/accelerants/virtio/
H A Daccelerant_protos.h19 status_t virtio_gpu_init_accelerant(int fd);
/haiku/src/kits/storage/
H A DFileDescriptorIO.cpp15 BFileDescriptorIO::BFileDescriptorIO(int fd, bool takeOverOwnership) argument
17 fFD(fd),
/haiku/src/kits/package/hpkg/
H A DPackageWriter.cpp141 BPackageWriter::AddEntry(const char* fileName, int fd) argument
146 return fImpl->AddEntry(fileName, fd);
/haiku/src/tools/
H A Ddata_to_source.cpp16 write_string(int fd, const char* data) argument
22 ssize_t written = write(fd, data, len);
/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/bin/consoled/
H A Dconsoled.cpp71 update_leds(int fd, uint32 modifiers) argument
82 ioctl(fd, KB_SET_LEDS, &lockIO, sizeof(lockIO));
264 int fd = open(path, O_RDONLY); local
265 if (fd >= 0) {
267 if (ioctl(fd, KB_SET_DEBUG_READER, NULL, 0) == 0) {
269 keyboard->device = fd;
274 close(fd);
285 close(fd);

Completed in 118 milliseconds

<<11121314151617181920>>