Home
last modified time | relevance | path

Searched refs:fd (Results 51 – 75 of 2080) sorted by relevance

12345678910>>...84

/illumos-gate/usr/src/cmd/lp/filter/postscript/postio/
H A Dparallel.c88 int is_a_parallel_bpp(int fd) in is_a_parallel_bpp() argument
112 int bpp_state(int fd) in bpp_state() argument
114 if (ioctl(fd, BPPIOC_TESTIO)) { in bpp_state()
150 get_ecpp_status(int fd) in get_ecpp_status() argument
182 int is_a_prnio(int fd) in is_a_prnio() argument
201 int prnio_state(int fd) in prnio_state() argument
349 wait_state(fd, get_state); in parallel_comm()
350 (void) write(fd, "\004", 1); in parallel_comm()
355 wait_state(fd, get_state); in parallel_comm()
380 wait_state(fd, get_state); in parallel_comm()
[all …]
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dnotify.c98 int fd; in notify() local
139 fdprintf(fd, N_Msg[2], in notify()
146 fdprintf(fd, N_Msg[3]); in notify()
148 fdprintf(fd, N_Msg[4], in notify()
152 fdprintf(fd, N_Msg[slow? 5 : 6], e); in notify()
154 fdprintf(fd, N_Msg[slow? 7 : 8], k); in notify()
160 fdprintf(fd, N_Msg[9], cp); in notify()
162 fdprintf(fd, "\n"); in notify()
167 print_reason (fd, prs->reason); in notify()
170 close(fd); in notify()
[all …]
H A Dstatus.c96 int fd; in load_pstatus() local
246 close(fd); in load_pstatus()
250 close(fd); in load_pstatus()
284 int fd; in load_fault_status() local
349 int fd; in load_cstatus() local
439 close(fd); in load_cstatus()
562 int fd; in dump_pstatus() local
617 close(fd); in dump_pstatus()
629 int fd; in dump_fault_status() local
654 int fd; in dump_cstatus() local
[all …]
H A Dalerts.c152 int fd; in pformat() local
158 fdprintf(fd, text); in pformat()
159 close(fd); in pformat()
168 fdprintf(fd, Pf_msg[1]); in pformat()
172 fdprintf(fd, Pf_msg[4]); in pformat()
176 fdprintf(fd, "%s", text); in pformat()
178 close(fd); in pformat()
185 int fd, i; in pwformat() local
202 close(fd); in pwformat()
209 int fd, i; in fformat() local
[all …]
/illumos-gate/usr/src/cmd/sgs/libelf/misc/
H A Dnlist.c49 end_elf_job(int fd, Elf * elfdes) in end_elf_job() argument
52 (void) close(fd); in end_elf_job()
71 (void) close(fd); in _elf_nlist()
76 return (end_elf_job(fd, elfdes)); in _elf_nlist()
115 (void) close(fd); in _elf_nlist()
124 int fd; in nlist() local
134 if ((fd = open(name, 0)) < 0) in nlist()
137 (void) close(fd); in nlist()
142 (void) close(fd); in nlist()
151 return (_elf_nlist(fd, list)); in nlist()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dtlx.c80 int fd; in can_use_af() local
92 (void) close(fd); in can_use_af()
311 int fd; in create_bound_endpoint() local
372 (void) t_close(fd); in create_bound_endpoint()
376 return (fd); in create_bound_endpoint()
540 int fd; in tlx_accept() local
561 (void) t_close(fd); in tlx_accept()
573 (void) t_close(fd); in tlx_accept()
612 (void) t_close(fd); in tlx_accept()
625 return (fd); in tlx_accept()
[all …]
H A Dutil.c171 find_pollfd(int fd) in find_pollfd() argument
176 if (poll_fds[n].fd == fd) in find_pollfd()
183 set_pollfd(int fd, uint16_t events) in set_pollfd() argument
188 p = find_pollfd(fd); in set_pollfd()
204 p->fd = fd; in set_pollfd()
212 clear_pollfd(int fd) in clear_pollfd() argument
217 p->fd = -1; in clear_pollfd()
224 isset_pollfd(int fd) in isset_pollfd() argument
304 enable_blocking(int fd) in enable_blocking() argument
306 int flags = fcntl(fd, F_GETFL, 0); in enable_blocking()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/uccid/
H A Dmodify.c42 int fd, ret; in main() local
52 if ((fd = open(argv[1], O_RDWR)) < 0) { in main()
66 ret = ioctl(fd, UCCID_CMD_STATUS, &ucs); in main()
80 ret = ioctl(fd, UCCID_CMD_STATUS, &ucs); in main()
95 ret = ioctl(fd, UCCID_CMD_STATUS, &ucs); in main()
109 ret = ioctl(fd, UCCID_CMD_STATUS, &ucs); in main()
123 ret = ioctl(fd, UCCID_CMD_STATUS, &ucs); in main()
137 ret = ioctl(fd, UCCID_CMD_STATUS, &ucs); in main()
156 ret = ioctl(fd, UCCID_CMD_STATUS, &ucs); in main()
161 ret = read(fd, buf, sizeof (buf)); in main()
[all …]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Diod_cl.c93 int fd, rc; in smb_iod_open_door() local
98 if (fd < 0) in smb_iod_open_door()
108 rc = door_call(fd, &da); in smb_iod_open_door()
111 close(fd); in smb_iod_open_door()
115 close(fd); in smb_iod_open_door()
122 *fdp = fd; in smb_iod_open_door()
136 int fd, rc; in start_iod() local
139 if (fd < 0) { in start_iod()
151 close(fd); in start_iod()
169 int fd = -1; in smb_iod_start() local
[all …]
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_dli.c88 int fd; in di_dli_open() local
101 fd = -1; in di_dli_open()
107 if (fd < 0) in di_dli_open()
111 (void) close(fd); in di_dli_open()
112 fd = -1; in di_dli_open()
119 (void) close(fd); in di_dli_open()
120 fd = -1; in di_dli_open()
126 return (fd); in di_dli_open()
146 di_dli_close(int fd) in di_dli_close() argument
149 if (fd < 0) in di_dli_close()
[all …]
/illumos-gate/usr/src/cmd/consadm/
H A Dconsadm.c299 int fd; in setaux() local
317 (void) close(fd); in setaux()
327 int fd; in unsetaux() local
364 int lckfd, fd; in addtolist() local
506 int fd; in getconsole() local
571 int lckfd, fd; in setfallback() local
729 fds[nfds].fd = fd; in fallbackdaemon()
758 fds[nfds].fd = fd; in fallbackdaemon()
866 int fd; in verifyarg() local
930 int fd; in safeopen() local
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetut.c146 if (fd < 0) { in getutent_frec()
319 if (fd < 0) { in _compat_pututline()
394 if (fd != -1) in _compat_setutent()
411 if (fd != -1) in _compat_endutent()
413 fd = -1; in _compat_endutent()
427 int fd; in _compat_updwtmp() local
432 if (fd < 0) { in _compat_updwtmp()
442 (void) close(fd); in _compat_updwtmp()
674 fd = -1; in lockut()
688 (void) close(fd); in unlockut()
[all …]
/illumos-gate/usr/src/cmd/ipdadm/
H A Dipdadm.c108 int fd, rval; in ipdadm_list() local
122 if (fd < 0) { in ipdadm_list()
146 int rval, fd; in ipdadm_info() local
154 if (fd < 0) { in ipdadm_info()
228 int rval, fd; in ipdadm_corrupt() local
244 if (fd < 0) { in ipdadm_corrupt()
265 int fd, rval; in ipdadm_delay() local
280 if (fd < 0) { in ipdadm_delay()
301 int fd, rval; in ipdadm_drop() local
316 if (fd < 0) { in ipdadm_drop()
[all …]
/illumos-gate/usr/src/cmd/rsrvrctl/
H A Drsrvrctl.c61 query_size(int fd) in query_size() argument
76 const size_t cur = query_size(fd); in do_add()
90 const size_t cur = query_size(fd); in do_remove()
151 do_query(int fd) in do_query() argument
178 int fd; in main() local
228 if (fd < 0) { in main()
241 do_add(fd, sz, chunk_sz); in main()
249 do_remove(fd, sz, chunk_sz); in main()
257 do_set_target(fd, sz, chunk_sz); in main()
259 do_query(fd); in main()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/file-locking/
H A Dacquire-lock.c36 static void acq_flock(int fd, int mode);
41 acq_fcntl(int fd, int cmd, int mode) in acq_fcntl() argument
54 ret = fcntl(fd, cmd, &fl); in acq_fcntl()
69 ret = fcntl(fd, cmd, &fl); in acq_fcntl()
77 acq_flock(int fd, int mode) in acq_flock() argument
88 ret = flock(fd, mode); in acq_flock()
101 ret = flock(fd, LOCK_UN); in acq_flock()
133 int fd; in main() local
153 fd = open(path, rdonly ? O_RDONLY : O_WRONLY); in main()
154 if (fd == -1) { in main()
[all …]
/illumos-gate/usr/src/test/util-tests/tests/dis/i386/
H A D32.avx512cd.out40 libdis_test+0xc3: 62 f2 fd 08 c4 c8 vpconflictq %xmm0,%xmm1
43 libdis_test+0xd5: 62 f2 fd 08 c4 30 vpconflictq (%eax),%xmm6
53 libdis_test+0x104: 62 f2 fd 28 c4 c8 vpconflictq %ymm0,%ymm1
56 libdis_test+0x116: 62 f2 fd 28 c4 30 vpconflictq (%eax),%ymm6
66 libdis_test+0x145: 62 f2 fd 48 c4 c8 vpconflictq %zmm0,%zmm1
118 libdis_test+0x249: 62 f2 fd 08 44 c8 vplzcntq %xmm0,%xmm1
121 libdis_test+0x25b: 62 f2 fd 08 44 30 vplzcntq (%eax),%xmm6
131 libdis_test+0x28a: 62 f2 fd 28 44 c8 vplzcntq %ymm0,%ymm1
134 libdis_test+0x29c: 62 f2 fd 28 44 30 vplzcntq (%eax),%ymm6
144 libdis_test+0x2cb: 62 f2 fd 48 44 c8 vplzcntq %zmm0,%zmm1
[all …]
H A D32.bitalg.out37 libdis_test+0xc3: 62 f2 fd 08 54 f8 vpopcntw %xmm0,%xmm7
38 libdis_test+0xc9: 62 f2 fd 08 54 3f vpopcntw (%edi),%xmm7
49 libdis_test+0x104: 62 f2 fd 28 54 f8 vpopcntw %ymm0,%ymm7
50 libdis_test+0x10a: 62 f2 fd 28 54 3f vpopcntw (%edi),%ymm7
61 libdis_test+0x145: 62 f2 fd 48 54 f8 vpopcntw %zmm0,%zmm7
62 libdis_test+0x14b: 62 f2 fd 48 54 3f vpopcntw (%edi),%zmm7
118 libdis_test+0x279: 62 f2 fd 08 55 f8 vpopcntq %xmm0,%xmm7
119 libdis_test+0x27f: 62 f2 fd 08 55 3f vpopcntq (%edi),%xmm7
133 libdis_test+0x2ca: 62 f2 fd 28 55 f8 vpopcntq %ymm0,%ymm7
134 libdis_test+0x2d0: 62 f2 fd 28 55 3f vpopcntq (%edi),%ymm7
[all …]
H A D64.avx512cd.out40 libdis_test+0xc3: 62 f2 fd 08 c4 c8 vpconflictq %xmm0,%xmm1
43 libdis_test+0xd5: 62 f2 fd 08 c4 30 vpconflictq (%rax),%xmm6
53 libdis_test+0x104: 62 f2 fd 28 c4 c8 vpconflictq %ymm0,%ymm1
56 libdis_test+0x116: 62 f2 fd 28 c4 30 vpconflictq (%rax),%ymm6
66 libdis_test+0x145: 62 f2 fd 48 c4 c8 vpconflictq %zmm0,%zmm1
118 libdis_test+0x249: 62 f2 fd 08 44 c8 vplzcntq %xmm0,%xmm1
121 libdis_test+0x25b: 62 f2 fd 08 44 30 vplzcntq (%rax),%xmm6
131 libdis_test+0x28a: 62 f2 fd 28 44 c8 vplzcntq %ymm0,%ymm1
134 libdis_test+0x29c: 62 f2 fd 28 44 30 vplzcntq (%rax),%ymm6
144 libdis_test+0x2cb: 62 f2 fd 48 44 c8 vplzcntq %zmm0,%zmm1
[all …]
H A D64.bitalg.out37 libdis_test+0xc3: 62 a2 fd 08 54 ec vpopcntw %xmm20,%xmm21
38 libdis_test+0xc9: 62 c2 fd 08 54 32 vpopcntw (%r10),%xmm22
39 libdis_test+0xcf: 62 c2 fd 08 54 b9 vpopcntw 0x64(%r9),%xmm23
49 libdis_test+0x104: 62 a2 fd 28 54 ec vpopcntw %ymm20,%ymm21
50 libdis_test+0x10a: 62 c2 fd 28 54 32 vpopcntw (%r10),%ymm22
61 libdis_test+0x145: 62 a2 fd 48 54 ec vpopcntw %zmm20,%zmm21
62 libdis_test+0x14b: 62 c2 fd 48 54 32 vpopcntw (%r10),%zmm22
118 libdis_test+0x279: 62 a2 fd 08 55 ec vpopcntq %xmm20,%xmm21
119 libdis_test+0x27f: 62 c2 fd 08 55 32 vpopcntq (%r10),%xmm22
133 libdis_test+0x2ca: 62 a2 fd 28 55 ec vpopcntq %ymm20,%ymm21
[all …]
/illumos-gate/usr/src/lib/libsmedia/plugins/floppy/common/
H A Df_format.c57 static void restore_default_chars(int32_t fd,
61 format_floppy(int32_t fd, void *ip) in format_floppy() argument
132 (void) ioctl(fd, FDDEFGEOCHAR, NULL); in format_floppy()
135 if (ioctl(fd, DKIOCINFO, &dkinfo) < 0) { in format_floppy()
142 if (ioctl(fd, DKIOCGAPART, &allmap) < 0) { in format_floppy()
151 if (ioctl(fd, FDIOGCHAR, &fdchar) < 0) { in format_floppy()
177 if (ioctl(fd, DKIOCGGEOM, &fdgeom) < 0) { in format_floppy()
400 if (ioctl(fd, FDRAW, &fdr_seek) < 0) { in format_floppy()
493 if (llseek(fd, (off_t)0, 0) != 0) { in format_floppy()
512 restore_default_chars(int32_t fd, in restore_default_chars() argument
[all …]
/illumos-gate/usr/src/cmd/tic/
H A Dtic_read.c131 int fd; in read_entry() local
151 fd = open(filename, 0); in read_entry()
153 if (fd < 0) in read_entry()
156 read(fd, &header, sizeof (header)); in read_entry()
168 close(fd); in read_entry()
188 read(fd, &ch, 1); in read_entry()
194 read(fd, (char *)bytebuf, 2); in read_entry()
218 close(fd); in read_entry()
235 close(fd); in read_entry()
254 close(fd); in read_entry()
[all …]
/illumos-gate/usr/src/lib/libm/common/m9x/
H A Dfex_log.c207 write(fd, "\n", 1); in print_stack()
226 int fd; in fex_log_entry() local
259 fd = fileno(log_fp); in fex_log_entry()
262 write(fd, "\n", 1); in fex_log_entry()
264 print_stack(fd, stk, fp); in fex_log_entry()
289 int fd; in __fex_mklog() local
357 fd = fileno(log_fp); in __fex_mklog()
363 write(fd, " ", 1); in __fex_mklog()
372 write(fd, ", abort\n", 8); in __fex_mklog()
389 write(fd, "\n", 1); in __fex_mklog()
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Dulockf.c114 int fd; local
118 if (fd == -1) {
125 (void) close(fd);
302 if(fd < 0){
345 fd_mklock(fd) in fd_mklock() argument
346 int fd; in fd_mklock()
409 fd_cklock(fd) in fd_cklock() argument
410 int fd; in fd_cklock()
435 fd_rmlock(fd) in fd_rmlock() argument
436 int fd; in fd_rmlock()
[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/lib/print/libipp-core/common/
H A Dread.c53 if (iread(fd, &size, 2) != 2) { in read_name_with_language()
72 if (iread(fd, &size, 2) != 2) { in read_name_with_language()
400 if (iread(fd, &x, 4) != 4) { in ipp_read_attribute_group()
405 if (iread(fd, &y, 4) != 4) { in ipp_read_attribute_group()
429 if (iread(fd, &s, 2) != 2) { in ipp_read_attribute_group()
435 if (iread(fd, &c, 1) != 1) { in ipp_read_attribute_group()
441 if (iread(fd, &c, 1) != 1) { in ipp_read_attribute_group()
447 if (iread(fd, &c, 1) != 1) { in ipp_read_attribute_group()
453 if (iread(fd, &c, 1) != 1) { in ipp_read_attribute_group()
459 if (iread(fd, &c, 1) != 1) { in ipp_read_attribute_group()
[all …]

12345678910>>...84