Searched defs:stp (Results 1 - 25 of 87) sorted by relevance

1234

/illumos-gate/usr/src/stand/lib/fs/common/
H A Dpromfs.c44 static int promfs_fstat(int fd, struct bootstat *stp);
105 promfs_fstat(int fd, struct bootstat *stp) argument
107 return (prom_fsize(fsih, fd, (size_t *)&stp->st_size));
/illumos-gate/usr/src/uts/common/os/
H A Dputnext.c152 struct stdata *stp; local
164 stp = STREAM(qp);
165 ASSERT(stp != NULL);
166 if (stp->sd_ciputctrl != NULL) {
167 ix = CPU->cpu_seqid & stp->sd_nciputctrl;
168 sdlock = &stp->sd_ciputctrl[ix].ciputctrl_lock;
171 mutex_enter(sdlock = &stp->sd_lock);
H A Dsession.c249 sess_ctty_clear(sess_t *sp, stdata_t *stp) argument
257 ASSERT(MUTEX_HELD(&stp->sd_lock) && MUTEX_HELD(&pidlock) &&
267 stp->sd_pgidp = NULL;
268 stp->sd_sidp = NULL;
272 sess_ctty_set(proc_t *p, sess_t *sp, stdata_t *stp) argument
277 ASSERT(MUTEX_HELD(&stp->sd_lock) && MUTEX_HELD(&pidlock) &&
288 sp->s_vp = makectty(stp->sd_vnode);
293 stp->sd_flag |= STRISTTY; /* just to be sure */
294 stp->sd_sidp = sp->s_sidp;
295 stp
299 strctty(stdata_t *stp) argument
388 stdata_t *stp; local
489 freectty_signal(proc_t *p, sess_t *sp, stdata_t *stp, boolean_t at_exit) argument
536 stdata_t *stp; local
[all...]
/illumos-gate/usr/src/cmd/streams/log/
H A Dstrclean.c52 static int clean(const char *name, const struct stat *stp, int info);
145 clean(const char *name, const struct stat *stp, int info) argument
153 if (stp->st_mtime >= cutoff)
/illumos-gate/usr/src/lib/scsi/libses/common/
H A Dses_enclosure.c206 ses_open_scsi(uint_t version, libscsi_target_t *stp) argument
219 tp->st_target = stp;
220 tp->st_scsi_hdl = libscsi_get_handle(stp);
247 libscsi_target_t *stp; local
256 if ((stp = libscsi_open(hp, NULL, target)) == NULL) {
262 if ((tp = ses_open_scsi(version, stp)) == NULL) {
263 libscsi_close(hp, stp);
/illumos-gate/usr/src/cmd/truss/
H A Dlistopts.c105 const struct systable *stp = systable; local
106 for (; sys == 0 && stp->nargs >= 0; stp++)
107 if (stp->name && strcmp(stp->name, name) == 0)
108 sys = stp-systable;
H A Dactions.c362 const struct systable *stp; local
384 stp = subsys(what, subcode);
386 if (nargs > stp->nargs)
387 nargs = stp->nargs;
395 if ((nargs > 0 && stp->arg[0] == STG) ||
432 } else if (stp->arg[0] == STG) {
479 x = stp->arg[i];
517 const struct systable *stp; local
582 stp = subsys(what, subcode);
739 switch (stp
892 showpaths(private_t *pri, const struct systable *stp) argument
[all...]
/illumos-gate/usr/src/uts/common/inet/
H A Dproto_set.c111 struct stdata *stp; local
113 stp = STREAM(q);
119 if (stp == NULL || stp->sd_flag & STPLEX)
122 claimstr(stp->sd_wrq);
123 wq = stp->sd_wrq->q_next;
126 releasestr(stp->sd_wrq);
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dnfsops.c72 static int boot_nfs_fstat(int fd, struct bootstat *stp);
369 boot_nfs_fstat(int fd, struct bootstat *stp) argument
377 printf("boot_nfs_fstat(%d, 0x%x)\n", fd, stp);
416 stp->st_size = (off_t)va.va_size;
417 stp->st_mode = VTTOIF(va.va_type) | va.va_mode;
418 stp->st_atim.tv_sec = va.va_atime.tv_sec;
419 stp->st_atim.tv_nsec = va.va_atime.tv_nsec;
420 stp->st_ctim.tv_sec = va.va_ctime.tv_sec;
421 stp->st_ctim.tv_nsec = va.va_ctime.tv_nsec;
422 stp
[all...]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_handle.c53 dt_stmt_t *stp; local
74 stp = dt_list_next(&pgp->dp_stmts);
75 assert(stp != NULL);
77 edp = stp->ds_desc->dtsd_ecbdesc;
H A Ddt_program.c65 dt_stmt_t *stp, *next; local
68 for (stp = dt_list_next(&pgp->dp_stmts); stp != NULL; stp = next) {
69 next = dt_list_next(stp);
70 dtrace_stmt_destroy(dtp, stp->ds_desc);
71 dt_free(dtp, stp);
87 dt_stmt_t *stp; local
104 for (stp = dt_list_next(&pgp->dp_stmts); stp; st
278 dt_stmt_t *stp = dt_alloc(dtp, sizeof (dt_stmt_t)); local
293 dt_stmt_t *stp, *next; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Denc_des.c112 ecb_encrypt(struct stinfo *stp, Block in, Block out) argument
126 code = krb5_c_encrypt(telnet_context, &stp->str_key, NULL, NULL,
458 cfb64_stream_iv(Block seed, register struct stinfo *stp) argument
460 (void) memcpy((void *)stp->str_iv, (void *)seed, sizeof (Block));
461 (void) memcpy((void *)stp->str_output, (void *)seed, sizeof (Block));
463 stp->str_index = sizeof (Block);
467 cfb64_stream_key(Block key, register struct stinfo *stp) argument
469 (void) memcpy((void *)stp->str_keybytes, (void *)key, sizeof (Block));
470 stp->str_key.length = DES_BLOCKSIZE;
471 stp
511 register struct stinfo *stp = local
536 register struct stinfo *stp = local
[all...]
/illumos-gate/usr/src/cmd/fm/modules/common/sensor-transport/
H A Dsensor_transport.c79 sensor_transport_t *stp = arg; local
80 fmd_hdl_t *hdl = stp->st_hdl;
200 for (current = &stp->st_faults; *current != NULL;
218 if (stp->st_first || faulted) {
222 sfp->sf_next = stp->st_faults;
223 stp->st_faults = sfp;
244 (sfp->sf_num_fails > stp->st_tolerance)) {
264 fmd_xprt_post(hdl, stp->st_xprt, event, 0);
285 sensor_transport_t *stp; local
294 stp
377 sensor_transport_t *stp; local
414 sensor_transport_t *stp; local
[all...]
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dsections.c95 Dbg_sec_strtab(Lm_list *lml, Os_desc *osp, Str_tbl *stp) argument
106 if (stp->st_flags & FLG_STTAB_COMPRESS)
108 EC_XWORD(stp->st_fullstrsize), EC_XWORD(stp->st_strsize));
111 EC_XWORD(stp->st_fullstrsize));
114 ((stp->st_flags & FLG_STTAB_COMPRESS) == 0))
119 stp->st_hbckcnt);
121 for (cnt = 0; cnt < stp->st_hbckcnt; cnt++) {
122 Str_hash *strhash = stp->st_hashbcks[cnt];
/illumos-gate/usr/src/cmd/sgs/tools/common/
H A Dstring_table.c159 Str_tbl *stp; local
161 if ((stp = calloc(sizeof (*stp), 1)) == NULL)
167 stp->st_strsize = stp->st_fullstrsize = stp->st_nextoff = 1;
172 stp->st_flags = flags;
173 if ((stp->st_flags & FLG_STTAB_COMPRESS) == 0)
174 return (stp);
176 if ((stp
196 st_insert(Str_tbl *stp, const char *str) argument
262 st_delstring(Str_tbl *stp, const char *str) argument
306 st_destroy(Str_tbl *stp) argument
349 st_setstring(Str_tbl *stp, const char *str, size_t *stoff) argument
446 st_hash_insert(Str_tbl *stp, const char *str, size_t len) argument
552 st_getstrtab_sz(Str_tbl *stp) argument
653 st_getstrbuf(Str_tbl *stp) argument
659 st_setstrbuf(Str_tbl *stp, char *stbuf, size_t bufsize) argument
[all...]
/illumos-gate/usr/src/uts/common/syscall/
H A Dsendfile.c708 stdata_t *stp; local
717 stp = vp->v_stream;
718 wroff = (int)stp->sd_wroff;
719 tail_len = (int)stp->sd_tail;
720 maxblk = (int)stp->sd_maxblk;
722 stp = NULL;
933 copyflag = stp != NULL ? stp->sd_copyflag :
/illumos-gate/usr/src/uts/common/io/
H A Dstrsun.c248 mcopyinuio(struct stdata *stp, uio_t *uiop, ssize_t iosize, argument
252 size_t offset = stp->sd_wroff;
253 size_t tail_len = stp->sd_tail;
265 if (stp->sd_flag & STRCOPYCACHED)
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp_mbox.c80 sbdp_showbd_2_sbd_stat(show_board_t *shbp, sbd_stat_t *stp, int board) argument
86 stp->s_board = board;
87 (void) strcpy(stp->s_info, shbp->s_info);
88 stp->s_power = shbp->s_power;
90 (void) strcpy(stp->s_type, shbp->s_type);
98 (void) strcpy(stp->s_type, UNKNOWN);
99 stp->s_rstate = SBD_STAT_EMPTY;
101 stp->s_rstate = SBD_STAT_DISCONNECTED;
103 stp->s_rstate = SBD_STAT_CONNECTED;
106 stp
117 sbdp_get_board_status(sbdp_handle_t *hp, sbd_stat_t *stp) argument
[all...]
/illumos-gate/usr/src/common/smbios/
H A Dsmb_open.c170 smb_struct_t *stp = &shp->sh_structs[i]; local
205 stp->smbst_hdr = hp;
206 stp->smbst_str = s;
207 stp->smbst_end = p;
208 stp->smbst_next = shp->sh_hash[h];
209 stp->smbst_strtab = smb_alloc(sizeof (uint16_t) * n);
210 stp->smbst_strtablen = n;
212 if (n != 0 && stp->smbst_strtab == NULL)
215 shp->sh_hash[h] = stp;
219 for (n = 0, p = s; n < stp
296 smb_export(const smb_struct_t *stp, smbios_struct_t *sp) argument
311 const smb_struct_t *stp = smb_lookup_id(shp, id); local
325 const smb_struct_t *stp = smb_lookup_type(shp, type); local
369 const smb_struct_t *stp = shp->sh_hash[id & (shp->sh_hashlen - 1)]; local
392 smb_strptr(const smb_struct_t *stp, uint_t i) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/
H A Dses_facility.c459 ses_enum_target_t *stp = topo_node_getspecific(pnode); local
467 stp->set_refcount++;
468 topo_node_setspecific(tn, stp);
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_targets.c356 struct scope_targets *sts, *stp; local
357 for (sts = tl->scopes[i]; sts; sts = stp) {
358 stp = sts->next;
392 struct scope_targets *st, *stp; local
402 for (stp = scopes[i]; stp && stp->next; ) {
403 stp = stp->next;
405 if (stp)
[all...]
/illumos-gate/usr/src/common/fs/
H A Dufsops.c693 bufs_fstat(int fd, struct bootstat *stp) argument
703 stp->st_mode = 0;
704 stp->st_size = 0;
711 stp->st_mode = S_IFLNK;
714 stp->st_mode = S_IFREG;
724 stp->st_size = ip->i_size;
725 stp->st_atim.tv_sec = ip->i_atime.tv_sec;
726 stp->st_atim.tv_nsec = ip->i_atime.tv_usec * 1000;
727 stp->st_mtim.tv_sec = ip->i_mtime.tv_sec;
728 stp
[all...]
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_fhistory.c733 ndmpd_fhpath_v3_cb(lbr_fhlog_call_backs_t *cbp, char *path, struct stat64 *stp, argument
775 fh_cookie, p, stp, off)) < 0)
790 ndmpd_fhdir_v3_cb(lbr_fhlog_call_backs_t *cbp, char *dir, struct stat64 *stp) argument
830 if (stp->st_ino == nlp->nlp_bkdirino)
833 pino = stp->st_ino;
842 !dbm_getone(nlp->nlp_bkmap, (u_longlong_t)stp->st_ino)) {
940 struct stat64 *stp, u_longlong_t off)
959 } else if (!stp) {
961 NDMP_LOG(LOG_DEBUG, "stp is NULL");
978 if (stp
939 ndmpd_fhnode_v3_cb(lbr_fhlog_call_backs_t *cbp, char *dir, char *file, struct stat64 *stp, u_longlong_t off) argument
1332 ndmpd_file_history_path(lbr_fhlog_call_backs_t *cbp, char *path, struct stat64 *stp, u_longlong_t off) argument
1378 ndmpd_file_history_dir(lbr_fhlog_call_backs_t *cbp, char *dir, struct stat64 *stp) argument
1524 ndmpd_file_history_node(lbr_fhlog_call_backs_t *cbp, char *dir, char *file, struct stat64 *stp, u_longlong_t off) argument
1588 ndmpd_path_restored(lbr_fhlog_call_backs_t *cbp, char *name, struct stat64 *stp, u_longlong_t ll_pos) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/namefs/
H A Dnamevfs.c438 struct stdata *stp = filevp->v_stream; local
439 mutex_enter(&stp->sd_lock);
440 stp->sd_flag |= STRMOUNT;
441 mutex_exit(&stp->sd_lock);
597 struct stdata *stp = vp->v_stream; local
598 mutex_enter(&stp->sd_lock);
599 stp->sd_flag &= ~STRMOUNT;
600 mutex_exit(&stp->sd_lock);
/illumos-gate/usr/src/cmd/logadm/
H A Dfn.c172 fn_setstat(struct fn *fnp, struct stat *stp) argument
174 fnp->fn_stbuf = *stp;

Completed in 184 milliseconds

1234