Searched refs:fd (Results 76 - 100 of 571) sorted by last modified time

1234567891011>>

/haiku/src/add-ons/kernel/file_systems/cdda/
H A Dkernel_interface.cpp121 void _RestoreAttributes(int fd);
325 write_line(int fd, const char* line) argument
331 write(fd, line, length);
332 write(fd, "\n", 1);
337 write_attributes(int fd, Inode* inode, attr_mode attrMode = kDiscIDAttributes) argument
356 write(fd, &count, sizeof(uint32));
370 write(fd, &type, sizeof(uint32));
373 write(fd, &length, 1);
374 write(fd, attribute->Name(), length);
377 write(fd,
388 read_line(int fd, char* line, size_t length) argument
414 read_attributes(int fd, Inode* inode) argument
653 int fd = _OpenAttributes(O_RDONLY); local
901 int fd = _OpenAttributes(O_RDONLY); local
912 _RestoreAttributes(int fd) argument
939 int fd = _OpenAttributes(O_WRONLY); local
969 int fd = _OpenAttributes(O_RDONLY, kSharedAttributes); local
990 int fd = _OpenAttributes(O_WRONLY, kSharedAttributes); local
1391 cdda_identify_partition(int fd, partition_data* partition, void** _cookie) argument
1444 cdda_scan_partition(int fd, partition_data* partition, void* _cookie) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/bfs/
H A Dkernel_interface.cpp124 bfs_identify_partition(int fd, partition_data* partition, void** _cookie) argument
127 status_t status = Volume::Identify(fd, &superBlock);
143 bfs_scan_partition(int fd, partition_data* partition, void* _cookie) argument
2362 bfs_initialize(int fd, partition_id partitionID, const char* name, argument
2380 status = volume.Initialize(fd, name, parameters.blockSize,
2415 bfs_uninitialize(int fd, partition_id partitionID, off_t partitionSize, argument
2427 if (write_pos(fd, 512, &superBlock, sizeof(superBlock)) < 0)
/haiku/src/add-ons/kernel/file_cache/
H A Drule_based_prefetcher.cpp366 int fd = open("/etc/cache_rules", O_RDONLY); local
367 if (fd < B_OK)
368 return fd;
371 if (fstat(fd, &stat) != 0) {
372 close(fd);
379 close(fd);
385 close(fd);
389 if (read(fd, buffer, stat.st_size) < stat.st_size) {
391 close(fd);
442 close(fd);
[all...]
H A Dlog.cpp12 #include <fs/fd.h>
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/src/tests/system/kernel/
H A Dfifo_poll_test.cpp17 int fd = fileno(f); local
18 printf("fd=%d\n", fd);
21 pfd.fd = fd;
H A Dmmap_fixed_test.cpp16 int fd = mkstemp(tmpfile); local
18 if (fd < 0) {
24 ftruncate(fd, 4096);
27 void* addr = mmap(NULL, 4096, PROT_NONE, MAP_SHARED, fd, 0);
28 void* addr1 = mmap(addr, 4096, PROT_NONE, MAP_SHARED | MAP_FIXED, fd, 0);
H A Dmmap_cut_tests.cpp84 int fd = shm_open(name, O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW, 0600); local
87 if (fd < 0) {
89 return fd;
92 ftruncate(fd, B_PAGE_SIZE * 4);
95 fd, 0);
/haiku/src/system/libroot/os/
H A Ddriver_settings.cpp818 load_driver_settings_file(int fd) argument
820 return load_driver_settings_from_file(fd, NULL);
H A Dstack_protector.cpp27 int fd = open("/dev/random", O_RDONLY, 0); local
28 if (fd >= 0) {
29 done = read(fd, &__stack_chk_guard, sizeof(__stack_chk_guard))
31 close(fd);
H A Dfind_paths.cpp399 int fd = fs_open_attr(path, attribute, B_STRING_TYPE, local
401 if (fd < 0)
405 ssize_t bytesRead = read(fd, nameBuffer, bufferSize - 1);
413 fs_close_attr(fd);
/haiku/src/kits/network/libnetapi/
H A DSecureSocket.cpp403 int fd = -1; local
405 status_t error = AcceptNext(fd, peer);
411 close(fd);
415 socket->_SetTo(fd, fLocal, peer);
/haiku/src/bin/debug/strace/
H A DNetworkTypes.cpp80 unsigned int fd = i * sizeof(unsigned long) * 8 + j; local
81 r += format_number(fd);
203 if ((tmp[i].fd == -1 || tmp[i].revents == 0)
209 r += "{fd=" + format_signed_number(tmp[i].fd);
210 if (tmp[i].fd != -1 && context.GetContents(Context::INPUT_VALUES)) {
/haiku/src/apps/poorman/
H A DPoorManServer.cpp222 fds[0].fd = s->fHttpdServer->listen4_fd;
224 fds[1].fd = s->fHttpdServer->listen6_fd;
237 if (fds[fdi].fd < 0) {
238 continue; // fd is disabled, e.g. ipv4-only
241 continue; // fd is unavailable, try next fd
248 retval = httpd_get_conn(s->fHttpdServer, fds[fdi].fd, hc);
/haiku/src/add-ons/kernel/file_systems/xfs/
H A Dkernel_interface.cpp31 xfs_identify_partition(int fd, partition_data *partition, void **_cookie) argument
38 xfs_scan_partition(int fd, partition_data *partition, void *_cookie) argument
674 xfs_initialize(int fd, partition_id partitionID, const char *name, argument
682 xfs_uninitialize(int fd, partition_id partitionID, off_t partitionSize, argument
/haiku/src/add-ons/accelerants/framebuffer/
H A Daccelerant_protos.h19 status_t framebuffer_init_accelerant(int fd);
/haiku/headers/posix/
H A Dtermios.h229 extern int tcgetattr(int fd, struct termios *termios);
230 extern int tcsetattr(int fd, int option, const struct termios *termios);
231 extern int tcsendbreak(int fd, int duration);
232 extern int tcdrain(int fd);
233 extern int tcflow(int fd, int action);
234 extern int tcflush(int fd, int queueSelector);
235 extern pid_t tcgetsid(int fd);
236 extern int tcsetsid(int fd, pid_t pid);
/haiku/src/add-ons/kernel/file_systems/netfs/server/
H A DClientConnection.cpp799 int fd = -1; local
801 openMode | O_CREAT | O_NOTRAVERSE, request->mode, fd);
803 close(fd);
/haiku/src/system/kernel/cache/
H A Dblock_cache.cpp215 int fd; member in struct:__anon39::block_cache
243 block_cache(int fd, off_t numBlocks, size_t blockSize,
1284 ssize_t written = write_pos(fCache->fd,
1401 fd(_fd),
1949 ssize_t bytesRead = read_pos(cache->fd, blockNumber * blockSize,
2256 kprintf(" fd: %d\n", cache->fd);
3448 block_cache_create(int fd, off_t numBlocks, size_t blockSize, bool readOnly) argument
3450 block_cache* cache = new(std::nothrow) block_cache(fd, numBlocks, blockSize,
/haiku/src/add-ons/kernel/file_systems/netfs/shared/
H A DNetAddress.cpp96 int fd = socket(AF_INET, SOCK_DGRAM, 0); local
97 if (fd < 0)
106 if (ioctl(fd, SIOCGRTSIZE, &count) == 0) {
113 if (ioctl(fd, SIOCGRTTABLE, &table) == 0) {
131 bool result = (bind(fd, (sockaddr*)&addr, sizeof(addr)) == 0);
133 closesocket(fd);
/haiku/headers/compatibility/bsd/sys/
H A Duio.h22 preadv(int fd, const struct iovec *vecs, int count, off_t pos) argument
24 return readv_pos(fd, pos, vecs, count);
29 pwritev(int fd, const struct iovec *vecs, int count, off_t pos) argument
31 return writev_pos(fd, pos, vecs, count);
/haiku/src/tools/fs_shell/
H A Dunistd.cpp48 extern "C" ssize_t _kern_read(int fd, off_t pos, void *buffer, size_t bufferSize);
49 extern "C" ssize_t _kern_write(int fd, off_t pos, const void *buffer, size_t bufferSize);
50 extern "C" int _kern_dup(int fd);
51 extern "C" status_t _kern_close(int fd);
58 test_size(int fd, off_t size) argument
65 if (lseek(fd, size - 1, SEEK_SET) < 0)
68 return (read(fd, &buffer, 1) == 1);
73 get_partition_size(int fd, off_t maxSize) argument
80 if (test_size(fd, mid))
93 fssh_dup(int fd) argument
115 fssh_close(int fd) argument
137 fssh_ioctl(int fd, unsigned long op, ...) argument
371 fssh_read(int fd, void *buffer, fssh_size_t count) argument
389 fssh_read_pos(int fd, fssh_off_t pos, void *buffer, fssh_size_t count) argument
402 fssh_write(int fd, const void *buffer, fssh_size_t count) argument
420 fssh_write_pos(int fd, fssh_off_t pos, const void *buffer, fssh_size_t count) argument
[all...]
H A Duio.cpp25 extern "C" ssize_t _kern_readv(int fd, off_t pos, const struct iovec *vecs, size_t count);
26 extern "C" ssize_t _kern_writev(int fd, off_t pos, const struct iovec *vecs, size_t count);
52 fssh_readv(int fd, const struct fssh_iovec *vector, int count) argument
60 if (FSShell::restricted_file_restrict_io(fd, pos, length) < 0)
64 return readv(fd, systemVecs, count);
66 return _kern_readv(fd, lseek(fd, 0, SEEK_CUR), systemVecs, count);
72 fssh_readv_pos(int fd, fssh_off_t pos, const struct fssh_iovec *vec, int count) argument
79 if (FSShell::restricted_file_restrict_io(fd, pos, length) < 0)
83 return readv_pos(fd, po
91 fssh_writev(int fd, const struct fssh_iovec *vector, int count) argument
111 fssh_writev_pos(int fd, fssh_off_t pos, const struct fssh_iovec *vec, int count) argument
[all...]
/haiku/src/bin/
H A Dfstrim.cpp64 IsDirectory(const int fd) argument
67 if (fstat(fd, &fdStat) == -1) {
77 IsBlockDevice(const int fd) argument
80 if (fstat(fd, &fdStat) == -1) {
90 IsCharacterDevice(const int fd) argument
93 if (fstat(fd, &fdStat) == -1) {
206 int fd = open(path, O_RDONLY); local
207 if (fd < 0) {
213 FileDescriptorCloser closer(fd);
215 if (IsDirectory(fd)) {
[all...]
/haiku/src/system/libroot/posix/crypt/
H A Dcrypt.cpp108 int fd = open("/dev/random", O_RDONLY, 0); local
109 if (fd < 0)
113 const ssize_t bytesRead = read(fd,
117 close(fd);
123 close(fd);

Completed in 197 milliseconds

1234567891011>>