Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_mapping.c229 sptr = cp; in __s_api_parse_map()
276 sptr++; in __s_api_parse_map()
277 dptr = sptr; in __s_api_parse_map()
353 sptr = *cur; in __s_api_parseASearchDesc()
370 for (/* none */; state != P_EXIT && sptr && *sptr; sptr++) { in __s_api_parseASearchDesc()
410 sptr++; in __s_api_parseASearchDesc()
445 sptr++; in __s_api_parseASearchDesc()
474 if (*sptr == '\0' || (*sptr == SEMITOK)) { in __s_api_parseASearchDesc()
477 sptr--; in __s_api_parseASearchDesc()
500 sptr++; in __s_api_parseASearchDesc()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgetservent_r.c46 *answerp = sptr; in getservbyname_r()
67 *answerp = sptr; in getservbyport_r()
93 *answerp = sptr; in getservent_r()
159 sptr->s_port = se->s_port; in copy_servent()
166 sptr->s_name = cp; in copy_servent()
174 sptr->s_aliases[i] = cp; in copy_servent()
177 sptr->s_aliases[i] = NULL; in copy_servent()
182 sptr->s_proto = cp; in copy_servent()
194 sptr->s_port = se->s_port; in copy_servent()
201 sptr->s_name = cp; in copy_servent()
[all …]
/illumos-gate/usr/src/cmd/sgs/libelf/misc/
H A Dargs.c94 *sptr = app_String(*sptr,PTR(r->ptr)); in nsetarg()
113 demangle_doarg(sptr,c) in demangle_doarg() argument
114 String **sptr; in demangle_doarg()
159 (*sptr) = app_String(*sptr,
162 *sptr = trunc_String(*sptr, 1);
258 nsetarg(sptr,&ar,c+i,cnt);
343 demangle_doargs(sptr,c) in demangle_doargs() argument
344 String **sptr; in demangle_doargs()
350 *sptr = app_String(*sptr,MSG_ORIG(MSG_STR_OPENPAR));
354 (*sptr) = app_String(*sptr,(*c && *c == 'e') ?
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/lib/libnsl/dial/
H A Dconn.c424 char *bptr, *sptr; in expect() local
429 for (sptr = str; *sptr; 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()
624 switch (*sptr) { in sendthem()
640 *bptr++ = *sptr; in sendthem()
644 *bptr++ = *sptr; in sendthem()
[all …]
/illumos-gate/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 …]
/illumos-gate/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()
/illumos-gate/usr/src/cmd/bnu/
H A Dconn.c626 char *bptr, *sptr; local
631 for (sptr = str; *sptr; sptr++) {
633 switch (*++sptr) {
649 *bptr++ = *sptr;
653 *bptr++ = *sptr;
785 char *sptr, *bptr; local
812 for (sptr = EOTMSG; *sptr; sptr++)
843 for (sptr = str; *sptr; sptr++) {
845 switch(*++sptr) {
873 *bptr++ = *sptr;
[all …]
/illumos-gate/usr/src/cmd/awk/
H A Drun.c2071 sptr = t; in sub()
2084 sptr++; in sub()
2157 sptr++; in gsub()
2185 sptr = t; in gsub()
2191 sptr = rptr; in gsub()
2198 sptr++; in gsub()
2220 sptr = t; in gsub()
2253 if (sptr[2] == '\\' && sptr[3] == '&') { /* \\\& -> \& */ in backsub()
2256 sptr += 4; in backsub()
2259 sptr += 2; in backsub()
[all …]
/illumos-gate/usr/src/lib/libtecla/common/
H A Dpcache.c598 sptr = pptr; in pca_extract_dir()
609 if(_pn_append_to_path(pc->path, sptr, pptr - sptr, 1) == NULL) { in pca_extract_dir()
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()
1444 const char *sptr; /* A pointer into suffix[] */ in pca_prepare_suffix() local
1461 for(sptr = suffix; *sptr; sptr++) { in pca_prepare_suffix()
[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()
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dcollate.c277 const int *sptr; in _collate_lookup() local
294 if ((sptr = *state) != NULL) { in _collate_lookup()
295 *pri = *sptr; in _collate_lookup()
296 sptr++; in _collate_lookup()
297 if ((sptr == *state) || (sptr == NULL)) in _collate_lookup()
300 *state = sptr; in _collate_lookup()
360 if ((sptr = substsearch(lcc, *pri, which)) != NULL) { in _collate_lookup()
361 if ((*pri = *sptr) > 0) { in _collate_lookup()
362 sptr++; in _collate_lookup()
363 *state = *sptr ? sptr : NULL; in _collate_lookup()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/dc/
H A Ddc.c590 p = sptr->val; in commnds()
605 sptr->val = p; in commnds()
618 sfree = sptr; in commnds()
619 p = sptr->val; in commnds()
662 p = sptr->val; in commnds()
676 sptr->val = p; in commnds()
703 p = sptr->val; in commnds()
1210 sptr++; in init()
1212 sptr->next = 0; in init()
2061 if (sptr != 0) { in load()
[all …]
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/
H A Demacs.c1367 sptr = drawbuff; in draw()
1449 sptr += genlen(sptr); in draw()
1451 if(sptr == logcursor) in draw()
1476 sptr = ep->screen; in draw()
1488 if (*sptr == '\0') in draw()
1491 *sptr = ' '; in draw()
1493 if (*nptr == *sptr) in draw()
1496 sptr++; in draw()
1500 *sptr++ = *nptr++; in draw()
1504 if(*sptr=='\0') in draw()
[all …]
/illumos-gate/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;
/illumos-gate/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;
/illumos-gate/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()
/illumos-gate/usr/src/cmd/more/
H A Dmore.c1603 register char *sptr; in ttyin() local
1613 sptr = buf; in ttyin()
1615 while (sptr - buf < nmax) { in ttyin()
1624 if (sptr > buf) { in ttyin()
1627 sptr -= (*--BufferPointer); in ttyin()
1628 if ((*sptr < ' ' && *sptr != '\n') || *sptr == RUBOUT) { in ttyin()
1650 sptr = buf; in ttyin()
1661 *sptr++ = ch; in ttyin()
1679 buffer[0] = *sptr++ = ch; in ttyin()
1687 *--sptr = '\0'; in ttyin()
[all …]
/illumos-gate/usr/src/cmd/pg/
H A Dpg.c851 char *sptr, *p; in ttyin() local
862 sptr = cmdbuf; in ttyin()
876 if (sptr > cmdbuf) { in ttyin()
880 while (p < sptr) { in ttyin()
895 sptr = oldp; in ttyin()
897 (void) set_state(&state, ch, sptr); in ttyin()
916 sptr--; in ttyin()
919 if (sptr >= cmdbuf + sizeof (cmdbuf) || in ttyin()
927 if (set_state(&state, ch, sptr) == 0) { in ttyin()
932 sptr += length; in ttyin()
[all …]
/illumos-gate/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);
/illumos-gate/usr/src/cmd/sendmail/libsmutil/
H A Dsafefile.c547 char *sptr; local
549 sptr = strrchr(s, '/');
550 if (sptr != NULL)
552 *sptr = '\0';
553 offset = sptr + 1 - s;
565 *sptr = '/';

123