Searched refs:fd (Results 1 - 25 of 1127) sorted by last modified time

1234567891011>>

/haiku-fatelf/headers/os/add-ons/graphics/
H A DAccelerant.h281 typedef status_t (*init_accelerant)(int fd);
/haiku-fatelf/src/add-ons/kernel/partitioning_systems/gpt/
H A DHeader.cpp41 Header::Header(int fd, uint64 lastBlock, uint32 blockSize) argument
51 fStatus = _Read(fd, (uint64)EFI_HEADER_LOCATION * blockSize,
65 status_t status = _Read(fd, lastBlock * blockSize, &fBackupHeader,
97 fStatus = _Read(fd, fHeader.EntriesBlock() * blockSize,
101 fStatus = _Read(fd, fBackupHeader.EntriesBlock() * blockSize,
188 Header::WriteEntry(int fd, uint32 entryIndex) argument
195 status_t status = _Write(fd,
202 status = _WriteHeader(fd);
205 status_t backupStatus = _Write(fd,
214 Header::Write(int fd) argument
234 _WriteHeader(int fd) argument
249 _Write(int fd, off_t offset, const void* data, size_t size) const argument
280 _Read(int fd, off_t offset, void* data, size_t size) const argument
[all...]
H A DHeader.h19 Header(int fd, uint64 lastBlock,
41 status_t WriteEntry(int fd, uint32 entryIndex);
42 status_t Write(int fd);
47 status_t _WriteHeader(int fd);
48 status_t _Write(int fd, off_t offset, const void* data,
54 status_t _Read(int fd, off_t offset, void* data,
H A Defi_gpt.cpp73 efi_gpt_identify_partition(int fd, partition_data* partition, void** _cookie) argument
75 EFI::Header* header = new (std::nothrow) EFI::Header(fd,
91 efi_gpt_scan_partition(int fd, partition_data* partition, void* _cookie) argument
436 efi_gpt_repair(int fd, partition_id partition, bool checkOnly, disk_job_id job) argument
444 efi_gpt_resize(int fd, partition_id partitionID, off_t size, disk_job_id job) argument
446 if (fd < 0)
473 efi_gpt_resize_child(int fd, partition_id partitionID, off_t size, argument
476 if (fd < 0)
511 status_t result = header->WriteEntry(fd, entryIndex);
526 efi_gpt_move(int fd, partition_i argument
534 efi_gpt_move_child(int fd, partition_id partitionID, partition_id childID, off_t offset, disk_job_id job) argument
595 efi_gpt_set_content_name(int fd, partition_id partitionID, const char* name, disk_job_id job) argument
641 efi_gpt_set_type(int fd, partition_id partitionID, const char* type, disk_job_id job) argument
689 efi_gpt_initialize(int fd, partition_id partitionID, const char* name, const char* parameters, off_t partitionSize, disk_job_id job) argument
722 efi_gpt_create_child(int fd, partition_id partitionID, off_t offset, off_t size, const char* type, const char* name, const char* parameters, disk_job_id job, partition_id* childID) argument
794 efi_gpt_delete_child(int fd, partition_id partitionID, partition_id childID, disk_job_id job) argument
[all...]
/haiku-fatelf/src/system/kernel/fs/
H A Dvfs.cpp40 #include <fd.h>
329 static status_t common_path_read_stat(int fd, char* path, bool traverseLeafLink,
337 static status_t fd_and_path_to_vnode(int fd, char* path, bool traverseLeafLink,
503 FDCloser(int fd, bool kernel) : fFD(fd), fKernel(kernel) {} argument
510 void SetTo(int fd, bool kernel) argument
513 fFD = fd;
530 int fd = fFD; local
532 return fd;
2372 \a path must be given in either case. \a fd migh
2394 fd_and_path_to_dir_vnode(int fd, char* path, struct vnode** _vnode, char* filename, bool kernel) argument
2713 get_fd_and_vnode(int fd, struct vnode** _vnode, bool kernel) argument
2735 get_vnode_from_fd(int fd, bool kernel) argument
2760 fd_and_path_to_vnode(int fd, char* path, bool traverseLeafLink, struct vnode** _vnode, ino_t* _parentID, bool kernel) argument
2799 int fd; local
3357 struct file_descriptor* fd = context->fds[i]; local
3932 read_file_io_vec_pages(int fd, const file_io_vec* fileVecs, size_t fileVecCount, const iovec* vecs, size_t vecCount, uint32* _vecIndex, size_t* _vecOffset, size_t* _bytes) argument
3953 write_file_io_vec_pages(int fd, const file_io_vec* fileVecs, size_t fileVecCount, const iovec* vecs, size_t vecCount, uint32* _vecIndex, size_t* _vecOffset, size_t* _bytes) argument
4025 vfs_get_cookie_from_fd(int fd, void** _cookie) argument
4039 vfs_get_vnode_from_fd(int fd, bool kernel, struct vnode** vnode) argument
4196 vfs_read_stat(int fd, const char* path, bool traverseLeafLink, struct stat* stat, bool kernel) argument
5189 int fd = get_new_fd(FDTYPE_FILE, NULL, vnode, cookie, openMode, kernel); local
5255 int fd = open_vnode(vnode, openMode & ~O_CREAT, kernel); local
5291 int fd = get_new_fd(FDTYPE_FILE, NULL, vnode, cookie, openMode, kernel); local
5381 file_create(int fd, char* path, int openMode, int perms, bool kernel) argument
5438 file_open(int fd, char* path, int openMode, bool kernel) argument
5654 dir_create(int fd, char* path, int perms, bool kernel) argument
5709 dir_open(int fd, char* path, bool kernel) argument
5861 dir_remove(int fd, char* path, bool kernel) argument
5920 common_fcntl(int fd, int op, size_t argument, bool kernel) argument
6064 common_sync(int fd, bool kernel) argument
6087 common_lock_node(int fd, bool kernel) argument
6110 common_unlock_node(int fd, bool kernel) argument
6133 common_read_link(int fd, char* path, char* buffer, size_t* _bufferSize, bool kernel) argument
6154 common_create_symlink(int fd, char* path, const char* toPath, int mode, bool kernel) argument
6224 common_unlink(int fd, char* path, bool kernel) argument
6249 common_access(int fd, char* path, int mode, bool effectiveUserGroup, bool kernel) argument
6272 common_rename(int fd, char* path, int newFD, char* newPath, bool kernel) argument
6361 common_path_read_stat(int fd, char* path, bool traverseLeafLink, struct stat* stat, bool kernel) argument
6388 common_path_write_stat(int fd, char* path, bool traverseLeafLink, const struct stat* stat, int statMask, bool kernel) argument
6412 attr_dir_open(int fd, char* path, bool traverseLeafLink, bool kernel) argument
6488 attr_create(int fd, char* path, const char* name, uint32 type, int openMode, bool kernel) argument
6535 attr_open(int fd, char* path, const char* name, int openMode, bool kernel) argument
6708 attr_remove(int fd, const char* name, bool kernel) argument
6804 int fd; local
7007 int fd; local
7797 fs_read_attr(int fd, const char *attribute, uint32 type, off_t pos, void *buffer, size_t readBytes) argument
7840 set_cwd(int fd, char* path, bool kernel) argument
8025 _kern_open(int fd, const char* path, int openMode, int perms) argument
8077 _kern_open_dir(int fd, const char* path) argument
8088 _kern_fcntl(int fd, int op, size_t argument) argument
8095 _kern_fsync(int fd) argument
8102 _kern_lock_node(int fd) argument
8109 _kern_unlock_node(int fd) argument
8138 _kern_create_dir(int fd, const char* path, int perms) argument
8149 _kern_remove_dir(int fd, const char* path) argument
8182 _kern_read_link(int fd, const char* path, char* buffer, size_t* _bufferSize) argument
8212 _kern_create_symlink(int fd, const char* path, const char* toPath, int mode) argument
8251 _kern_unlink(int fd, const char* path) argument
8293 _kern_access(int fd, const char* path, int mode, bool effectiveUserGroup) argument
8324 _kern_read_stat(int fd, const char* path, bool traverseLeafLink, struct stat* stat, size_t statSize) argument
8371 _kern_write_stat(int fd, const char* path, bool traverseLeafLink, const struct stat* stat, size_t statSize, int statMask) argument
8417 _kern_open_attr_dir(int fd, const char* path, bool traverseLeafLink) argument
8432 _kern_open_attr(int fd, const char* path, const char* name, uint32 type, int openMode) argument
8449 _kern_remove_attr(int fd, const char* name) argument
8502 _kern_setcwd(int fd, const char* path) argument
8786 _user_open(int fd, const char* userPath, int openMode, int perms) argument
8822 _user_open_dir(int fd, const char* userPath) argument
8859 _user_open_parent_dir(int fd, char* userName, size_t nameLength) argument
8902 _user_fcntl(int fd, int op, size_t argument) argument
8913 _user_fsync(int fd) argument
8920 _user_flock(int fd, int operation) argument
8969 _user_lock_node(int fd) argument
8976 _user_unlock_node(int fd) argument
9001 _user_create_dir(int fd, const char* userPath, int perms) argument
9018 _user_remove_dir(int fd, const char* userPath) argument
9037 _user_read_link(int fd, const char* userPath, char* userBuffer, size_t* userBufferSize) argument
9081 _user_create_symlink(int fd, const char* userPath, const char* userToPath, int mode) argument
9130 _user_unlink(int fd, const char* userPath) argument
9168 _user_create_fifo(int fd, const char* userPath, mode_t perms) argument
9263 _user_access(int fd, const char* userPath, int mode, bool effectiveUserGroup) argument
9280 _user_read_stat(int fd, const char* userPath, bool traverseLink, struct stat* userStat, size_t statSize) argument
9333 _user_write_stat(int fd, const char* userPath, bool traverseLeafLink, const struct stat* userStat, size_t statSize, int statMask) argument
9391 _user_open_attr_dir(int fd, const char* userPath, bool traverseLeafLink) argument
9410 _user_read_attr(int fd, const char* attribute, off_t pos, void* userBuffer, size_t readBytes) argument
9425 _user_write_attr(int fd, const char* attribute, uint32 type, off_t pos, const void* buffer, size_t writeBytes) argument
9443 _user_stat_attr(int fd, const char* attribute, struct attr_info* userAttrInfo) argument
9480 _user_open_attr(int fd, const char* userPath, const char* userName, uint32 type, int openMode) argument
9511 _user_remove_attr(int fd, const char* userName) argument
9635 _user_setcwd(int fd, const char* userPath) argument
9715 int fd = query_open(device, query, flags, port, token, false); local
[all...]
/haiku-fatelf/src/system/kernel/
H A Dteam.cpp1475 int fd; local
1500 fd = _kern_open(dirfd, path, O_RDONLY, 0);
1501 if (fd < B_OK) {
1502 err = fd;
1508 err = elf_find_best_fat_section(fd, &fat_arch_section);
1519 if (fd >= 0)
1520 _kern_close(fd);
H A Delf.cpp1157 load_elf_symbol_table(int fd, struct elf_image_info *image) argument
1177 length = read_pos(fd, elfHeader->e_shoff, sectionHeaders, size);
1205 = read_pos(fd, sectionHeaders[i].sh_offset, symbolTable, size);
1231 length = read_pos(fd, stringHeader->sh_offset, stringTable, size);
1811 elf_find_fat_arch(int fd, elf_fat_score_arch score_arch, argument
1821 status = _kern_read_stat(fd, NULL, false, &st, sizeof(st));
1828 length = _kern_read(fd, 0, &magic, sizeof(magic));
1845 length = _kern_read(fd, 0, &elfHeader, sizeof(elfHeader));
1882 length = _kern_read(fd, 0, &fatHeader, sizeof(fatHeader));
1897 length = _kern_read(fd, FATELF_DISK_FORMAT_SIZ
1945 elf_find_best_fat_section(int fd, struct elf_fat_arch_section *found_section) argument
1968 elf_find_kernel_compatible_fat_section(int fd, struct elf_fat_arch_section* found_section) argument
1990 elf_find_best_compatible_fat_section(int fd, elf_image_arch *image_arch, struct elf_fat_arch_section *found_section) argument
2007 int fd; local
2239 int fd = _kern_open(-1, path, O_RDONLY, 0); local
[all...]
/haiku-fatelf/build/scripts/
H A Dbuild_fatelf_cross_tools11 local fd="$1"
13 echo "${msg}" 1>&${fd}
542 local fd="1"
544 local fd="2"
547 fprintf $fd "Usage: $0 <options> <command>"
548 fprintf $fd "Required Options: "
549 fprintf $fd " --targets The target triples for which cross tools will be built"
550 fprintf $fd " (eg, i586-pc-haiku, i686-apple-darwin)"
551 fprintf $fd " --prefix The binary installation prefix (eg, /usr/local)."
552 fprintf $fd "
[all...]
/haiku-fatelf/src/kits/storage/
H A DMime.cpp122 int fd = open(device, O_RDONLY); local
123 if (fd < 0)
130 if (ioctl(fd, B_GET_ICON, &iconData) != 0) {
132 close(fd);
166 close(fd);
235 int fd = open(device, O_RDONLY); local
236 if (fd < 0)
242 if (ioctl(fd, B_GET_ICON_NAME, name) >= 0) {
245 close(fd);
260 status_t status = ioctl(fd, B_GET_VECTOR_ICO
[all...]
H A DFile.cpp111 int fd = _kern_open_entry_ref(ref->device, ref->directory, ref->name, local
113 if (fd >= 0) {
114 set_fd(fd);
118 fCStatus = fd;
138 int fd = _kern_open(entry->fDirFd, entry->fName, openMode | O_CLOEXEC, local
140 if (fd >= 0) {
141 set_fd(fd);
145 fCStatus = fd;
163 int fd = _kern_open(-1, path, openMode, DEFFILEMODE & ~__gUmask); local
164 if (fd >
188 int fd = _kern_open(dir->fDirFd, path, openMode, DEFFILEMODE & ~__gUmask); local
317 int fd = _kern_dup(file.get_fd()); local
[all...]
/haiku-fatelf/src/system/kernel/vm/
H A Dvm.cpp36 #include <fs/fd.h>
1851 /*! Will map the file specified by \a fd to an area in memory.
1858 bool unmapAddressRange, int fd, off_t offset, bool kernel)
1864 TRACE(("_vm_map_file(fd = %d, offset = %" B_PRIdOFF ", size = %lu, mapping "
1865 "%" B_PRIu32 ")\n", fd, offset, size, mapping));
1875 if (fd < 0) {
1887 file_descriptor* descriptor = get_fd(get_current_io_context(kernel), fd);
1904 status_t status = vfs_get_vnode_from_fd(fd, kernel, &vnode);
2000 int fd, off_t offset)
2006 mapping, unmapAddressRange, fd, offse
1856 _vm_map_file(team_id team, const char* name, void** _address, uint32 addressSpec, size_t size, uint32 protection, uint32 mapping, bool unmapAddressRange, int fd, off_t offset, bool kernel) argument
1998 vm_map_file(team_id aid, const char* name, void** address, uint32 addressSpec, addr_t size, uint32 protection, uint32 mapping, bool unmapAddressRange, int fd, off_t offset) argument
6162 _user_map_file(const char* userName, void** userAddress, uint32 addressSpec, size_t size, uint32 protection, uint32 mapping, bool unmapAddressRange, int fd, off_t offset) argument
[all...]
H A DVMAnonymousCache.cpp38 #include <fs/fd.h>
89 int fd; member in struct:swap_file
1279 int fd = open(path, O_RDWR | O_NOCACHE, S_IRUSR | S_IWUSR); local
1280 if (fd < 0)
1285 if (fstat(fd, &st) < 0) {
1286 close(fd);
1291 close(fd);
1296 close(fd);
1301 file_descriptor* descriptor = get_fd(get_current_io_context(true), fd);
1306 close(fd);
1592 int fd = open(swapPath, O_RDWR | O_CREAT | O_NOCACHE, S_IRUSR | S_IWUSR); local
[all...]
/haiku-fatelf/src/system/libroot/posix/
H A Dfts.c89 #define FCHDIR(sp, fd) (!ISSET(FTS_NOCHDIR) && fchdir(fd))
536 int fd; local
589 if ((fd = open(".", O_RDONLY | O_CLOEXEC, 0)) < 0)
592 if (fchdir(fd)) {
593 (void)close(fd);
596 (void)close(fd);
865 * the saved fd; if one of fts_open()'s arguments is a relative path
1138 * Change to dir specified by fd or p->fts_accpath without getting
1143 fts_safe_changedir(FTS *sp, FTSENT *p, int fd, cha argument
[all...]
/haiku-fatelf/src/add-ons/accelerants/vesa/
H A Daccelerant_protos.h18 status_t vesa_init_accelerant(int fd);
/haiku-fatelf/src/apps/poorman/libhttpd/
H A Dlibhttpd.c570 httpd_set_ndelay( int fd )
574 flags = fcntl( fd, F_GETFL, 0 );
579 (void) fcntl( fd, F_SETFL, newflags );
586 httpd_clear_ndelay( int fd )
590 flags = fcntl( fd, F_GETFL, 0 );
595 (void) fcntl( fd, F_SETFL, newflags );
3610 httpd_read_fully( int fd, void* buf, size_t nbytes ) argument
3619 r = read( fd, (char*) buf + nread, nbytes - nread );
3638 httpd_write_fully( int fd, const void* buf, size_t nbytes ) argument
3647 r = write( fd, (cha
[all...]
/haiku-fatelf/src/apps/soundrecorder/
H A DRecorderWindow.cpp1208 int fd;
1210 if ((fd = open(path.Path(), O_RDWR | O_CREAT | O_EXCL, 0666)) < 0) {
1213 close(fd);
/haiku-fatelf/src/add-ons/input_server/methods/canna/rk/
H A Ddd.c220 HANDLE fd; local
221 fd = CreateFile(pathname, GENERIC_WRITE,
224 if (fd == INVALID_HANDLE_VALUE) {
227 CloseHandle(fd);
/haiku-fatelf/src/apps/debugger/elf/
H A DElfFile.cpp26 ElfSection::ElfSection(const char* name, int fd, off_t offset, off_t size, argument
30 fFD(fd),
H A DElfFile.h21 ElfSection(const char* name, int fd,
/haiku-fatelf/src/apps/terminal/
H A DTermParse.cpp70 TermParse::TermParse(int fd) argument
72 fFd(fd),
/haiku-fatelf/src/add-ons/accelerants/intel_extreme/
H A Dmode.cpp718 int fd = open("/boot/home/ie_.regs", O_CREAT | O_WRONLY, 0644);
719 if (fd >= 0) {
724 write(fd, line, length);
726 close(fd);
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/bfs/r5/
H A DVolume.cpp534 Volume::Identify(int fd, disk_super_block *superBlock) argument
537 if (read_pos(fd, 0, buffer, sizeof(buffer)) != sizeof(buffer))
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/bfs/fragmenter/
H A Dfragmenter.cpp61 read_from(int fd, off_t pos, void *buffer, size_t size) argument
63 if (lseek(fd, pos, SEEK_SET) < 0
64 || read(fd, buffer, size) != (int)size) {
73 write_to(int fd, off_t pos, const void *buffer, size_t size) argument
75 if (lseek(fd, pos, SEEK_SET) < 0
76 || write(fd, buffer, size) != (int)size) {
147 int fd = open(fileName, O_RDWR); local
148 if (fd < 0) {
156 read_from(fd, 512, &superBlock, sizeof(superBlock));
167 if (fstat(fd,
[all...]
/haiku-fatelf/src/system/libroot/posix/unistd/
H A Dlink.c23 readlinkat(int fd, const char *path, char *buffer, size_t bufferSize) argument
26 status_t status = _kern_read_link(fd, path, buffer, &linkLen);
51 symlinkat(const char *toPath, int fd, const char *symlinkPath) argument
53 RETURN_AND_SET_ERRNO(_kern_create_symlink(fd, symlinkPath, toPath, 0));
67 unlinkat(int fd, const char *path, int flag) argument
70 RETURN_AND_SET_ERRNO(_kern_remove_dir(fd, path));
72 RETURN_AND_SET_ERRNO(_kern_unlink(fd, path));
/haiku-fatelf/src/add-ons/kernel/drivers/graphics/nvidia/
H A Ddriver.c400 int fd; local
408 fd = open (fname, O_WRONLY | O_CREAT, 0666);
409 if (fd < 0) return;
414 write (fd, ((void *)(((uint8 *)rom) + cnt)), 32768);
415 close (fd);
1100 /* we don't do anything on close: there might be dup'd fd */

Completed in 214 milliseconds

1234567891011>>