Home
last modified time | relevance | path

Searched refs:st (Results 1 – 25 of 821) sorted by relevance

12345678910>>...33

/titanic_41/usr/src/cmd/fs.d/cachefs/common/
H A Dstats_create.c77 stats_cookie_t *st; in stats_create_unbound() local
79 if ((st = stats_create(progname)) == NULL) in stats_create_unbound()
82 st->st_flags |= ST_VALID; in stats_create_unbound()
85 return (st); in stats_create_unbound()
91 stats_cookie_t *st; in stats_create_mountpath() local
99 if ((st = stats_create(progname)) == NULL) in stats_create_mountpath()
102 if ((key = kstat_lookup(st->st_kstat_cookie, "cachefs", 0, "key")) in stats_create_mountpath()
104 stats_perror(st, SE_KERNEL, in stats_create_mountpath()
108 if (kstat_read(st->st_kstat_cookie, key, NULL) < 0) { in stats_create_mountpath()
109 stats_perror(st, SE_KERNEL, in stats_create_mountpath()
[all …]
H A Dstats_dbm.c51 stats_dbm_open(stats_cookie_t *st) in stats_dbm_open() argument
56 assert(stats_good(st)); in stats_dbm_open()
57 assert(! (st->st_flags & ST_DBMOPEN)); in stats_dbm_open()
62 (void) snprintf(st->st_dbm_name, sizeof (st->st_dbm_name), "%s/%s-%d", in stats_dbm_open()
63 tmpdir, st->st_progname, getpid()); in stats_dbm_open()
64 st->st_dbm = dbm_open(st->st_dbm_name, O_RDWR | O_CREAT, 0666); in stats_dbm_open()
65 if (st->st_dbm == NULL) { in stats_dbm_open()
66 stats_perror(st, SE_FILE, in stats_dbm_open()
67 gettext("Cannot open dbm file %s"), st->st_dbm_name); in stats_dbm_open()
71 st->st_flags |= ST_DBMOPEN; in stats_dbm_open()
[all …]
H A Dstats_stats.c44 stats_read_stat(stats_cookie_t *st) in stats_read_stat() argument
48 assert(stats_good(st)); in stats_read_stat()
49 assert(st->st_flags & ST_BOUND); in stats_read_stat()
51 if (((stat = kstat_lookup(st->st_kstat_cookie, in stats_read_stat()
52 "cachefs", st->st_fsid, "stats")) == NULL) || in stats_read_stat()
53 (kstat_read(st->st_kstat_cookie, stat, NULL) < 0)) { in stats_read_stat()
54 stats_perror(st, SE_KERNEL, in stats_read_stat()
56 st->st_fsid); in stats_read_stat()
64 stats_hits(stats_cookie_t *st) in stats_hits() argument
70 if ((ks = stats_read_stat(st)) != NULL) { in stats_hits()
[all …]
H A Dstats_log.c59 stats_log_kernel_setname(stats_cookie_t *st, char *path) in stats_log_kernel_setname() argument
66 assert(stats_good(st)); in stats_log_kernel_setname()
68 if ((log = stats_log_kstat_read(st)) == NULL) { in stats_log_kernel_setname()
69 error = stats_errno(st); in stats_log_kernel_setname()
96 stats_perror(st, error = SE_FILE, in stats_log_kernel_setname()
103 stats_perror(st, error = SE_FILE, in stats_log_kernel_setname()
123 stats_perror(st, error = SE_INVAL, in stats_log_kernel_setname()
133 if (kstat_write(st->st_kstat_cookie, log, NULL) < 0) { in stats_log_kernel_setname()
134 stats_perror(st, error = SE_KERNEL, in stats_log_kernel_setname()
147 stats_log_which(stats_cookie_t *st, int which, int onoff) in stats_log_which() argument
[all …]
/titanic_41/usr/src/lib/libast/common/vmalloc/
H A Dvmstat.c36 int vmstat(Vmalloc_t* vm, Vmstat_t* st) in vmstat() argument
38 int vmstat(vm, st) in vmstat()
40 Vmstat_t* st;
50 if(!st)
62 st->n_busy = st->n_free = 0;
63 st->s_busy = st->s_free = st->m_busy = st->m_free = 0;
64 st->n_seg = 0;
65 st->extent = 0;
68 st->n_busy = 0;
72 st->n_free += 1;
[all …]
/titanic_41/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_service_rights.c300 int st=0,i=0; local
316 st=-1;
323 st = ENOMEM;
331 st = ENOMEM;
339 st = ENOMEM;
355 st = ENOMEM;
365 st = ldap_modify_ext_s(ld,
370 if (st != LDAP_SUCCESS && st != LDAP_TYPE_OR_VALUE_EXISTS && st != LDAP_OTHER) {
372 st = set_ldap_error (context, st, OP_MOD);
387 st = ENOMEM;
[all …]
H A Dldap_tkt_policy.c48 krb5_error_code st=0; local
58 st = EINVAL;
59 krb5_set_error_message (context, st, gettext("Ticket Policy Name missing"));
66 if ((st = krb5_ldap_name_to_policydn (context, policy->policy, &policy_dn)) != 0)
71 if ((st=krb5_add_str_mem_ldap_mod(&mods, "cn", LDAP_MOD_ADD, strval)) != 0)
77 if ((st=krb5_add_str_mem_ldap_mod(&mods, "objectclass", LDAP_MOD_ADD, strval)) != 0)
81 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbmaxticketlife", LDAP_MOD_ADD,
87 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbmaxrenewableage", LDAP_MOD_ADD,
93 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbticketflags", LDAP_MOD_ADD,
99 if ((st=ldap_add_ext_s(ld, policy_dn, mods, NULL, NULL)) != LDAP_SUCCESS) {
[all …]
H A Dldap_realm.c172 krb5_error_code st = 0, tempst = 0; local
183 if ((st = krb5_ldap_read_krbcontainer_params(context,
203 ldap_get_option(ld, LDAP_OPT_ERROR_NUMBER, &st);
204 st = set_ldap_error (context, st, OP_SEARCH);
228 if (st != 0) {
241 return st;
260 krb5_error_code st = 0, tempst=0; local
274 st = EINVAL;
275 krb5_set_error_message (context, st, gettext("Realm information not available"));
279 if ((st=krb5_ldap_read_realm_params(context, lrealm, &rparam, &mask)) != 0)
[all …]
H A Dldap_pwd_policy.c56 krb5_error_code st=0; local
74 st = krb5_ldap_name_to_policydn (context, policy->name, &policy_dn);
75 if (st != 0)
81 st = EINVAL;
82 krb5_set_error_message(context, st, gettext("Invalid password policy DN syntax"));
87 if ((st=krb5_add_str_mem_ldap_mod(&mods, "cn", LDAP_MOD_ADD, strval)) != 0)
91 if ((st=krb5_add_str_mem_ldap_mod(&mods, "objectclass", LDAP_MOD_ADD, strval)) != 0)
94 if (((st=krb5_add_int_mem_ldap_mod(&mods, "krbmaxpwdlife", LDAP_MOD_ADD,
96 || ((st=krb5_add_int_mem_ldap_mod(&mods, "krbminpwdlife", LDAP_MOD_ADD,
98 || ((st=krb5_add_int_mem_ldap_mod(&mods, "krbpwdmindiffchars", LDAP_MOD_ADD,
[all …]
H A Dldap_services.c54 krb5_error_code st=0; local
65 st = EINVAL;
66 krb5_set_error_message (context, st, gettext("Service DN NULL"));
89 if ((st=krb5_add_str_mem_ldap_mod(&mods, "objectclass", LDAP_MOD_ADD, strval)) != 0)
94 st = LDAP_INVALID_DN_SYNTAX;
99 if ((st=krb5_add_str_mem_ldap_mod(&mods, "cn", LDAP_MOD_ADD, strval)) != 0)
103 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbserviceflags", LDAP_MOD_ADD,
110 if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbhostserver", LDAP_MOD_ADD,
114 st = EINVAL;
115 krb5_set_error_message (context, st, gettext("'krbhostserver' argument invalid"));
[all …]
H A Dkdb_ldap_conn.c50 krb5_error_code st=0; in krb5_validate_ldap_context() local
54 st = EINVAL; in krb5_validate_ldap_context()
56 krb5_set_error_message(context, st, gettext("LDAP bind dn value missing")); in krb5_validate_ldap_context()
61 st = EINVAL; in krb5_validate_ldap_context()
63 krb5_set_error_message(context, st, gettext("LDAP bind password value missing")); in krb5_validate_ldap_context()
69 if ((st=krb5_ldap_readpassword(context, ldap_context, &password)) != 0) { in krb5_validate_ldap_context()
70 prepend_err_str(context, gettext("Error reading password from stash: "), st, st); in krb5_validate_ldap_context()
79 st = ENOMEM; in krb5_validate_ldap_context()
80 krb5_set_error_message(context, st, gettext("Error: memory allocation failed")); in krb5_validate_ldap_context()
89 st = ENOMEM; in krb5_validate_ldap_context()
[all …]
H A Dldap_principal2.c90 krb5_error_code tempst=0, st=0; local
116 krb5_set_error_message (context, st, gettext("Principal does not belong to realm"));
120 if ((st=krb5_unparse_name(context, searchfor, &user)) != 0)
123 if ((st=krb5_ldap_unparse_principal_name(user)) != 0)
128 st = ENOMEM;
133 if ((st = krb5_get_subtree_info(ldap_context, &subtree, &ntrees)) != 0)
162 if ((st = populate_krb5_db_entry(context, ldap_context, ld, ent, searchfor,
177 if (*nentries == 0 || st != 0)
196 return st;
237 krb5_error_code st=0; local
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/
H A Dsyncstat.c46 static struct sl_stats st; variable
145 sioc.ic_dp = (char *)&st; in main()
157 sioc.ic_dp = (char *)&st; in main()
176 if (st.opack) in main()
177 osize = st.ochar / st.opack; in main()
178 if (st.ipack) in main()
179 isize = st.ichar / st.ipack; in main()
183 st.ipack, st.opack, st.underrun, st.overrun, st.abort, st.crc, in main()
206 st.ipack = nst.ipack - st.ipack; in sample()
207 st.opack = nst.opack - st.opack; in sample()
[all …]
/titanic_41/usr/src/lib/libast/common/features/
H A Dtv25 #define ST_ATIME_NSEC_GET(st) ((st)->st_atimespec.tv_nsec)
26 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctimespec.tv_nsec)
27 #define ST_MTIME_NSEC_GET(st) ((st)->st_mtimespec.tv_nsec)
30 #define ST_ATIME_NSEC_GET(st) ((st)->st_atim.st__tim.tv_nsec)
31 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctim.st__tim.tv_nsec)
32 #define ST_MTIME_NSEC_GET(st) ((st)->st_mtim.st__tim.tv_nsec)
35 #define ST_ATIME_NSEC_GET(st) ((st)->st_atim.tv_nsec)
36 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctim.tv_nsec)
37 #define ST_MTIME_NSEC_GET(st) ((st)->st_mtim.tv_nsec)
40 #define ST_ATIME_NSEC_GET(st) ((st)->st_atimensec)
[all …]
/titanic_41/usr/src/lib/libm/amd64/src/
H A Dacosl.s37 fld %st(1) / x , 1 , x
39 fucomip %st(1),%st
41 fadd %st(1),%st / 1+x,x
43 fucomip %st(1),%st
47 fstp %st(0) / -1
48 fstp %st(0) / empty NPX stack
52 fxch %st(1) / x,1+x
54 fsubp %st,%st(1) / 1-x,1+x
55 fdivp %st,%st(1) / (1-x)/(1+x)
59 fadd %st(0),%st
[all …]
H A Dpowl.s106 fstp %st(0) / x
107 fstp %st(0) / stack empty
119 fucomip %st(2),%st / y, x
122 fstp %st(0) / x
131 fstp %st(1) / y
140 fstp %st(0) / x
146 fcomip %st(1),%st / y, x
148 fstp %st(0) / x
188 fcomip %st(1),%st / y, x
190 fld %st(1) / x , y , x
[all …]
/titanic_41/usr/src/uts/common/io/
H A Ddevinfo.c283 #define DEVICES_FILES_CLEANABLE(st) \ argument
284 (((st)->command & DINFOSUBTREE) && ((st)->command & DINFOFORCE) && \
285 strcmp(DI_ALL_PTR(st)->root_path, "/") == 0)
292 struct di_state *st; member
318 static void di_copymem(struct di_state *st, caddr_t buf, size_t bufsiz);
327 static int di_dip_find(struct di_state *st, dev_info_t *node, di_off_t *off_p);
329 static int cache_args_valid(struct di_state *st, int *error);
330 static int snapshot_is_cacheable(struct di_state *st);
331 static int di_cache_lookup(struct di_state *st);
332 static int di_cache_update(struct di_state *st);
[all …]
/titanic_41/usr/src/lib/libast/common/string/
H A Dfmtls.c52 fmtls(char* buf, const char* name, register struct stat* st, const char* info, const char* link, re… in fmtls() argument
60 s += sfsprintf(s, LS_W_MAX, "%*I*u ", LS_W_INUMBER - 1, sizeof(st->st_ino), st->st_ino); in fmtls()
63 n = iblocks(st); in fmtls()
68 …s += sfsprintf(s, LS_W_MAX, "%s%3u", fmtmode(st->st_mode, flags & LS_EXTERNAL), (unsigned int)st->… in fmtls()
72 s += sfsprintf(s, LS_W_MAX, " %-*I*d", LS_W_NAME - 1, sizeof(st->st_uid), st->st_uid); in fmtls()
74 s += sfsprintf(s, LS_W_MAX, " %-*s", LS_W_NAME - 1, fmtuid(st->st_uid)); in fmtls()
79 s += sfsprintf(s, LS_W_MAX, " %-*I*d", LS_W_NAME - 1, sizeof(st->st_gid), st->st_gid); in fmtls()
81 s += sfsprintf(s, LS_W_MAX, " %-*s", LS_W_NAME - 1, fmtgid(st->st_gid)); in fmtls()
83 if (S_ISBLK(st->st_mode) || S_ISCHR(st->st_mode)) in fmtls()
84 s += sfsprintf(s, LS_W_MAX, "%8s ", fmtdev(st)); in fmtls()
[all …]
/titanic_41/usr/src/lib/libast/common/comp/
H A Dgross.c35 extern int fstat(int fd, struct stat* st) in fstat() argument
38 return __fxstat(_STAT_VER, fd, st); in fstat()
40 return _fxstat(_STAT_VER, fd, st); in fstat()
44 extern int lstat(const char* path, struct stat* st) in lstat() argument
47 return __lxstat(_STAT_VER, path, st); in lstat()
49 return _lxstat(_STAT_VER, path, st); in lstat()
53 extern int stat(const char* path, struct stat* st) in stat() argument
56 return __xstat(_STAT_VER, path, st); in stat()
58 return _xstat(_STAT_VER, path, st); in stat()
66 extern int fstat64(int fd, struct stat64* st) in fstat64() argument
[all …]
/titanic_41/usr/src/uts/sun4/io/efcode/
H A Dfcode.c260 struct fc_state *st; in fc_open() local
282 for (m = 0, st = fc_states; m < fc_max_opens; m++, st++) { in fc_open()
283 if (FC_STATE_ACTIVE(st->state)) in fc_open()
286 st->state = FC_STATE_OPEN; in fc_open()
287 st->req = 0; in fc_open()
305 struct fc_state *st; in fc_close() local
310 st = fc_states + m; in fc_close()
311 ASSERT(m < fc_max_opens && FC_STATE_ACTIVE(st->state)); in fc_close()
320 if (st->state == FC_STATE_READ_DONE) { in fc_close()
321 fp = st->req; in fc_close()
[all …]
/titanic_41/usr/src/test/libc-tests/tests/symbols/
H A Dsymbols_test.c147 append_sym_test(struct sym_test *st) in append_sym_test() argument
149 *sym_insert = st; in append_sym_test()
150 sym_insert = &st->st_next; in append_sym_test()
331 mkprog(struct sym_test *st) in mkprog() argument
337 for (int i = 0; i < MAXHDR && st->st_hdrs[i] != NULL; i++) { in mkprog()
338 addprogfmt("#include <%s>\n", st->st_hdrs[i]); in mkprog()
341 for (s = st->st_rtype; *s; s++) { in mkprog()
354 switch (st->st_type) { in mkprog()
362 addprogfmt("\ttest_value = %s;\n}", st->st_name); in mkprog()
367 for (int i = 0; st->st_atypes[i] != NULL && i < MAXARG; i++) { in mkprog()
[all …]
/titanic_41/usr/src/cmd/backup/dump/
H A Dpartial.c55 struct stat64 st; in partial_check() local
57 if (stat64(disk, &st) < 0 || in partial_check()
58 (st.st_mode & S_IFMT) == S_IFCHR || in partial_check()
59 (st.st_mode & S_IFMT) == S_IFBLK) in partial_check()
62 partial_dev = st.st_dev; in partial_check()
66 st.st_dev = devfromopts(mnt); in partial_check()
67 if (st.st_dev == NODEV && in partial_check()
68 stat64(mnt->mnt_dir, &st) < 0) in partial_check()
70 if (partial_dev == st.st_dev) { in partial_check()
113 struct stat64 st; local
[all …]
/titanic_41/usr/src/lib/libumem/common/
H A Dgetpcstack.c68 stack_t st; in getpcstack() local
70 if (stack_getbounds(&st) != 0) { in getpcstack()
71 if (thr_stksegment(&st) != 0 || in getpcstack()
72 (uintptr_t)st.ss_sp < st.ss_size) { in getpcstack()
79 st.ss_sp = (void *)(((uintptr_t)st.ss_sp) - st.ss_size); in getpcstack()
80 st.ss_flags = 0; /* can't be on-stack */ in getpcstack()
82 on_altstack = (st.ss_flags & SS_ONSTACK); in getpcstack()
84 if (st.ss_size != 0) { in getpcstack()
85 base = (uintptr_t)st.ss_sp; in getpcstack()
86 size = st.ss_size; in getpcstack()
[all …]
/titanic_41/usr/src/lib/libm/i386/src/
H A Dacosl.s37 fld %st(1) / x , 1 , x
43 fadd %st(1),%st / 1+x,x
51 fstp %st(0) / -1
52 fstp %st(0) / empty NPX stack
56 fxch %st(1) / x,1+x
58 fsubp %st,%st(1) / 1-x,1+x
59 fdivp %st,%st(1) / (1-x)/(1+x)
63 fadd %st(0),%st
67 fstp %st(0) / x
68 fsub %st,%st(0) / +/-0 or NaN+invalid
[all …]
/titanic_41/usr/src/common/net/wanboot/
H A Dp12aux.h48 #define sk_EVP_PKEY_free(st) SKM_sk_free(EVP_PKEY, (st)) argument
49 #define sk_EVP_PKEY_num(st) SKM_sk_num(EVP_PKEY, (st)) argument
50 #define sk_EVP_PKEY_value(st, i) SKM_sk_value(EVP_PKEY, (st), (i)) argument
51 #define sk_EVP_PKEY_push(st, val) SKM_sk_push(EVP_PKEY, (st), (val)) argument
52 #define sk_EVP_PKEY_find(st, val) SKM_sk_find(EVP_PKEY, (st), (val)) argument
53 #define sk_EVP_PKEY_delete(st, i) SKM_sk_delete(EVP_PKEY, (st), (i)) argument
54 #define sk_EVP_PKEY_delete_ptr(st, ptr) SKM_sk_delete_ptr(EVP_PKEY, (st), (ptr)) argument
55 #define sk_EVP_PKEY_insert(st, val, i) SKM_sk_insert(EVP_PKEY, (st), (val), (i)) argument
56 #define sk_EVP_PKEY_pop_free(st, free_func) SKM_sk_pop_free(EVP_PKEY, (st), \ argument
58 #define sk_EVP_PKEY_pop(st) SKM_sk_pop(EVP_PKEY, (st)) argument

12345678910>>...33