Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 1534) sorted by relevance

12345678910>>...62

/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfksmb_idmap.c58 smb_idmap_check(const char *s, idmap_stat stat) in smb_idmap_check() argument
60 if (stat != IDMAP_SUCCESS) { in smb_idmap_check()
64 cmn_err(CE_NOTE, "%s: %d", s, (int)stat); in smb_idmap_check()
78 idmap_stat stat; in smb_idmap_getsid() local
80 stat = smb_idmap_batch_create(&sib, 1, SMB_IDMAP_ID2SID); in smb_idmap_getsid()
81 if (stat != IDMAP_SUCCESS) in smb_idmap_getsid()
82 return (stat); in smb_idmap_getsid()
84 stat = smb_idmap_batch_getsid(sib.sib_idmaph, &sib.sib_maps[0], in smb_idmap_getsid()
87 if (stat != IDMAP_SUCCESS) { in smb_idmap_getsid()
89 return (stat); in smb_idmap_getsid()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_idmap.c54 smb_idmap_check(const char *s, idmap_stat stat) in smb_idmap_check() argument
56 if (stat != IDMAP_SUCCESS) { in smb_idmap_check()
60 syslog(LOG_ERR, "%s: %s", s, idmap_stat2string(stat)); in smb_idmap_check()
74 idmap_stat stat; in smb_idmap_getsid() local
76 stat = smb_idmap_batch_create(&sib, 1, SMB_IDMAP_ID2SID); in smb_idmap_getsid()
77 if (stat != IDMAP_SUCCESS) in smb_idmap_getsid()
78 return (stat); in smb_idmap_getsid()
80 stat = smb_idmap_batch_getsid(sib.sib_idmaph, &sib.sib_maps[0], in smb_idmap_getsid()
83 if (stat != IDMAP_SUCCESS) { in smb_idmap_getsid()
85 return (stat); in smb_idmap_getsid()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dwait.h77 #define WLOBYTE(stat) ((int)((stat)&0377)) argument
78 #define WHIBYTE(stat) ((int)(((stat)>>8)&0377)) argument
79 #define WWORD(stat) ((int)((stat))&0177777) argument
81 #define WIFCONTINUED(stat) (WWORD(stat) == WCONTFLG) argument
82 #define WCOREDUMP(stat) ((stat)&WCOREFLG) argument
86 #define WIFEXITED(stat) ((int)((stat)&0xFF) == 0) argument
87 #define WIFSIGNALED(stat) ((int)((stat)&0xFF) > 0 && \ argument
88 (int)((stat)&0xFF00) == 0)
89 #define WIFSTOPPED(stat) ((int)((stat)&0xFF) == 0177 && \ argument
90 (int)((stat)&0xFF00) != 0)
[all …]
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_op.c185 int numLocDN, stat = 0, count = 0; in createLdapRequest() local
218 mit_ldap, mit_nisplus, rv, !fromLDAP, &stat); in createLdapRequest()
221 if (stat == NP_LDAP_RULES_NO_VALUE) in createLdapRequest()
223 stat = 0; in createLdapRequest()
444 int stat; in exclusiveLC() local
449 stat = mutex_trylock(&lc->mutex); in exclusiveLC()
450 if (stat == EBUSY && lc->owner != me) in exclusiveLC()
460 int stat; in assertExclusive() local
465 stat = mutex_trylock(&lc->mutex); in assertExclusive()
467 if (stat == 0) { in assertExclusive()
[all …]
H A Ddb_mindex2.cc164 db_status stat; in updateMappingObj() local
166 nis_object *o = dbFindObject(objName, &stat); in updateMappingObj()
170 if (stat != DB_NOTFOUND) { in updateMappingObj()
173 myself, stat, NIL(objName)); in updateMappingObj()
253 int stat = LDAP_SUCCESS; in selectMapping() local
364 stat = LDAP_PARAM_ERROR; in selectMapping()
369 stat = LDAP_PARAM_ERROR; in selectMapping()
381 stat = LDAP_OPERATIONS_ERROR; in selectMapping()
426 *statP = stat; in selectMapping()
450 int stat, freeObj = 0; in updateTableEntry() local
[all …]
H A Ddb_mindex3.cc103 int stat; in entriesFromLDAP() local
133 stat = pthread_kill(table->mapping.enumTid, 0); in entriesFromLDAP()
134 if (stat == ESRCH) { in entriesFromLDAP()
154 } else if (stat == 0) { in entriesFromLDAP()
159 stat = LDAP_SUCCESS; in entriesFromLDAP()
164 myself, stat, table->mapping.enumTid, in entriesFromLDAP()
167 stat = LDAP_OPERATIONS_ERROR; in entriesFromLDAP()
175 return (stat); in entriesFromLDAP()
214 stat = pthread_create(&tid, &attr, entriesFromLDAPthread, arg); in entriesFromLDAP()
215 if (stat != 0) { in entriesFromLDAP()
[all …]
/illumos-gate/usr/src/ucbhead/sys/
H A Dwait.h131 #define WLOBYTE(stat) ((int)((stat)&0377)) argument
132 #define WHIBYTE(stat) ((int)(((stat)>>8)&0377)) argument
133 #define WWORD(stat) ((int)((stat))&0177777) argument
135 #define WIFEXITED(stat) (WLOBYTE(stat) == 0) argument
136 #define WIFSIGNALED(stat) (WLOBYTE(stat) > 0 && WHIBYTE(stat) == 0) argument
137 #define WIFSTOPPED(stat) (WLOBYTE(stat) == WSTOPFLG&&WHIBYTE(stat) != 0) argument
138 #define WIFCONTINUED(stat) (WWORD(stat) == WCONTFLG) argument
140 #define WEXITSTATUS(stat) WHIBYTE(stat) argument
141 #define WTERMSIG(stat) (WLOBYTE(stat)&WSIGMASK) argument
142 #define WSTOPSIG(stat) WHIBYTE(stat) argument
[all …]
/illumos-gate/usr/src/uts/common/io/sfxge/common/
H A Def10_mac.c427 __inout_ecount(EFX_MAC_NSTATS) efsys_stat_t *stat, in ef10_mac_stats_update()
444 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_PKTS]), &value); in ef10_mac_stats_update()
447 EFSYS_STAT_SUBR_QWORD(&(stat[EFX_MAC_TX_PKTS]), &value); in ef10_mac_stats_update()
450 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_PAUSE_PKTS]), &value); in ef10_mac_stats_update()
453 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_UNICST_PKTS]), &value); in ef10_mac_stats_update()
456 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_MULTICST_PKTS]), &value); in ef10_mac_stats_update()
459 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_BRDCST_PKTS]), &value); in ef10_mac_stats_update()
462 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_OCTETS]), &value); in ef10_mac_stats_update()
465 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_LE_64_PKTS]), &value); in ef10_mac_stats_update()
467 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_LE_64_PKTS]), &value); in ef10_mac_stats_update()
[all …]
H A Dsiena_mac.c242 __inout_ecount(EFX_MAC_NSTATS) efsys_stat_t *stat, in siena_mac_stats_update()
259 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_PKTS]), &value); in siena_mac_stats_update()
261 EFSYS_STAT_SUBR_QWORD(&(stat[EFX_MAC_TX_PKTS]), &value); in siena_mac_stats_update()
264 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_PAUSE_PKTS]), &value); in siena_mac_stats_update()
267 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_UNICST_PKTS]), &value); in siena_mac_stats_update()
270 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_MULTICST_PKTS]), &value); in siena_mac_stats_update()
273 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_BRDCST_PKTS]), &value); in siena_mac_stats_update()
276 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_OCTETS]), &value); in siena_mac_stats_update()
279 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_LE_64_PKTS]), &value); in siena_mac_stats_update()
281 EFSYS_STAT_INCR_QWORD(&(stat[EFX_MAC_TX_LE_64_PKTS]), &value); in siena_mac_stats_update()
[all …]
/illumos-gate/usr/src/uts/common/klm/
H A Dnlm_rpc_clnt.c86 dst->stat.stat = (enum nlm4_stats) src->stat.stat; in nlm_convert_to_nlm4_res()
98 enum clnt_stat stat; in nlm_test_rpc() local
105 stat = nlm_test_1(&args1, &res1, client); in nlm_test_rpc()
107 if (stat == RPC_SUCCESS) { in nlm_test_rpc()
109 res->stat.stat = (enum nlm4_stats) res1.stat.stat; in nlm_test_rpc()
110 if (res1.stat.stat == nlm_denied) in nlm_test_rpc()
112 &res->stat.nlm4_testrply_u.holder, in nlm_test_rpc()
113 &res1.stat.nlm_testrply_u.holder); in nlm_test_rpc()
116 return (stat); in nlm_test_rpc()
129 enum clnt_stat stat; in nlm_lock_rpc() local
[all …]
/illumos-gate/usr/src/lib/iconv_modules/ja/common/
H A Djis_TO_eucJP.c67 int stat = ST_INIT; in _icv_iconv() local
95 if (stat == ST_INIT) { in _icv_iconv()
102 if ((stat == ST_INCS1) || (stat == ST_INCS3)) { in _icv_iconv()
103 stat = ST_INIT; in _icv_iconv()
106 } else if (stat == ST_ESC) { in _icv_iconv()
109 stat = ST_MBTOG0_1; in _icv_iconv()
120 stat = ST_SBTOG0; in _icv_iconv()
131 stat = ST_208REV_1; in _icv_iconv()
147 } else if (stat == ST_MBTOG0_1) { in _icv_iconv()
149 stat = ST_INIT; in _icv_iconv()
[all …]
H A DISO-2022-JP_TO_UTF-8.c74 int cset, stat, ret_val; in _icv_iconv() local
92 stat = ST_INIT; in _icv_iconv()
105 if (stat == ST_ESC) { in _icv_iconv()
108 stat = ST_MBTOG0_1; in _icv_iconv()
119 stat = ST_SBTOG0; in _icv_iconv()
130 stat = ST_208REV_1; in _icv_iconv()
146 } else if (stat == ST_MBTOG0_1) { in _icv_iconv()
148 stat = ST_INIT; in _icv_iconv()
153 stat = ST_MBTOG0_2; in _icv_iconv()
164 stat = ST_INIT; in _icv_iconv()
[all …]
H A DISO-2022-JP_TO_eucJP.c67 int stat = ST_INIT; in _icv_iconv() local
98 if (stat == ST_INIT) { in _icv_iconv()
102 if (stat == ST_ESC) { in _icv_iconv()
105 stat = ST_MBTOG0_1; in _icv_iconv()
116 stat = ST_SBTOG0; in _icv_iconv()
127 stat = ST_208REV_1; in _icv_iconv()
143 } else if (stat == ST_MBTOG0_1) { in _icv_iconv()
145 stat = ST_INIT; in _icv_iconv()
150 stat = ST_MBTOG0_2; in _icv_iconv()
161 stat = ST_INIT; in _icv_iconv()
[all …]
H A Djis_TO_PCK.c68 int stat = ST_INIT; in _icv_iconv() local
96 if (stat == ST_INIT) { in _icv_iconv()
99 if (stat == ST_ESC) { in _icv_iconv()
102 stat = ST_MBTOG0_1; in _icv_iconv()
113 stat = ST_SBTOG0; in _icv_iconv()
124 stat = ST_208REV_1; in _icv_iconv()
140 } else if (stat == ST_MBTOG0_1) { in _icv_iconv()
142 stat = ST_INIT; in _icv_iconv()
147 stat = ST_MBTOG0_2; in _icv_iconv()
158 stat = ST_INIT; in _icv_iconv()
[all …]
H A DISO-2022-JP_TO_PCK.c67 int stat = ST_INIT; in _icv_iconv() local
98 if (stat == ST_INIT) { in _icv_iconv()
104 if (stat == ST_ESC) { in _icv_iconv()
107 stat = ST_MBTOG0_1; in _icv_iconv()
118 stat = ST_SBTOG0; in _icv_iconv()
129 stat = ST_208REV_1; in _icv_iconv()
145 } else if (stat == ST_MBTOG0_1) { in _icv_iconv()
147 stat = ST_INIT; in _icv_iconv()
152 stat = ST_MBTOG0_2; in _icv_iconv()
163 stat = ST_INIT; in _icv_iconv()
[all …]
/illumos-gate/usr/src/cmd/make/bin/
H A Dfiles.cc65 extern void set_target_stat(Name target, struct stat buf);
90 struct stat buf; in exists()
94 if (target->stat.time != file_no_time) { in exists()
95 return target->stat.time; in exists()
120 target->stat.is_sym_link = true; in exists()
123 target->stat.is_sym_link = false; in exists()
127 target->stat.time = file_doesnt_exist; in exists()
128 target->stat.stat_errno = errno; in exists()
142 target->stat.stat_errno = 0; in exists()
143 target->stat.is_file = true; in exists()
[all …]
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dkey_call.c100 enum clnt_stat stat; in key_encryptsession() local
108 if ((stat = key_call(KEY_ENCRYPT, xdr_cryptkeyarg, (char *)&arg, in key_encryptsession()
112 RPCLOG(1, "rpc status %d ", stat); in key_encryptsession()
113 RPCLOG(1, "(%s)\n", clnt_sperrno(stat)); in key_encryptsession()
114 return (stat); in key_encryptsession()
132 enum clnt_stat stat; in key_decryptsession() local
140 if ((stat = key_call(KEY_DECRYPT, xdr_cryptkeyarg, (char *)&arg, in key_decryptsession()
143 RPCLOG(1, "rpc status %d ", stat); in key_decryptsession()
144 RPCLOG(1, "(%s)\n", clnt_sperrno(stat)); in key_decryptsession()
145 return (stat); in key_decryptsession()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Dtoken.c122 OM_uint32 stat; in __make_ap_token() local
125 if ((stat = __alloc_sig(get_qop(token), in __make_ap_token()
128 return (stat); in __make_ap_token()
191 if ((stat = __xdr_encode_token(&xdrs, NULL, token, keys)) in __make_ap_token()
200 return (stat); in __make_ap_token()
218 OM_uint32 stat; in __make_token() local
221 if ((stat = __alloc_sig(get_qop(token), in __make_token()
224 return (stat); in __make_token()
244 if ((stat = __xdr_encode_token(&xdrs, msg, token, keys)) in __make_token()
252 return (stat); in __make_token()
[all …]
H A Dcrypto.c108 int i, j, stat; in __desN_crypt() local
120 stat = cbc_crypt(keys[j].c, buf, len, m | flags, ivec); in __desN_crypt()
124 if (DES_FAILED(stat)) in __desN_crypt()
125 return (stat); in __desN_crypt()
138 stat = cbc_crypt(keys[0].c, buf, len, mode, ivec); in __desN_crypt()
144 return (stat); in __desN_crypt()
154 int stat = DESERR_BADPARAM; in __dh_desN_crypt() local
173 stat = __desN_crypt(keys->dh_key_set_val, keys->dh_key_set_len, in __dh_desN_crypt()
176 if (DES_FAILED(stat)) in __dh_desN_crypt()
188 int stat = DESERR_BADPARAM; in __dh_des_crypt() local
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dfs2 …t,__fxstat,_lxstat,__lxstat,_xmknod,__xmknod,_xstat,__xstat,lstat,mknod,sync sys/types.h sys/stat.h
3 …t64,__fxstat64,_lxstat64,__lxstat64,_xstat64,__xstat64 -D_LARGEFILE64_SOURCE sys/types.h sys/stat.h
4 mac fstat,lstat,stat,mknod sys/types.h sys/stat.h
8 #include <sys/stat.h>
11 extern int stat(const char* path, struct stat* st)
13 int stat(path, st)
15 struct stat* st;
27 struct stat st;
28 return stat(".",&st) < 0;
34 #include <sys/stat.h>
[all …]
/illumos-gate/usr/src/uts/common/krtld/
H A Dbootrd_cpio.c58 struct bootstat stat; member
206 parse_stat(const struct cpio_hdr *hdr, struct bootstat *stat) in parse_stat() argument
208 if (!get_uint64(hdr->dev, sizeof (hdr->dev), &stat->st_dev)) in parse_stat()
210 if (!get_uint64(hdr->ino, sizeof (hdr->ino), &stat->st_ino)) in parse_stat()
212 if (!get_uint32(hdr->mode, sizeof (hdr->mode), &stat->st_mode)) in parse_stat()
214 if (!get_int32(hdr->uid, sizeof (hdr->uid), &stat->st_uid)) in parse_stat()
216 if (!get_int32(hdr->gid, sizeof (hdr->gid), &stat->st_gid)) in parse_stat()
218 if (!get_uint32(hdr->nlink, sizeof (hdr->nlink), &stat->st_nlink)) in parse_stat()
220 if (!get_uint64(hdr->rdev, sizeof (hdr->rdev), &stat->st_rdev)) in parse_stat()
223 stat->st_mtim.tv_nsec = 0; in parse_stat()
[all …]
/illumos-gate/usr/src/uts/common/io/atge/
H A Datge_l1e.c697 atge_l1e_smb_t *stat; in atge_l1e_gather_stats() local
705 stat = (atge_l1e_smb_t *)atgep->atge_hw_stats; in atge_l1e_gather_stats()
731 stat->rx_frames += smb->rx_frames; in atge_l1e_gather_stats()
732 stat->rx_bcast_frames += smb->rx_bcast_frames; in atge_l1e_gather_stats()
733 stat->rx_mcast_frames += smb->rx_mcast_frames; in atge_l1e_gather_stats()
734 stat->rx_pause_frames += smb->rx_pause_frames; in atge_l1e_gather_stats()
735 stat->rx_control_frames += smb->rx_control_frames; in atge_l1e_gather_stats()
736 stat->rx_crcerrs += smb->rx_crcerrs; in atge_l1e_gather_stats()
737 stat->rx_lenerrs += smb->rx_lenerrs; in atge_l1e_gather_stats()
738 stat->rx_bytes += smb->rx_bytes; in atge_l1e_gather_stats()
[all …]
H A Datge_l1.c454 atge_l1_smb_t *stat; in atge_l1_gather_stats() local
462 stat = (atge_l1_smb_t *)atgep->atge_hw_stats; in atge_l1_gather_stats()
466 stat->rx_frames += smb->rx_frames; in atge_l1_gather_stats()
467 stat->rx_bcast_frames += smb->rx_bcast_frames; in atge_l1_gather_stats()
468 stat->rx_mcast_frames += smb->rx_mcast_frames; in atge_l1_gather_stats()
469 stat->rx_pause_frames += smb->rx_pause_frames; in atge_l1_gather_stats()
470 stat->rx_control_frames += smb->rx_control_frames; in atge_l1_gather_stats()
471 stat->rx_crcerrs += smb->rx_crcerrs; in atge_l1_gather_stats()
472 stat->rx_lenerrs += smb->rx_lenerrs; in atge_l1_gather_stats()
473 stat->rx_bytes += smb->rx_bytes; in atge_l1_gather_stats()
[all …]
H A Datge_l1c.c561 atge_l1c_smb_t *stat; in atge_l1c_gather_stats() local
569 stat = (atge_l1c_smb_t *)atgep->atge_hw_stats; in atge_l1c_gather_stats()
573 stat->rx_frames += smb->rx_frames; in atge_l1c_gather_stats()
574 stat->rx_bcast_frames += smb->rx_bcast_frames; in atge_l1c_gather_stats()
575 stat->rx_mcast_frames += smb->rx_mcast_frames; in atge_l1c_gather_stats()
576 stat->rx_pause_frames += smb->rx_pause_frames; in atge_l1c_gather_stats()
577 stat->rx_control_frames += smb->rx_control_frames; in atge_l1c_gather_stats()
578 stat->rx_crcerrs += smb->rx_crcerrs; in atge_l1c_gather_stats()
579 stat->rx_lenerrs += smb->rx_lenerrs; in atge_l1c_gather_stats()
580 stat->rx_bytes += smb->rx_bytes; in atge_l1c_gather_stats()
[all …]
/illumos-gate/usr/src/uts/intel/sys/
H A Dstat_impl.h45 extern int fstat(int, struct stat *);
46 extern int stat(const char *_RESTRICT_KYWD, struct stat *_RESTRICT_KYWD);
50 extern int fstatat(int, const char *, struct stat *, int);
54 extern int lstat(const char *_RESTRICT_KYWD, struct stat *_RESTRICT_KYWD);
61 extern int stat();
84 extern int _fxstat(const int, int, struct stat *);
85 extern int _xstat(const int, const char *, struct stat *);
86 extern int _lxstat(const int, const char *, struct stat *);

12345678910>>...62