Home
last modified time | relevance | path

Searched refs:sptr (Results 1 – 25 of 56) sorted by relevance

123

/titanic_50/usr/src/lib/libsldap/common/
H A Dns_mapping.c221 char *sptr, *dptr, **mapp; in __s_api_parse_map() local
228 sptr = cp; in __s_api_parse_map()
229 dptr = strchr(sptr, COLONTOK); in __s_api_parse_map()
232 i = dptr - sptr + 1; in __s_api_parse_map()
236 (void) strlcpy(*sid, sptr, i); in __s_api_parse_map()
237 sptr = dptr+1; in __s_api_parse_map()
239 dptr = strchr(sptr, TOKENSEPARATOR); in __s_api_parse_map()
245 i = dptr - sptr + 1; in __s_api_parse_map()
252 (void) strlcpy(*origA, sptr, i); in __s_api_parse_map()
253 sptr = dptr+1; in __s_api_parse_map()
[all …]
/titanic_50/usr/src/lib/libresolv2/common/irs/
H A Dgetservent_r.c42 struct servent *sptr, SERV_R_ARGS) { in getservbyname_r() argument
47 if (se == NULL || (n = copy_servent(se, sptr, SERV_R_COPY)) != 0) in getservbyname_r()
50 *answerp = sptr; in getservbyname_r()
57 return (copy_servent(se, sptr, SERV_R_COPY)); in getservbyname_r()
63 struct servent *sptr, SERV_R_ARGS) { in getservbyport_r() argument
68 if (se == NULL || (n = copy_servent(se, sptr, SERV_R_COPY)) != 0) in getservbyport_r()
71 *answerp = sptr; in getservbyport_r()
78 return (copy_servent(se, sptr, SERV_R_COPY)); in getservbyport_r()
89 getservent_r(struct servent *sptr, SERV_R_ARGS) { in getservent_r() argument
94 if (se == NULL || (n = copy_servent(se, sptr, SERV_R_COPY)) != 0) in getservent_r()
[all …]
/titanic_50/usr/src/cmd/sgs/libelf/misc/
H A Dargs.c83 nsetarg(String ** sptr, Arg_Remem * r, const char * c, int n) in nsetarg() argument
94 *sptr = app_String(*sptr,PTR(r->ptr)); in nsetarg()
103 setarg(String ** sptr, Arg_Remem * r, const char * c) in setarg() argument
105 nsetarg(sptr, r, c, ID_NAME_MAX); in setarg()
113 demangle_doarg(sptr,c) in demangle_doarg() argument
114 String **sptr; in demangle_doarg()
139 (void) demangle_doarg(sptr,here.list[here.pos]);
158 (void) demangle_doarg(sptr,here.list[here.pos]);
159 (*sptr) = app_String(*sptr,
162 *sptr = trunc_String(*sptr, 1);
[all …]
/titanic_50/usr/src/cmd/fm/eversholt/common/
H A Dstable.c149 const char *sptr; in stable() local
155 for (sptr = &s[1]; *sptr; sptr++) { in stable()
157 hash ^= (((unsigned)*sptr) << (slen % 3)) + in stable()
158 ((unsigned)*(sptr - 1) << ((slen % 3 + 7))); in stable()
169 sptr = s; in stable()
171 while (*sptr && *eptr && *sptr++ == *eptr++) in stable()
173 if (*sptr == '\0' && *eptr == '\0') in stable()
195 sptr = s; in stable()
196 while (*Stablenext++ = *sptr++) in stable()
/titanic_50/usr/src/lib/libnsl/dial/
H A Dconn.c424 char *bptr, *sptr; in expect() local
429 for (sptr = str; *sptr; sptr++) { in expect()
430 if (*sptr == '\\') { in expect()
431 switch (*++sptr) { in expect()
447 *bptr++ = *sptr; in expect()
451 *bptr++ = *sptr; in expect()
580 char *sptr, *bptr; in sendthem() local
606 for (sptr = str; *sptr; sptr++) { in sendthem()
607 if (*sptr == '\\') { in sendthem()
608 switch (*++sptr) { in sendthem()
[all …]
/titanic_50/usr/src/cmd/strings/
H A Dstrings.c147 sec_name_t *sptr; in look_in_sections() local
149 for (sptr = seclistptr; sptr != NULL; in look_in_sections()
150 sptr = sptr->next) { in look_in_sections()
151 if (strcmp(scn_name, sptr->name) == 0) { in look_in_sections()
187 sec_name_t *sptr; local
227 if (((sptr = malloc(sizeof (sec_name_t)))
228 == NULL) || ((sptr->name = strdup(optarg))
236 seclistptr = sptr;
238 seclistendptr = sptr;
240 seclistendptr->next = sptr;
[all …]
/titanic_50/usr/src/lib/libc/port/gen/
H A Dgethz.c50 char *sptr, *cptr; in gethz() local
52 if ((sptr = getenv("HZ")) == NULL) { in gethz()
55 cptr = sptr; in gethz()
63 return (atoi(sptr)); in gethz()
/titanic_50/usr/src/cmd/bnu/
H A Dconn.c626 char *bptr, *sptr; local
631 for (sptr = str; *sptr; sptr++) {
632 if (*sptr == '\\') {
633 switch (*++sptr) {
649 *bptr++ = *sptr;
653 *bptr++ = *sptr;
785 char *sptr, *bptr; local
812 for (sptr = EOTMSG; *sptr; sptr++)
813 *bptr++ = par_tab[*sptr&0177];
843 for (sptr = str; *sptr; sptr++) {
[all …]
/titanic_50/usr/src/cmd/awk/
H A Drun.c1733 register uchar *sptr; in sub() local
1753 sptr = t; in sub()
1754 len = patbeg - sptr; in sub()
1757 (void) memcpy(buf, sptr, len); in sub()
1760 sptr = getsval(y); in sub()
1761 while (*sptr != 0) { in sub()
1763 if (*sptr == '\\' && in sub()
1764 (*(sptr+1) == '&' || *(sptr+1) == '\\')) { in sub()
1765 sptr++; /* skip \, */ in sub()
1766 buf[cnt++] = *sptr++; /* add & or \ */ in sub()
[all …]
/titanic_50/usr/src/lib/libtecla/common/
H A Dpcache.c586 const char *sptr; /* The path following tilde expansion */ in pca_extract_dir() local
598 sptr = pptr; in pca_extract_dir()
609 if(_pn_append_to_path(pc->path, sptr, pptr - sptr, 1) == NULL) { in pca_extract_dir()
666 const char *sptr; /* A pointer into string[] */ in pca_read_username() local
671 for(sptr=string,usrlen=0; usrlen < USR_LEN && (sptr-string) < slen; sptr++) { in pca_read_username()
676 if(!*sptr || strncmp(sptr, FS_DIR_SEP, FS_DIR_SEP_LEN)==0 || in pca_read_username()
677 (!escaped && *sptr == ':')) in pca_read_username()
682 if(!literal && !escaped && *sptr == '\\') { in pca_read_username()
686 pc->usrnam[usrlen++] = *sptr; in pca_read_username()
703 *nextp = sptr; in pca_read_username()
[all …]
H A Dcplfile.c774 const char *sptr; /* A pointer into string[] */ in cf_read_name() local
782 for(sptr=string,namlen=0; in cf_read_name()
784 strncmp(sptr, FS_DIR_SEP, FS_DIR_SEP_LEN) != 0); in cf_read_name()
786 nambuf[namlen] = *sptr++; in cf_read_name()
817 const char *sptr; /* A pointer into suffix[] */ in cf_prepare_suffix() local
834 for(sptr = suffix; *sptr; sptr++) { in cf_prepare_suffix()
835 switch(*sptr) { in cf_prepare_suffix()
/titanic_50/usr/src/lib/libc/port/locale/
H A Dcollate.c286 const int *sptr; in _collate_lookup() local
303 if ((sptr = *state) != NULL) { in _collate_lookup()
304 *pri = *sptr; in _collate_lookup()
305 sptr++; in _collate_lookup()
306 *state = *sptr ? sptr : NULL; in _collate_lookup()
366 if ((sptr = substsearch(lcc, *pri, which)) != NULL) { in _collate_lookup()
367 if ((*pri = *sptr) != 0) { in _collate_lookup()
368 sptr++; in _collate_lookup()
369 *state = *sptr ? sptr : NULL; in _collate_lookup()
/titanic_50/usr/src/uts/common/avs/ns/nsctl/
H A Dnsc_gen.c627 _nsc_sprint_dec(char **sptr, int n, int zero, int len) in _nsc_sprint_dec() argument
642 *(*sptr)++ = ' '; in _nsc_sprint_dec()
645 *(*sptr)++ = '-'; in _nsc_sprint_dec()
650 *(*sptr)++ = (zero ? '0' : ' '); in _nsc_sprint_dec()
653 *(*sptr)++ = '0'; in _nsc_sprint_dec()
656 *(*sptr)++ = c[i]; in _nsc_sprint_dec()
677 _nsc_sprint_hex(char **sptr, uint_t v, int up, int alt, int zero, int len) in _nsc_sprint_hex() argument
692 *(*sptr)++ = '0'; in _nsc_sprint_hex()
693 *(*sptr)++ = (up ? 'X' : 'x'); in _nsc_sprint_hex()
697 *(*sptr)++ = (zero ? '0' : ' '); in _nsc_sprint_hex()
[all …]
/titanic_50/usr/src/uts/common/io/ib/mgt/ibmf/
H A Dibmf_handlers.c416 char buf[256], *sptr; in ibmf_i_dump_wcp() local
432 for (sptr = buf, j = 0; j < 16; j++) { in ibmf_i_dump_wcp()
433 (void) sprintf(sptr, "%02x ", *ptr++); in ibmf_i_dump_wcp()
434 sptr += 3; /* 2 digits + space */ in ibmf_i_dump_wcp()
440 for (sptr = buf, j = 0; j < i; j++) { in ibmf_i_dump_wcp()
441 (void) sprintf(sptr, "%02x ", *ptr++); in ibmf_i_dump_wcp()
442 sptr += 3; /* 2 digits + space */ in ibmf_i_dump_wcp()
/titanic_50/usr/src/common/util/
H A Dmemchr.c46 memchr(const void *sptr, int c1, size_t n) in memchr() argument
50 const unsigned char *sp = sptr; in memchr()
H A Dmemstr.c92 memchr(const void *sptr, int c1, size_t n) in memchr() argument
96 const unsigned char *sp = sptr; in memchr()
/titanic_50/usr/src/lib/libshell/common/edit/
H A Demacs.c1289 register genchar *sptr; /* Pointer within screen */ in draw() local
1299 sptr = drawbuff; in draw()
1300 logcursor = sptr + cur; in draw()
1351 ncursor = nptr + ed_virt_to_phys(ep->ed,sptr,nptr,cur,0,0); in draw()
1353 sptr += genlen(sptr); in draw()
1355 if(sptr == logcursor) in draw()
1380 sptr = ep->screen; in draw()
1392 if (*sptr == '\0') in draw()
1394 *(sptr + 1) = '\0'; in draw()
1395 *sptr = ' '; in draw()
[all …]
/titanic_50/usr/src/lib/libcurses/screen/
H A Dwaddwchnstr.c51 chtype *sptr = ptr; in waddwchnstr() local
63 while (ptr < sptr) in waddwchnstr()
114 my_maxx = (short) (ptr - sptr + my_x); in waddwchnstr()
/titanic_50/usr/src/cmd/dc/
H A Ddc.c563 sptr = stable[c]; in commnds()
568 sp->next = sptr; in commnds()
588 sptr = stable[c]; in commnds()
589 if (sptr != 0) { in commnds()
590 p = sptr->val; in commnds()
598 sptr = stable[c] = sfree; in commnds()
602 sptr->next = 0; in commnds()
605 sptr->val = p; in commnds()
612 sptr = stable[c]; in commnds()
613 if (sptr == 0) { in commnds()
[all …]
/titanic_50/usr/src/lib/libc/amd64/gen/
H A Dmemchr.s29 / memchr(sptr, c1, n)
31 / Returns the pointer in sptr at which the character c1 appears;
38 / memchr(const void *sptr, int c1, size_t n)
42 / const unsigned char *sp = sptr;
/titanic_50/usr/src/lib/libc/i386/gen/
H A Dmemchr.s29 / memchr(sptr, c1, n)
31 / Returns the pointer in sptr at which the character c1 appears;
38 / memchr(const void *sptr, int c1, size_t n)
42 / const unsigned char *sp = sptr;
/titanic_50/usr/src/cmd/mdb/common/mdb/
H A Dmdb_typedef.c134 char *ret, *sptr; in typedef_join_strings() local
143 sptr = ret; in typedef_join_strings()
145 (void) strcpy(sptr, args[i].a_un.a_str); in typedef_join_strings()
146 sptr += strlen(args[i].a_un.a_str); in typedef_join_strings()
147 *sptr = ' '; in typedef_join_strings()
148 sptr++; in typedef_join_strings()
150 *sptr = '\0'; in typedef_join_strings()
/titanic_50/usr/src/cmd/more/
H A Dmore.c1578 register char *sptr; in ttyin() local
1588 sptr = buf; in ttyin()
1590 while (sptr - buf < nmax) { in ttyin()
1599 if (sptr > buf) { in ttyin()
1602 sptr -= (*--BufferPointer); in ttyin()
1603 if ((*sptr < ' ' && *sptr != '\n') || *sptr == RUBOUT) { in ttyin()
1625 sptr = buf; in ttyin()
1631 sptr -= (*--BufferPointer); in ttyin()
1636 *sptr++ = ch; in ttyin()
1654 buffer[0] = *sptr++ = ch; in ttyin()
[all …]
/titanic_50/usr/src/cmd/tic/
H A Dtic_read.c119 read_entry(filename, bptr, nptr, sptr) in read_entry() argument
123 struct _str_struct *sptr;
173 US = &(sptr->strs._back_tab);
/titanic_50/usr/src/cmd/pg/
H A Dpg.c853 char *sptr, *p; in ttyin() local
864 sptr = cmdbuf; in ttyin()
878 if (sptr > cmdbuf) { in ttyin()
882 while (p < sptr) { in ttyin()
897 sptr = oldp; in ttyin()
899 (void) set_state(&state, ch, sptr); in ttyin()
918 sptr--; in ttyin()
921 if (sptr >= cmdbuf + sizeof (cmdbuf) || in ttyin()
929 if (set_state(&state, ch, sptr) == 0) { in ttyin()
933 (void) strncpy(sptr, multic, (size_t)length); in ttyin()
[all …]

123