Home
last modified time | relevance | path

Searched refs:fdp (Results 1 – 25 of 53) sorted by relevance

123

/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_fdio.c57 fd_data_t *fdp = io->io_data; in fdio_read() local
68 fd_data_t *fdp = io->io_data; in fdio_write() local
79 fd_data_t *fdp = io->io_data; in fdio_seek() local
90 fd_data_t *fdp = io->io_data; in fdio_ctl() local
96 return (fdp->fd_fd); in fdio_ctl()
104 fd_data_t *fdp = io->io_data; in fdio_close() local
106 (void) close(fdp->fd_fd); in fdio_close()
116 return (fdp->fd_name); in fdio_name()
310 fdp->fd_fd = fd; in mdb_fdio_create()
324 io->io_data = fdp; in mdb_fdio_create()
[all …]
/illumos-gate/usr/src/cmd/prstat/
H A Dprfile.c67 fd_close(fd_t *fdp) in fd_close() argument
69 if (fdp) { in fd_close()
70 if (fdp->fd_fd >= 0 && fdp->fd_name[0] != '\0') { in fd_close()
76 fdp->fd_fd = -1; in fd_close()
87 fd_close(fdp); in fd_closeall()
88 fdp++; in fd_closeall()
110 fdp->fd_fd = -1; in fd_recycle()
127 if (fdp != NULL) { in fd_open()
128 if ((strcmp(fdp->fd_name, name) == 0) && (fdp->fd_fd >= 0)) { in fd_open()
130 return (fdp); in fd_open()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dfd.c445 fdp->d_deffdtype = fdp->d_curfdtype = FMT_5H; in fd_attach()
462 fdp->d_deffdtype = fdp->d_curfdtype = FMT_3H; in fd_attach()
468 fdp->d_deffdtype = fdp->d_curfdtype = FMT_5D9; in fd_attach()
473 fdp->d_deffdtype = fdp->d_curfdtype = FMT_3D; in fd_attach()
481 fdp->d_deffdtype = fdp->d_curfdtype = FMT_3E; in fd_attach()
489 bcopy(fdparts[fdp->d_deffdtype], fdp->d_part, in fd_attach()
694 fdp->d_exclmask, fdp->d_regopen[otyp], fdp->d_lyropen[part], in fd_open()
841 if ((1 << fdp->d_curfdtype) & fdp->d_media) { in fdgetlabel()
873 fdp->d_curfdtype = fdp->d_deffdtype; in fdgetlabel()
1002 fdp->d_exclmask, fdp->d_regopen[otyp], in fd_close()
[all …]
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dmlisten.c90 struct pollfd * fdp; in mlistenadd() local
127 fdp->revents = 0; in mlistenadd()
304 fdp->revents = 0; in mlisten()
365 fdp->revents = 0; in mlisten()
387 fdp->revents = 0; in mlisten()
392 fdp->revents = 0; in mlisten()
408 fdp->revents = 0; in mlisten()
429 fdp->revents = 0; in mlisten()
442 fdp->revents = 0; in mlisten()
498 fdp->revents = 0; in mlisten()
[all …]
/illumos-gate/usr/src/common/fs/
H A Dbootfsops.c235 bf_fd_t *fdp = &fds[fd]; in bbootfs_read() local
240 if (fdp->fd_pos >= fdp->fd_file->bf_size) in bbootfs_read()
243 if (fdp->fd_pos + size > fdp->fd_file->bf_size) in bbootfs_read()
244 len = fdp->fd_file->bf_size - fdp->fd_pos; in bbootfs_read()
248 bcopy(fdp->fd_file->bf_addr + fdp->fd_pos, buf, len); in bbootfs_read()
250 fdp->fd_pos += len; in bbootfs_read()
258 bf_fd_t *fdp = &fds[fd]; in bbootfs_lseek() local
265 fdp->fd_pos += addr; in bbootfs_lseek()
268 fdp->fd_pos = addr; in bbootfs_lseek()
271 fdp->fd_pos = fdp->fd_file->bf_size; in bbootfs_lseek()
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dprint_toif.c17 void print_toif(tag, fdp) in print_toif() argument
19 frdest_t *fdp;
21 printf("%s %s", tag, fdp->fd_ifname);
23 if (!fdp->fd_ifp)
27 if (use_inet6 && IP6_NOTZERO(&fdp->fd_ip6.in6)) {
30 inet_ntop(AF_INET6, &fdp->fd_ip6, ipv6addr,
35 if (fdp->fd_ip.s_addr)
36 printf(":%s", inet_ntoa(fdp->fd_ip));
/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_open.c33 __db_open(name, arg_flags, ok_flags, mode, fdp) in __db_open() argument
36 int mode, *fdp;
93 if ((ret = __os_open(name, flags, mode, fdp)) != 0)
112 if (fcntl(*fdp, F_SETFD, 1) == -1) {
115 (void)__os_close(*fdp);
129 __os_open(name, flags, mode, fdp) in __os_open() argument
131 int flags, mode, *fdp;
133 *fdp = __db_jump.j_open != NULL ?
135 return (*fdp == -1 ? errno : 0);
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Danalyze.c1146 const char *oname = fdp->fd_oname, *nname = fdp->fd_nname; in file_open()
1166 fdp->fd_lmp = nlmp; in file_open()
1293 fdp->fd_lmp = nlmp; in file_open()
1309 fdp->fd_ftp = map_obj(lml, fdp, status.st_size, nname, in file_open()
1833 if ((nlmp = ((fdp->fd_ftp)->fct_new_lmp)(lml, lmco, fdp, addr, in load_file()
1989 if (fdp->fd_lmp) in load_so()
2009 if (fdp->fd_lmp) in load_so()
2040 fd = *fdp; in load_so()
2065 *fdp = fd; in load_so()
2066 if (fdp->fd_lmp) in load_so()
[all …]
H A Dcap.c288 if (fdp) in cap_check()
294 if (fdp) in cap_check()
300 if (fdp) in cap_check()
317 else if (fdp) in cap_check()
335 else if (fdp) in cap_check()
469 (fdp->fd_pname && (fdp->fd_pname != fdp->fd_nname) && in cap_check_fdesc()
487 fdp, rej)); in cap_check_fdesc()
500 Fdesc *fdp; in free_fd() local
524 Fdesc *fdp; in cap_dir() local
660 Fdesc *fdp; in cap_filtees() local
[all …]
H A Dpaths.c1183 fullpath(Rt_map *lmp, Fdesc *fdp) in fullpath() argument
1190 if (fdp && (fdp->fd_flags & FLG_FD_RESOLVED)) { in fullpath()
1197 if (fdp->fd_pname) in fullpath()
1198 PATHNAME(lmp) = fdp->fd_pname; in fullpath()
1210 if (fdp && fdp->fd_pname) in fullpath()
1211 PATHNAME(lmp) = fdp->fd_pname; in fullpath()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dmktemp.c75 int* fdp = &fd; in b_mktemp() local
87 fdp = 0; in b_mktemp()
108 fdp = 0; in b_mktemp()
128 mode = (fdp ? (S_IRUSR|S_IWUSR) : S_IRWXU) & ~mask; in b_mktemp()
146 if (!pathtemp(path, sizeof(path), dir, pfx, fdp)) in b_mktemp()
154 if (fdp || unsafe || !mkdir(path, mode)) in b_mktemp()
156 if (fdp) in b_mktemp()
157 close(*fdp); in b_mktemp()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dshiocmd_solaris.c495 struct filedata *fdp; in b_open() local
585 fdp->fd = fd; in b_open()
666 struct filedata *fdp; in b_tmpfile() local
709 fdp->fd = fd; in b_tmpfile()
710 fdp->name = NULL; in b_tmpfile()
742 struct filedata *fdp; in b_dup() local
784 fdp->fd = fd; in b_dup()
785 fdp->name = NULL; in b_dup()
817 struct filedata *fdp; in b_stat() local
854 fdp->statb = statb; in b_stat()
[all …]
/illumos-gate/usr/src/lib/libgen/common/
H A Dp2open.c109 __p2close(int *fdp, FILE **fpp, int kill_sig) in __p2close() argument
116 if (fdp != NULL) { in __p2close()
117 fds[0] = fdp[0]; in __p2close()
118 fds[1] = fdp[1]; in __p2close()
137 if (fdp != NULL) { in __p2close()
/illumos-gate/usr/src/uts/common/fs/fifofs/
H A Dfifosubr.c173 fifodata_t *fdp = buf; in fnode_constructor() local
226 fifodata_t *fdp = buf; in fnode_destructor() local
268 fifodata_t *fdp = buf; in pipe_constructor() local
292 fifodata_t *fdp = buf; in pipe_destructor() local
411 fifodata_t *fdp; in fifovp() local
420 fdp->fifo_lock.flk_ref = 1; in fifovp()
421 fnp = &fdp->fifo_fnode[0]; in fifovp()
518 fifodata_t *fdp; in makepipe() local
522 fdp->fifo_lock.flk_ref = 2; in makepipe()
523 fnp1 = &fdp->fifo_fnode[0]; in makepipe()
[all …]
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmhandler.c213 do_poll(struct pollfd *fdp, int nfds) in do_poll() argument
218 n = poll(fdp, (unsigned long)nfds, -1); /* blocked poll */ in do_poll()
227 for (i = 0; (i < nfds) && (n != 0); i++, fdp++) { in do_poll()
228 if (fdp->revents != 0) { in do_poll()
230 if ((pmptr = find_fd(fdp->fd)) == NULL) { in do_poll()
232 fdp->fd); in do_poll()
234 } else if (fdp->revents & POLLHUP) { in do_poll()
236 } else if (fdp->revents & POLLIN) { in do_poll()
241 } else if (fdp->revents & POLLERR) { in do_poll()
243 getpid(), fdp->fd); in do_poll()
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dssm.c1014 sg_system_fru_descriptor_t *fdp; in ssm_dr_event_handler() local
1018 fdp = (sg_system_fru_descriptor_t *)(((sbbc_msg_t *)arg)->msg_buf); in ssm_dr_event_handler()
1019 if (fdp == NULL) { in ssm_dr_event_handler()
1026 DPRINTF(SSM_EVENT_DEBUG, ("\tnode\t%d\n", fdp->node)); in ssm_dr_event_handler()
1027 DPRINTF(SSM_EVENT_DEBUG, ("\tslot\t%d\n", fdp->slot)); in ssm_dr_event_handler()
1028 DPRINTF(SSM_EVENT_DEBUG, ("\tparent_hdl\t0x%lx\n", fdp->parent_hdl)); in ssm_dr_event_handler()
1029 DPRINTF(SSM_EVENT_DEBUG, ("\tchild_hdl\t0x%lx\n", fdp->child_hdl)); in ssm_dr_event_handler()
1031 EVNT2STR(fdp->event_details))); in ssm_dr_event_handler()
1034 switch (fdp->event_details) { in ssm_dr_event_handler()
1047 (void) ssm_generate_event(fdp->node, fdp->slot, hint); in ssm_dr_event_handler()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/
H A Dpathtmp.c35 pathtmp(char* buf, const char* dir, const char* pfx, int* fdp) in pathtmp() argument
40 return pathtemp(buf, len, dir, pfx, fdp); in pathtmp()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dwrite_msg.c34 krb5_write_message(krb5_context context, krb5_pointer fdp, krb5_data *outbuf) in krb5_write_message() argument
37 int fd = *( (int *) fdp); in krb5_write_message()
H A Dread_msg.c34 krb5_read_message(krb5_context context, krb5_pointer fdp, krb5_data *inbuf) in krb5_read_message() argument
39 int fd = *( (int *) fdp); in krb5_read_message()
/illumos-gate/usr/src/test/zfs-tests/cmd/mmapwrite/
H A Dmmapwrite.c45 mapper(void *fdp) in mapper() argument
48 int fd = *(int *)fdp; in mapper()
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_appinit.c328 __db_appname(dbenv, appname, dir, file, tmp_oflags, fdp, namep) in __db_appname() argument
333 int *fdp;
350 if (fdp != NULL)
351 *fdp = -1;
511 (ret = __db_tmp_open(dbenv, tmp_oflags, start, fdp)) != 0) {
643 __db_tmp_open(dbenv, flags, path, fdp) in __db_tmp_open() argument
647 int *fdp;
699 if ((ret = __db_open(path, flags, flags, mode, fdp)) == 0)
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dmktemp.c44 temp(char* buf, int* fdp) in temp() argument
67 if (!pathtemp(buf, len, d, s, fdp)) in temp()
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dip_fil.c486 void fr_resolvedest(fdp, v, ifs) in fr_resolvedest() argument
487 frdest_t *fdp; in fr_resolvedest()
491 fdp->fd_ifp = NULL;
493 if (*fdp->fd_ifname) {
494 fdp->fd_ifp = GETIFP(fdp->fd_ifname, v, ifs);
495 if (!fdp->fd_ifp)
496 fdp->fd_ifp = (struct ifnet *)-1;
767 int fr_fastroute(m, mpp, fin, fdp) in fr_fastroute() argument
770 frdest_t *fdp;
772 struct ifnet *ifp = fdp->fd_ifp;
/illumos-gate/usr/src/cmd/fs.d/smbclnt/fksmbcl/
H A Dfkiod_cl.c67 smb_iod_open_door(int *fdp) in smb_iod_open_door() argument
69 *fdp = -1; in smb_iod_open_door()
/illumos-gate/usr/src/cmd/nohup/
H A Dnohup.c249 int *fdp; in fd_cb() local
274 fdp = &g_rdfd; in fd_cb()
278 fdp = &g_wrfd; in fd_cb()
283 if (*fdp < 0) { in fd_cb()
302 *fdp = fd; in fd_cb()
304 (void) pr_fcntl(g_proc, *fdp, F_DUP2FD, (void *)(uintptr_t)fd); in fd_cb()

123