Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 25 of 2080) sorted by path

12345678910>>...84

/illumos-gate/usr/src/
H A DTargetdirs91 /dev/fd \
592 $(ROOT)/dev/fd \
610 $(ROOT)/dev/stdin:= LINKDEST=fd/0
611 $(ROOT)/dev/stdout:= LINKDEST=fd/1
612 $(ROOT)/dev/stderr:= LINKDEST=fd/2
/illumos-gate/usr/src/boot/common/
H A Dboot.c304 int fd, error; in getrootmount() local
311 if ((fd = open(lbuf, O_RDONLY)) < 0) in getrootmount()
320 while (fgetstr(lbuf, sizeof (lbuf), fd) >= 0) { in getrootmount()
385 close(fd); in getrootmount()
H A Dbootstrap.h71 int kern_pread(int fd, vm_offset_t dest, size_t len, off_t off);
72 void *alloc_pread(int fd, off_t off, size_t len);
351 ssize_t (*arch_readin)(const int fd, vm_offset_t dest,
H A Dcommands.c65 help_getnext(int fd, char **topic, char **subtopic, char **desc) in help_getnext() argument
72 if (fgetstr(line, 80, fd) < 0) in help_getnext()
H A Dgfx_fb.c1989 int fd, i; in load_font() local
2010 fd = -1; in load_font()
2119 close(fd); in load_font()
2146 int fd, len; in read_list() local
2149 if (fd < 0) in read_list()
2154 close(fd); in read_list()
2162 close(fd); in read_list()
2168 close(fd); in read_list()
2173 close(fd); in read_list()
2188 int fd; in insert_font() local
[all …]
H A Dinstall.c105 read_metatags(int fd) in read_metatags() argument
112 fsize = read(fd, buf, sizeof(buf)); in read_metatags()
191 int error, fd, i, local; in install() local
261 fd = open("/metatags", O_RDONLY); in install()
262 if (fd != -1) { in install()
263 error = read_metatags(fd); in install()
264 close(fd); in install()
H A Dinterp.c202 int prevsrcid, fd, line; in include() local
205 if (((fd = open(filename, O_RDONLY)) == -1)) { in include()
216 while (fgetstr(input, sizeof(input), fd) >= 0) { in include()
236 close(fd); in include()
250 close(fd); in include()
257 bf_vm->sourceId.i = fd+1; /* 0 is user input device */ in include()
H A Dinterp_forth.c266 int fd, rv; in bf_init() local
325 fd = open(rc, O_RDONLY); in bf_init()
326 if (fd != -1) { in bf_init()
327 (void) ficlExecFD(bf_vm, fd); in bf_init()
328 close(fd); in bf_init()
H A Dload_elf.c67 int fd; member
105 close(ef->fd); in __elfN()
137 if (ef->fd != -1) { in __elfN()
138 close(ef->fd); in __elfN()
139 ef->fd = -1; in __elfN()
166 ef.fd = -1; in __elfN()
298 if (ef.fd != -1) in __elfN()
299 close(ef.fd); in __elfN()
840 ef.fd = -1; in __elfN()
938 if (ef.fd != -1) in __elfN()
[all …]
H A Dload_elf_obj.c61 int fd; member
101 if ((ef.fd = open(filename, O_RDONLY)) == -1) in __elfN()
105 bytes_read = read(ef.fd, hdr, sizeof(*hdr)); in __elfN()
177 close(ef.fd); in __elfN()
203 shdr = alloc_pread(ef->fd, (off_t)hdr->e_shoff, shdrbytes); in __elfN()
317 if (kern_pread(ef->fd, (vm_offset_t)cshdr->sh_addr, in __elfN()
H A Dls.c60 int fd; in command_ls() local
69 fd = -1; in command_ls()
106 if (fd == -1) { in command_ls()
145 if (fd != -1) in command_ls()
146 close(fd); in command_ls()
159 int fd; in ls_getdir() local
163 fd = -1; in ls_getdir()
187 if (fd < 0) { in ls_getdir()
204 return (fd); in ls_getdir()
209 if (fd != -1) in ls_getdir()
[all …]
H A Dmisc.c121 kern_pread(int fd, vm_offset_t dest, size_t len, off_t off) in kern_pread() argument
124 if (lseek(fd, off, SEEK_SET) == -1) { in kern_pread()
130 if ((size_t)archsw.arch_readin(fd, dest, len) != len) { in kern_pread()
144 alloc_pread(int fd, off_t off, size_t len) in alloc_pread() argument
155 if (lseek(fd, off, SEEK_SET) == -1) { in alloc_pread()
162 if ((size_t)read(fd, buf, len) != len) { in alloc_pread()
H A Dmodule.c524 struct font *fd; in build_font_module() local
566 fd = bd->font; in build_font_module()
646 int fd; in file_loadraw() local
671 (void) close(fd); in file_loadraw()
681 (void) close(fd); in file_loadraw()
693 (void) close(fd); in file_loadraw()
710 (void) close(fd); in file_loadraw()
724 (void) close(fd); in file_loadraw()
736 (void) close(fd); in file_loadraw()
1295 (void) close(fd); in moduledir_readhints()
[all …]
H A Dmultiboot2.c135 int fd, error; in multiboot2_loadfile() local
155 if ((fd = open(filename, O_RDONLY)) == -1) in multiboot2_loadfile()
164 close(fd); in multiboot2_loadfile()
168 if (read(fd, header_search, MULTIBOOT_SEARCH) != MULTIBOOT_SEARCH) in multiboot2_loadfile()
250 if (lseek(fd, 0, SEEK_SET) == -1) { in multiboot2_loadfile()
256 if (fstat(fd, &st) < 0) { in multiboot2_loadfile()
272 fp->f_size = archsw.arch_readin(fd, fp->f_addr, st.st_size); in multiboot2_loadfile()
326 close(fd); in multiboot2_loadfile()
H A Dzfs_cmd.c62 int fd = (uintptr_t) priv; in ldi_get_size() local
65 ioctl(fd, DIOCGMEDIASIZE, &size); in ldi_get_size()
/illumos-gate/usr/src/boot/efi/libefi/
H A Defipart.c433 efipart_testfd(pdinfo_t *fd, pdinfo_t *data __unused) in efipart_testfd() argument
437 node = efi_devpath_last_node(fd->pd_devpath); in efipart_testfd()
452 pdinfo_t *parent, *fd; in efipart_initfd() local
461 STAILQ_REMOVE(&pdinfo, fd, pdinfo, pd_link); in efipart_initfd()
462 parent = fd->pd_parent; in efipart_initfd()
465 parent->pd_alias = fd->pd_handle; in efipart_initfd()
467 free(fd); in efipart_initfd()
468 fd = parent; in efipart_initfd()
470 fd->pd_unit = acpi->UID; in efipart_initfd()
472 fd->pd_devsw = &efipart_fddev; in efipart_initfd()
[all …]
/illumos-gate/usr/src/boot/efi/loader/arch/i386/
H A Di386_copy.c56 i386_readin(const int fd, vm_offset_t dest, const size_t len) in i386_readin() argument
58 return (read(fd, PTOV(dest), len)); in i386_readin()
/illumos-gate/usr/src/boot/efi/loader/
H A Dcopy.c243 efi_readin(const int fd, vm_offset_t dest, const size_t len) in efi_readin() argument
246 return (read(fd, (void *)dest, len)); in efi_readin()
H A Dmain.c1315 int fd; in command_chain() local
1324 if ((fd = open(name, O_RDONLY)) < 0) { in command_chain()
1329 if (fstat(fd, &st) < -1) { in command_chain()
1331 close(fd); in command_chain()
1338 close(fd); in command_chain()
1341 if (read(fd, buf, st.st_size) != st.st_size) { in command_chain()
1344 close(fd); in command_chain()
1347 close(fd); in command_chain()
/illumos-gate/usr/src/boot/forth/
H A Dbeadm.4th64 O_RDONLY fopen fd !
78 fd @ fclose
85 O_RDONLY fopen fd !
106 fd @ fclose
114 2dup O_RDONLY fopen fd !
138 fd @ fclose
341 O_RDONLY fopen fd !
344 fd @ -1 = if FALSE else
377 fd @ fclose
411 O_RDONLY fopen fd !
[all …]
H A Dpnp.4th194 s" /boot/pnpid.conf" O_RDONLY fopen fd !
195 fd @ -1 <> if
202 fd @ fclose
H A Dsupport.4th426 \ fd
444 variable fd
1032 O_RDONLY fopen fd !
1033 fd @ -1 = if EOPEN throw then
1039 fd @ fclose
1050 O_RDONLY fopen fd !
1053 fd @ fclose
1074 O_RDONLY fopen fd !
1077 fd @ fclose
1213 fd @ freaddir
[all …]
/illumos-gate/usr/src/boot/i386/gptzfsboot/
H A Dzfsboot.c155 int fd; in main() local
299 close(fd); in main()
384 close(fd); in load()
393 close(fd); in load()
401 close(fd); in load()
406 close(fd); in load()
476 close(fd); in load()
535 int fd; in fs_list() local
540 if (fd < 0) in fs_list()
549 close(fd); in fs_list()
[all …]
/illumos-gate/usr/src/boot/i386/libi386/
H A Di386_copy.c215 i386_readin(const int fd, vm_offset_t dest, const size_t len) in i386_readin() argument
222 return (read(fd, PTOV(dest), len)); in i386_readin()
H A Dlibi386.h104 ssize_t i386_readin(const int fd, vm_offset_t dest, const size_t len);

12345678910>>...84