Home
last modified time | relevance | path

Searched refs:ntp (Results 1 – 15 of 15) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ntp.c81 struct ntpdata *ntp = &fragbuf.ntp_msg; in interpret_ntp() local
92 switch (ntp->li_vn_mode & NTPMODEMASK) { in interpret_ntp()
100 show_mode(ntp->li_vn_mode & NTPMODEMASK), in interpret_ntp()
101 ntp->stratum, in interpret_ntp()
102 show_time(ntp->xmt)); in interpret_ntp()
122 proto_version = (ntp->li_vn_mode & VERSIONMASK) >> 3; in interpret_ntp()
127 switch (ntp->li_vn_mode & NTPMODEMASK) { in interpret_ntp()
133 (void) sprintf(get_line((char *)(uintptr_t)ntp->li_vn_mode - in interpret_ntp()
136 (int)(ntp->li_vn_mode & LEAPMASK) >> 6, in interpret_ntp()
137 show_leap(ntp->li_vn_mode & LEAPMASK)); in interpret_ntp()
[all …]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_subr.c366 topo_name_trans_t *ntp; in topo_sensor_type_name() local
368 for (ntp = &topo_sensor_type_table[0]; ntp->int_name != NULL; ntp++) { in topo_sensor_type_name()
369 if (ntp->int_value == type) { in topo_sensor_type_name()
370 (void) strlcpy(buf, ntp->int_name, len); in topo_sensor_type_name()
381 topo_name_trans_t *ntp; in topo_sensor_units_name() local
383 for (ntp = &topo_units_type_table[0]; ntp->int_name != NULL; ntp++) { in topo_sensor_units_name()
384 if (ntp->int_value == type) { in topo_sensor_units_name()
385 (void) strlcpy(buf, ntp->int_name, len); in topo_sensor_units_name()
396 topo_name_trans_t *ntp; in topo_led_type_name() local
398 for (ntp = &topo_led_type_table[0]; ntp->int_name != NULL; ntp++) { in topo_led_type_name()
[all …]
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_util.c142 ipmi_name_trans_t *ntp; in ipmi_entity_name() local
144 for (ntp = &ipmi_entity_table[0]; ntp->int_name != NULL; ntp++) { in ipmi_entity_name()
145 if (ntp->int_value == id) { in ipmi_entity_name()
146 (void) strlcpy(buf, ntp->int_name, len); in ipmi_entity_name()
157 ipmi_name_trans_t *ntp; in ipmi_sensor_type_name() local
159 for (ntp = &ipmi_sensor_type_table[0]; ntp->int_name != NULL; ntp++) { in ipmi_sensor_type_name()
160 if (ntp->int_value == type) { in ipmi_sensor_type_name()
161 (void) strlcpy(buf, ntp->int_name, len); in ipmi_sensor_type_name()
172 ipmi_name_trans_t *ntp; in ipmi_sensor_units_name() local
174 for (ntp = &ipmi_units_type_table[0]; ntp->int_name != NULL; ntp++) { in ipmi_sensor_units_name()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dptem.c156 struct ptem *ntp; /* ptem entry for this PTEM module */ in ptemopen() local
173 ntp = kmem_alloc(sizeof (*ntp), KM_SLEEP); in ptemopen()
184 if ((ntp->dack_ptr = allocb(4, BPRI_MED)) == NULL) { in ptemopen()
185 kmem_free(ntp, sizeof (*ntp)); in ptemopen()
195 freemsg(ntp->dack_ptr); in ptemopen()
196 kmem_free(ntp, sizeof (*ntp)); in ptemopen()
209 ntp->q_ptr = q; in ptemopen()
210 q->q_ptr = ntp; in ptemopen()
211 WR(q)->q_ptr = ntp; in ptemopen()
221 ntp->cflags = termiosp->c_cflag; in ptemopen()
[all …]
H A Dtimod.c822 struct tim_tim *ntp; in timodrproc() local
828 ntp = tim_findlink(resp->ACCEPTOR_id); in timodrproc()
829 if (ntp == NULL) in timodrproc()
832 mutex_enter(&ntp->tim_mutex); in timodrproc()
833 if (ntp->tim_peercred != NULL) in timodrproc()
834 crfree(ntp->tim_peercred); in timodrproc()
835 ntp->tim_peercred = in timodrproc()
837 &ntp->tim_cpid); in timodrproc()
838 if (ntp->tim_peercred != NULL) in timodrproc()
839 crhold(ntp->tim_peercred); in timodrproc()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_rq.c80 static int smb_nt_reply(struct smb_ntrq *ntp);
691 struct smb_ntrq *ntp; in smb_nt_alloc() local
694 ntp = (struct smb_ntrq *)kmem_alloc(sizeof (*ntp), KM_SLEEP); in smb_nt_alloc()
695 if (ntp == NULL) in smb_nt_alloc()
697 error = smb_nt_init(ntp, layer, fn, scred); in smb_nt_alloc()
698 mutex_init(&ntp->nt_lock, NULL, MUTEX_DRIVER, NULL); in smb_nt_alloc()
699 cv_init(&ntp->nt_cond, NULL, CV_DEFAULT, NULL); in smb_nt_alloc()
700 ntp->nt_flags |= SMBT2_ALLOCED; in smb_nt_alloc()
702 smb_nt_done(ntp); in smb_nt_alloc()
705 *ntpp = ntp; in smb_nt_alloc()
[all …]
H A Dsmb_rq.h246 void smb_nt_done(struct smb_ntrq *ntp);
247 int smb_nt_request(struct smb_ntrq *ntp);
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_smb1.c824 struct smb_ntrq *ntp; in smbfs_smb1_getsec() local
833 scrp, &ntp); in smbfs_smb1_getsec()
838 mbp = &ntp->nt_tparam; in smbfs_smb1_getsec()
846 ntp->nt_maxpcount = 4; in smbfs_smb1_getsec()
847 ntp->nt_maxdcount = *reslen; // out buf size in smbfs_smb1_getsec()
849 error = smb_nt_request(ntp); in smbfs_smb1_getsec()
850 if (error && !(ntp->nt_flags & SMBT2_MOREDATA)) in smbfs_smb1_getsec()
854 mdp = &ntp->nt_rparam; in smbfs_smb1_getsec()
872 mdp = &ntp->nt_rdata; in smbfs_smb1_getsec()
881 smb_nt_done(ntp); in smbfs_smb1_getsec()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dtypeset.c213 Namdecl_t *ntp = (Namdecl_t*)context->ptr; in b_typeset() local
219 if(ntp) in b_typeset()
221 tdata.tp = ntp->tp; in b_typeset()
222 opt_info.disc = (Optdisc_t*)ntp->optinfof; in b_typeset()
223 optstring = ntp->optstring; in b_typeset()
452 else if(tdata.aflag==0 && ntp && ntp->tp) in b_typeset()
/illumos-gate/usr/src/cmd/ipf/examples/
H A DBASIC_1.FW76 pass in quick proto udp from any to any port = ntp keep state group 202
/illumos-gate/usr/src/cmd/cmd-inet/etc/
H A Dservices168 ntp 123/tcp # Network Time Protocol
169 ntp 123/udp # Network Time Protocol
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dnvdisc.c1295 struct table *ntp = (struct table*)nv_clone_disc(fp,0); in clone_table() local
1299 memcpy((void*)ntp,(void*)fp,sizeof(struct table)); in clone_table()
1300 ntp->dict = nroot; in clone_table()
1301 ntp->parent = nv_lastdict(); in clone_table()
1307 return(&ntp->fun); in clone_table()
H A Dnvtype.c1276 Namdecl_t *ntp = (Namdecl_t*)nv_context(np); in nv_type() local
1277 return(ntp?ntp->tp:0); in nv_type()
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_vnops.c835 struct tmpnode *ntp = NULL; in tmp_lookup() local
916 error = tdirlookup(tp, nm, &ntp, cred); in tmp_lookup()
919 ASSERT(ntp); in tmp_lookup()
920 *vpp = TNTOV(ntp); in tmp_lookup()
/illumos-gate/usr/src/cmd/svc/shell/
H A Dmfsthistory208 svc:/network/ntp:default var/svc/manifest/network/ntp.xml
209 svc:/network/ntp var/svc/manifest/network/ntp.xml