Searched refs:sp (Results 1 - 25 of 1196) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dindex.c26 * Return the ptr in sp at which the character c appears;
33 index(sp, c)
34 register char *sp, c;
38 if (*sp == c)
39 return (sp);
40 } while (*sp++);
H A Dstrchr.c29 * Return the ptr in sp at which the character c appears;
36 strchr(sp, c)
37 register char *sp, c;
40 if(*sp == c)
41 return(sp);
42 } while(*sp++);
H A Dmemchr.c29 * Return the ptr in sp at which the character c appears;
33 memchr(sp, c, n)
34 register char *sp, c;
38 if (*sp++ == c)
39 return (--sp);
H A Drindex.c26 * Return the ptr in sp at which the character c last
33 rindex(sp, c)
34 register char *sp, c;
40 if (*sp == c)
41 r = sp;
42 } while (*sp++);
H A Dstrrchr.c29 * Return the ptr in sp at which the character c last
36 strrchr(sp, c)
37 register char *sp, c;
43 if(*sp == c)
44 r = sp;
45 } while(*sp++);
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dtypesign.c1 static unsigned int * s_to_u_return(signed int *sp) argument
3 return sp;
11 static unsigned int * s_to_u_init(signed int *sp) argument
13 unsigned int *up = sp;
19 signed int *sp = up; local
20 return sp;
23 static unsigned int * s_to_u_assign(signed int *sp) argument
26 up = sp;
32 signed int *sp; local
33 sp
[all...]
/illumos-gate/usr/src/lib/libproc/common/
H A DPisadep.h63 #define PSTACK_ALIGN32(sp) ((sp) & ~(2 * sizeof (int64_t) - 1))
64 #define PSTACK_ALIGN64(sp) (sp)
67 #define PSTACK_ALIGN32(sp) (sp)
68 #define PSTACK_ALIGN64(sp) ALIGN32(sp)
71 #define PSTACK_ALIGN32(sp) ((sp)
[all...]
/illumos-gate/usr/src/cmd/fm/eversholt/files/sparc/sun4v/
H A Dsp.esc32 event fault.sp.failed@sp;
34 event ereport.chassis.sp.unavailable@chassis;
36 prop fault.sp.failed@sp ->
37 ereport.chassis.sp.unavailable@chassis;
/illumos-gate/usr/src/lib/libast/common/stdio/
H A Dstdio_c99.c31 clearerr_unlocked(Sfio_t* sp) argument
33 clearerr(sp);
37 feof_unlocked(Sfio_t* sp) argument
39 return feof(sp);
43 ferror_unlocked(Sfio_t* sp) argument
45 return ferror(sp);
49 fflush_unlocked(Sfio_t* sp) argument
51 return fflush(sp);
55 fgetc_unlocked(Sfio_t* sp) argument
57 return fgetc(sp);
61 fgets_unlocked(char* buf, int size, Sfio_t* sp) argument
67 fileno_unlocked(Sfio_t* sp) argument
73 fputc_unlocked(int c, Sfio_t* sp) argument
79 fputs_unlocked(char* buf, Sfio_t* sp) argument
85 fread_unlocked(void* buf, size_t size, size_t n, Sfio_t* sp) argument
91 fwrite_unlocked(void* buf, size_t size, size_t n, Sfio_t* sp) argument
97 getc_unlocked(Sfio_t* sp) argument
109 putc_unlocked(int c, Sfio_t* sp) argument
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dstrchr.c38 * Return the ptr in sp at which the character c appears;
43 strchr(const char *sp, int c) argument
46 if (*sp == (char)c)
47 return ((char *)sp);
48 } while (*sp++);
H A Dstrrchr.c38 * Return the ptr in sp at which the character c last
42 strrchr(const char *sp, int c) argument
47 if (*sp == (char)c)
48 r = (char *)sp;
49 } while (*sp++);
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dindex.c45 * Return the ptr in sp at which the character c appears;
54 index(char *sp, char c) argument
58 if (*sp == c)
59 return (sp);
60 } while (*sp++);
H A Drindex.c48 * Return the ptr in sp at which the character c last
53 rindex(char *sp, char c) argument
59 if (*sp == c)
60 r = sp;
61 } while (*sp++);
/illumos-gate/usr/src/lib/libpp/common/
H A Dppincref.c34 register struct ppinstk* sp; local
42 for (sp = pp.in; sp; sp = sp->prev)
43 if (sp->type == IN_FILE)
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dwschr.c33 * Return the ptr in sp at which the character c appears;
45 wcschr(const wchar_t *sp, wchar_t c) argument
48 if (*sp == c)
49 return ((wchar_t *)sp); /* found c in sp */
50 } while (*sp++);
55 wschr(const wchar_t *sp, wchar_t c) argument
57 return (wcschr(sp, c));
/illumos-gate/usr/src/cmd/mailx/
H A Dstralloc.c72 register struct strings *sp; local
86 for (sp = &stringdope[0]; sp < &stringdope[NSPACE]; sp++) {
87 if (sp->s_topFree == NOSTR && (STRINGSIZE << index) >= s)
89 if (sp->s_nleft >= s)
93 if (sp >= &stringdope[NSPACE])
95 if (sp->s_topFree == NOSTR) {
96 index = sp - &stringdope[0];
97 sp
128 register struct strings *sp = lastsp; local
161 register struct strings *sp; local
[all...]
/illumos-gate/usr/src/cmd/svc/configd/
H A Dsnapshot.c55 rc_snapshot_t *sp; local
56 sp = uu_zalloc(sizeof (*sp));
58 (void) pthread_mutex_init(&sp->rs_lock, NULL);
59 (void) pthread_cond_init(&sp->rs_cv, NULL);
61 sp->rs_refcnt++;
62 return (sp);
66 snapshot_free(rc_snapshot_t *sp) argument
70 assert(sp->rs_refcnt == 0 && sp
92 rc_snapshot_hold(rc_snapshot_t *sp) argument
101 rc_snapshot_rele(rc_snapshot_t *sp) argument
118 rc_snapshot_t *sp = lvl->rsl_parent; local
129 rc_snapshot_t *sp = lvl->rsl_parent; local
159 rc_snapshot_t *sp; local
174 snapshot_insert_unlocked(snapshot_bucket_t *bp, rc_snapshot_t *sp) argument
186 snapshot_remove_unlocked(snapshot_bucket_t *bp, rc_snapshot_t *sp) argument
215 rc_snapshot_t *sp; local
[all...]
/illumos-gate/usr/src/lib/libast/common/comp/
H A Dmemchr.c33 * Return the ptr in sp at which the character c appears;
40 register const char* sp = (char*)asp;
41 register const char* ep = sp + n;
43 while (sp < ep)
44 if (*sp++ == c)
45 return(--sp);
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_strtab.c39 dt_strtab_grow(dt_strtab_t *sp) argument
43 if ((ptr = malloc(sp->str_bufsz)) == NULL)
46 bufs = realloc(sp->str_bufs, (sp->str_nbufs + 1) * sizeof (char *));
53 sp->str_nbufs++;
54 sp->str_bufs = bufs;
55 sp->str_ptr = ptr;
56 sp->str_bufs[sp->str_nbufs - 1] = sp
64 dt_strtab_t *sp = malloc(sizeof (dt_strtab_t)); local
99 dt_strtab_destroy(dt_strtab_t *sp) argument
145 dt_strtab_compare(dt_strtab_t *sp, dt_strhash_t *hp, const char *str, size_t len) argument
172 dt_strtab_copyin(dt_strtab_t *sp, const char *str, size_t len) argument
207 dt_strtab_index(dt_strtab_t *sp, const char *str) argument
227 dt_strtab_insert(dt_strtab_t *sp, const char *str) argument
267 dt_strtab_size(const dt_strtab_t *sp) argument
273 dt_strtab_write(const dt_strtab_t *sp, dt_strtab_write_f *func, void *private) argument
[all...]
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dstats.c98 stats_delete(struct stats *sp) argument
102 if (sp == NULL)
106 if (s == sp)
120 FREE((void *)sp->name);
121 FREE((void *)sp->desc);
122 FREE(sp);
135 stats_counter_bump(struct stats *sp) argument
137 if (sp == NULL)
140 ASSERT(sp->t == STATS_COUNTER);
142 sp
146 stats_counter_add(struct stats *sp, int n) argument
157 stats_counter_reset(struct stats *sp) argument
168 stats_counter_value(struct stats *sp) argument
188 stats_elapse_start(struct stats *sp) argument
199 stats_elapse_stop(struct stats *sp) argument
219 stats_string_set(struct stats *sp, const char *s) argument
237 struct stats *sp; local
[all...]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dmbcharlen.c43 mbcharlen(char *sp) argument
49 for (; *sp != '\0'; ++sp, ++n)
50 if (ISMBIT(*sp)) {
51 c = RBYTE(*sp);
54 for (sp += 1, k = 1; *sp != '\0' && k <= m; ++k,
55 ++sp) {
56 c = RBYTE(*sp);
H A Dmbdisplen.c43 mbdisplen(char *sp) argument
49 for (; *sp != '\0'; ++sp) {
50 if (!ISMBIT(*sp))
53 c = RBYTE(*sp);
56 for (sp += 1, k = 1; *sp != '\0' && k <= m;
57 ++k, ++sp) {
58 c = RBYTE(*sp);
H A Dwaddnwstr.c43 char *sp; local
46 if ((sp = _strcode2byte(code, NULL, n)) == NULL)
50 return (waddnstr(win, sp, -1));
/illumos-gate/usr/src/uts/common/os/
H A Dsession.c75 sess_rele(sess_t *sp, boolean_t pidlock_held) argument
79 mutex_enter(&sp->s_lock);
81 ASSERT(sp->s_ref != 0);
82 if (--sp->s_ref > 0) {
83 mutex_exit(&sp->s_lock);
86 ASSERT(sp->s_ref == 0);
103 if (sp == &session0)
104 panic("sp == &session0");
107 ASSERT(sp->s_cnt == 0);
110 ASSERT(!sp
131 sess_t *sp; local
187 tty_rele(sess_t *sp) argument
204 sess_t *sp, *old_sp; local
249 sess_ctty_clear(sess_t *sp, stdata_t *stp) argument
272 sess_ctty_set(proc_t *p, sess_t *sp, stdata_t *stp) argument
301 sess_t *sp; local
386 sess_t *sp; local
489 freectty_signal(proc_t *p, sess_t *sp, stdata_t *stp, boolean_t at_exit) argument
539 sess_t *sp; local
683 sess_t *sp; local
[all...]
/illumos-gate/usr/src/cmd/saf/
H A Dreadtab.c58 struct sactab *sp; /* working pointer to move through PM info */ local
83 for (sp = Sactab; sp; sp = sp->sc_next)
84 sp->sc_valid = 0;
90 while (sp = read_entry(fp))
91 insert(sp, startflag);
107 register struct sactab *sp; /* working pointer */ local
126 sp
254 register struct sactab *sp; /* working pointer */ local
332 register struct sactab *sp; /* working pointer */ local
[all...]

Completed in 386 milliseconds

1234567891011>>