Searched defs:sp (Results 1 - 25 of 963) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libpp/common/
H A Dppprintf.c34 Sfio_t* sp; local
36 if (!(sp = sfnew(NiL, pp.outp, MAXTOKEN, -1, SF_WRITE|SF_STRING)))
39 sfvprintf(sp, format, ap);
41 pp.outp += sfseek(sp, 0L, SEEK_CUR);
43 sfclose(sp);
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/gen/
H A Dindex.c49 * Return the ptr in sp at which the character c appears;
53 index(const char *sp, int c) argument
55 return (strchr(sp, c));
H A Drindex.c49 * Return the ptr in sp at which the character c last
53 rindex(const char *sp, int c) argument
55 return (strrchr(sp, c));
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/common/util/
H A Dbzero.c47 * Set an array of n chars starting at sp to zero.
50 bzero(void *sp, size_t len) argument
52 (void) memset(sp, 0, len);
/illumos-gate/usr/src/cmd/mail/
H A Dlegal.c53 register char *sp; local
66 if ((sp = strrchr(file, '/')) == NULL) {
68 } else if (sp == file) {
71 if ((sp - file + 1) > MAXFILENAME)
73 strncpy(dfile, file, sp - file);
74 dfile[sp - file] = '\0';
/illumos-gate/usr/src/ucblib/libcurses/
H A Dinitscr.c36 char *sp; local
45 if ((sp = getenv("TERM")) == NULL)
46 sp = Def_term;
47 (void) setterm(sp);
49 fprintf(outf, "INITSCR: term = %s\n", sp);
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dbzero.c49 * Set an array of n chars starting at sp to zero.
53 bzero(char *sp, int len) argument
56 (void) _memset(sp, 0, (size_t)len);
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/libcurses/screen/
H A Dwaddnwstr.c43 char *sp; local
46 if ((sp = _strcode2byte(code, NULL, n)) == NULL)
50 return (waddnstr(win, sp, -1));
H A Dwinsnwstr.c44 char *sp; local
47 if ((sp = _strcode2byte(code, NULL, n)) == NULL)
51 return (winsnstr(win, sp, -1));
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);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/talk/
H A Dget_addrs.c59 struct servent *sp; local
116 sp = getservbyname("ntalk", "udp");
118 sp = getservbyname("talk", "udp");
121 if (strcmp(sp->s_proto, "udp") != 0) {
126 if (sp == 0) {
132 daemon_port = sp->s_port;
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dportnum.c24 struct servent *sp, *sp2; local
37 sp = getservbyname(name, proto);
38 if (sp) {
39 *port = ntohs(sp->s_port);
45 sp = getservbyname(name, "tcp");
46 if (sp)
47 p1 = sp->s_port;
49 if (!sp || !sp2) {
57 fprintf(stderr, "%d: %s %d/udp\n", linenum, name, sp->s_port);
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/os/
H A Dkrb_memset.c22 unsigned char *sp = sp1; local
24 *sp++ = (unsigned char)c;
/illumos-gate/usr/src/lib/libast/common/stdio/
H A Dgetline.c31 getline(char** sp, size_t* np, Sfio_t* f) argument
33 STDIO_INT(f, "getline", ssize_t, (char**, size_t*, Sfio_t*), (sp, np, f))
35 return getdelim(sp, np, '\n', f);
/illumos-gate/usr/src/lib/scsi/plugins/ses/LSILOGIC-SASX28-A.0/common/
H A Dlsilogic.c40 lsilogic_parse_node(ses_plugin_t *sp, ses_node_t *np) argument
57 _ses_init(ses_plugin_t *sp) argument
63 return (ses_plugin_register(sp, LIBSES_PLUGIN_VERSION,
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/
H A Dsetjmp.c44 register int sp = _getsp(); local
54 * Note that the pc and former sp (fp) from the stack are valid
59 bp->sjs_sp = *((int *)sp+14);
60 bp->sjs_pc = *((int *)sp+15) + 0x8;
78 setjmp_struct_t sjmp, *sp; local
80 sp = &sjmp;
81 sp->sjs_flags = bp->sjs_flags;
82 sp->sjs_sp = bp->sjs_sp;
83 sp->sjs_pc = bp->sjs_pc;
84 sp
[all...]
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/
H A Dsetjmp.c44 register int sp = _getsp(); local
54 * Note that the pc and former sp (fp) from the stack are valid
59 bp->sjs_sp = *((int *)sp+14);
60 bp->sjs_pc = *((int *)sp+15) + 0x8;
76 setjmp_struct_t sjmp, *sp; local
78 sp = &sjmp;
79 sp->sjs_flags = bp->sjs_flags;
80 sp->sjs_sp = bp->sjs_sp;
81 sp->sjs_pc = bp->sjs_pc;
82 sp
[all...]
/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));
H A Dwsrchr.c33 * Return the ptr in sp at which the character c last appears;
45 wcsrchr(const wchar_t *sp, wchar_t c) argument
50 if (*sp == c)
51 r = sp; /* found c in sp */
52 } while (*sp++);
57 wsrchr(const wchar_t *sp, wchar_t c) argument
59 return (wcsrchr(sp, c));

Completed in 72 milliseconds

1234567891011>>