Searched refs:fd (Results 26 - 50 of 571) sorted by last modified time

1234567891011>>

/haiku/src/add-ons/kernel/network/devices/dialup/
H A Ddialup.cpp46 int fd; member in struct:dialup_device
79 ssize_t size = write(device->fd, device->escape_string,
103 ssize_t size = write(device->fd, "ATO", 3);
123 ssize_t bytesWritten = write(device->fd, command, strlen(command));
127 if (write(device->fd, "\r", 1) != 1)
144 ssize_t bytesRead = read(device->fd, &reply[i], 1);
221 device->fd = -1;
262 device->fd = open(device->name, O_RDWR);
263 if (device->fd < 0)
269 if (ioctl(device->fd, TCGET
[all...]
/haiku/src/add-ons/kernel/file_systems/fat/
H A Dfile.cpp1241 status = read_file_io_vec_pages(vol->fd, fileVecs,
1286 status = write_file_io_vec_pages(vol->fd, fileVecs,
/haiku/src/bin/pkgman/
H A Dcommand_search.cpp80 int fd = fileno(stdout); local
82 if (isatty(fd) == 1 && ioctl(fd, TIOCGWINSZ, &windowSize) == 0)
/haiku/src/kits/network/libnetapi/
H A DAbstractSocket.cpp258 int fd = accept(fSocket, (sockaddr*)&source, &sourceLength); local
259 if (fd < 0)
260 return fd;
263 _acceptedSocket = fd;
310 entry.fd = Socket();
H A DSocket.cpp61 int fd = -1; local
63 status_t error = AcceptNext(fd, peer);
68 close(fd);
72 socket->_SetTo(fd, fLocal, peer);
111 BSocket::_SetTo(int fd, const BNetworkAddress& local, argument
117 fSocket = fd;
/haiku/src/add-ons/kernel/file_systems/ext2/
H A Dkernel_interface.cpp52 ext2_identify_partition(int fd, partition_data *partition, void **_cookie) argument
58 status_t status = Volume::Identify(fd, &superBlock);
71 ext2_scan_partition(int fd, partition_data *partition, void *_cookie) argument
/haiku/src/system/boot/loader/
H A Delf.cpp52 static status_t Create(int fd, preloaded_image** _image);
53 static status_t Load(int fd, preloaded_image* image);
59 static status_t _LoadSymbolTable(int fd, ImageType* image);
177 ELFLoader<Class>::Create(int fd, preloaded_image** _image) argument
183 ssize_t length = read_pos(fd, 0, &image->elf_header, sizeof(EhdrType));
209 ELFLoader<Class>::Load(int fd, preloaded_image* _image) argument
227 length = read_pos(fd, elfHeader.e_phoff, programHeaders, size);
357 length = read_pos(fd, header.p_offset,
384 _LoadSymbolTable(fd, image);
480 ELFLoader<Class>::_LoadSymbolTable(int fd, ImageTyp argument
665 elf_load_image(int fd, preloaded_image** _image) argument
701 int fd = open_from(directory, path, O_RDONLY); local
[all...]
H A Dmenu.cpp1096 int fd = open_from(directory, name, O_RDWR | O_CREAT | O_EXCL, 0644); local
1097 if (fd < 0) {
1099 return fd;
1109 ssize_t written = writev(fd, vecs, vecCount);
1112 close(fd);
1117 close(fd);
/haiku/src/system/boot/arch/x86/
H A Darch_cpu.cpp383 int fd = open_from(volume.RootDirectory(), path, O_RDONLY); local
384 if (fd < B_OK) {
389 if (fstat(fd, &stat) < 0) {
391 close(fd);
400 if (read(fd, buffer, length) != length) {
410 close(fd);
/haiku/src/add-ons/kernel/file_systems/ufs2/
H A Dkernel_interface.cpp37 ufs2_identify_partition(int fd, partition_data *partition, void **_cookie) argument
40 status_t status = Volume::Identify(fd, &superBlock);
53 ufs2_scan_partition(int fd, partition_data *partition, void *_cookie) argument
H A DInode.cpp29 int fd = fVolume->Device(); local
35 if (read_pos(fd, offset, (void*)&fNode, sizeof(fNode)) != sizeof(fNode)) {
98 int fd = fVolume->Device(); local
120 length += read_pos(fd, pos, buffer + length, remainingLength);
129 length = read_pos(fd, pos, buffer, *_length);
139 int fd = fVolume->Device(); local
158 read_pos(fd, indirectOffset,
174 read_pos(fd, indirectOffset,
180 read_pos(fd, indirectOffset,
202 read_pos(fd, indirectOffse
[all...]
H A DVolume.cpp63 Volume::Identify(int fd, ufs2_super_block *superBlock) argument
65 if (read_pos(fd, SBLOCK_UFS2, superBlock,
H A DVolume.h26 status_t Initialize(int fd, const char* name,
40 static status_t Identify(int fd, ufs2_super_block* superBlock);
/haiku/src/system/kernel/
H A Delf.cpp1158 load_elf_symbol_table(int fd, struct elf_image_info *image) argument
1178 length = read_pos(fd, elfHeader->e_shoff, sectionHeaders, size);
1206 = read_pos(fd, sectionHeaders[i].sh_offset, symbolTable, size);
1232 length = read_pos(fd, stringHeader->sh_offset, stringTable, size);
1836 int fd = _kern_open(-1, path, O_RDONLY, 0); local
1837 if (fd < 0)
1838 return fd;
1839 FileDescriptorCloser fdCloser(fd);
1842 status = _kern_read_stat(fd, NULL, false, &st, sizeof(st));
1848 length = _kern_read(fd,
2138 int fd = _kern_open(-1, path, O_RDONLY, 0); local
[all...]
H A Dsyscalls.cpp28 #include <fs/fd.h>
/haiku/src/system/kernel/debug/
H A Ddebug.cpp1450 int fd = open("/var/log/previous_syslog", O_WRONLY | O_CREAT | O_TRUNC, local
1452 if (fd < 0) {
1457 write(fd, buffer, bufferSize);
1458 close(fd);
/haiku/src/add-ons/kernel/file_systems/packagefs/volume/
H A DVolume.cpp695 int fd = openat(fPackagesDirectory->DirectoryFD(), local
697 if (fd < 0) {
703 if (fstat(fd, &adminDirStat) < 0) {
710 DirCloser dir(fdopendir(fd));
815 FileDescriptorCloser fd(openat(packagesDirectory->DirectoryFD(),
819 if (!fd.IsSet()) {
827 if (fstat(fd.Get(), &st) != 0) {
843 ssize_t bytesRead = read(fd.Get(), fileContent, st.st_size);
893 int fd = openat(fPackagesDirectory->DirectoryFD(), ".", O_RDONLY); local
894 if (fd <
988 int fd = package->Open(); local
[all...]
/haiku/src/system/libnetwork/netresolv/resolv/
H A Dres_send.c421 int fd; local
427 fd = EXT(statp).nssocks[0];
440 EXT(statp).nssocks[lastns] = fd;
996 pollfd.fd = s;
/haiku/src/system/libnetwork/netresolv/isc/
H A Deventlib_p.h81 int fd; member in struct:evConn
85 #define EV_CONN_BLOCK 0x0004 /*%< Listener fd was blocking. */
92 int fd; member in struct:evAccept
117 int fd; member in struct:evFile
133 int fd; member in struct:evStream
193 extern short *__fd_eventfield(int fd, __evEmulMask *maskp);
195 extern void __fd_clr(int fd, __evEmulMask *maskp);
196 extern void __fd_set(int fd, __evEmulMask *maskp);
202 #define FD_SET(fd, maskp) \
203 __fd_set(fd, mask
[all...]
H A Dev_streams.c51 static void writable(evContext opaqueCtx, void *uap, int fd, int evmask);
52 static void readable(evContext opaqueCtx, void *uap, int fd, int evmask);
67 evWrite(evContext opaqueCtx, int fd, const struct iovec *iov, int iocnt, argument
77 new->fd = fd;
79 if (evSelectFD(opaqueCtx, fd, EV_WRITE, writable, new, &new->file) < 0)
101 evRead(evContext opaqueCtx, int fd, const struct iovec *iov, int iocnt, argument
111 new->fd = fd;
113 if (evSelectFD(opaqueCtx, fd, EV_REA
270 writable(evContext opaqueCtx, void *uap, int fd, int evmask) argument
293 readable(evContext opaqueCtx, void *uap, int fd, int evmask) argument
[all...]
/haiku/src/tools/fs_shell/
H A Dfuse.cpp18 #include "fd.h"
208 int fd = _kern_open(-1, path, local
210 if (fd >= FSSH_B_OK)
211 return _ERR(_kern_close(fd));
212 return _ERR(fd);
298 int fd = _kern_open(-1, path, fi->flags, local
300 _kern_close(fd);
301 if (fd < FSSH_B_OK)
302 return _ERR(fd);
313 int fd local
331 int fd = _kern_open(-1, path, FSSH_O_WRONLY, local
[all...]
/haiku/headers/private/system/
H A Dsyscalls.h271 extern int _kern_open(int fd, const char *path, int openMode,
275 extern int _kern_open_dir(int fd, const char *path);
276 extern int _kern_open_parent_dir(int fd, char *name,
278 extern status_t _kern_fcntl(int fd, int op, size_t argument);
279 extern status_t _kern_fsync(int fd);
280 extern status_t _kern_flock(int fd, int op);
281 extern off_t _kern_seek(int fd, off_t pos, int seekType);
284 extern status_t _kern_create_dir(int fd, const char *path, int perms);
285 extern status_t _kern_remove_dir(int fd, const char *path);
286 extern status_t _kern_read_link(int fd, cons
[all...]
/haiku/src/add-ons/kernel/network/protocols/unix/
H A Dunix.cpp14 #include <fs/fd.h>
/haiku/src/system/kernel/events/
H A Dwait_for_objects.cpp25 #include <fs/fd.h>
230 fEntries[i].fd = fds->fd;
261 out.Print("<%u: ", fEntries[i].fd);
264 out.Print(", <%u: ", fEntries[i].fd);
283 uint16 fd; member in struct:WaitForObjectsTracing::PollTraceEntry::FDEntry
443 int fd; local
451 for (fd = 0; fd < numFDs; fd
584 int fd = fds[i].fd; local
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/
H A Dkernel_interface.cpp56 fs_identify_partition(int fd, partition_data* partition, void** _cookie) argument
61 if (read_pos(fd, 0, (void*)&boot, 512) != 512) {
86 fs_scan_partition(int fd, partition_data* partition, void* _cookie) argument
100 if (ioctl(fd, B_GET_PATH_FOR_DEVICE, path) != 0) {
129 fs_initialize(int fd, partition_id partitionID, const char* name, argument
137 if (ioctl(fd, B_GET_PATH_FOR_DEVICE, path) == 0)

Completed in 144 milliseconds

1234567891011>>