/illumos-gate/usr/src/lib/nsswitch/files/common/ |
H A D | getservent.c | 42 const char *limit, *linep, *keyp; local 45 linep = line; 50 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { 52 linep++; 54 if (*keyp == '\0' && linep < limit && isspace(*linep)) { 62 while (linep < limit && !isspace(*linep)) 131 const char *limit, *linep, *keyp, *numstart; local [all...] |
H A D | ether_addr.c | 55 const char *limit, *linep, *keyp; local 56 linep = line; 60 while (linep < limit && isspace(*linep)) 61 linep++; 63 while (linep < limit && !isspace(*linep)) 64 linep++; 66 while (linep < limit && isspace(*linep)) 112 const char *limit, *linep; local [all...] |
H A D | getgrent.c | 62 const char *linep, *limit, *end; local 64 linep = line; 70 while (linep < limit && *linep++ != ':') /* skip groupname */ 72 while (linep < limit && *linep++ != ':') /* skip password */ 74 if (linep == limit) 78 end = linep; 79 id = (uint_t)strtoul(linep, (char **)&end, 10); 81 if (linep 100 const char *linep, *limit; local 127 const char *linep, *limit, *end; local 174 char *linep, *limit, *gidp; local [all...] |
H A D | tsol_gettpent.c | 39 const char *limit, *linep, *keyp; local 41 linep = line; 46 while (*keyp && linep < limit && *linep != ':' && *keyp == *linep) { 48 linep++; 50 if (*keyp == '\0' && linep < limit && *linep == ':')
|
H A D | getpwnam.c | 63 const char *linep, *limit, *end; local 65 linep = line; 71 while (linep < limit && *linep++ != ':') /* skip username */ 73 while (linep < limit && *linep++ != ':') /* skip password */ 75 if (linep == limit) 79 end = linep; 80 id = (uint_t)strtoul(linep, (char **)&end, 10); 83 if (linep 102 const char *linep, *limit; local 129 const char *linep, *limit, *end; local 175 char *linep, *limit, *uidp, *gidp; local [all...] |
H A D | getnetent.c | 55 const char *limit, *linep, *addrstart; local 60 linep = line; 64 while (linep < limit && !isspace(*linep)) 65 linep++; 67 while (linep < limit && isspace(*linep)) 68 linep++; 69 if (linep == limit) 72 addrstart = linep; [all...] |
H A D | getprotoent.c | 51 const char *limit, *linep; local 53 linep = line; 57 while (linep < limit && !isspace(*linep)) 58 linep++; 60 while (linep < limit && isspace(*linep)) 61 linep++; 62 if (linep == limit) 64 proto = (int)strtol(linep, NUL [all...] |
H A D | getrpcent.c | 51 const char *limit, *linep; local 53 linep = line; 57 while (linep < limit && !isspace(*linep)) 58 linep++; 60 while (linep < limit && isspace(*linep)) 61 linep++; 62 if (linep == limit) 64 r_number = (int)strtol(linep, NUL [all...] |
H A D | getprojent.c | 62 const char *linep, *limit, *end; local 64 linep = line; 71 while (linep < limit && *linep++ != ':'); 72 if (linep == limit) 76 end = linep; 77 id = (uint_t)strtol(linep, (char **)&end, 10); 78 if (linep == end) 100 const char *linep, *limit, *end; local 102 linep [all...] |
H A D | tsol_getrhent.c | 40 const char *limit, *linep, *keyp; local 44 linep = line; 49 if (strstr(linep, "\\:") != NULL) 63 while (*keyp && linep < limit && *keyp == *linep) { 64 if ((ipv6 == 0 && *linep == ':') || 65 (ipv6 == 1 && prev != '\\' && *linep == ':')) 68 prev = *linep; 70 linep++; 72 if (*keyp == '\0' && linep < limi [all...] |
H A D | getprinter.c | 44 const char *limit, *linep; local 48 linep = line; 54 while (linep+klen < limit && *linep != '|' && *linep != ':') { 55 if ((strncmp(linep, keyp, klen) == 0) && 56 ((*(linep + klen) == '|') || (*(linep + klen) == ':'))) { 59 while (linep < limit && *linep ! [all...] |
H A D | getspent.c | 37 const char *linep = line; local 43 while (*keyp && linelen-- && *keyp == *linep) { 45 linep++; 47 return (linelen && *keyp == '\0' && *linep == ':');
|
H A D | netmasks.c | 54 const char *limit, *linep, *addrstart; local 59 linep = line; 63 while (linep < limit && isspace(*linep)) 64 linep++; 66 addrstart = linep; 67 while (linep < limit && !isspace(*linep)) 68 linep++; 69 if (linep [all...] |
H A D | gethostent.c | 52 const char *limit, *linep, *keyp, *addrstart; local 55 linep = line; 59 addrstart = linep; 60 while (linep < limit && !isspace(*linep)) { 61 if (*linep == ':') 63 linep++; 65 addrlen = linep - addrstart; 68 while (linep < limit && isspace(*linep)) 171 const char *limit, *linep, *addrstart; local [all...] |
H A D | files_common.c | 676 const char *linep, *limit; 679 linep = line; 681 while (*keyp && linep < limit && *keyp == *linep) { 683 linep++; 685 return (linep < limit && *keyp == '\0' && *linep == ':'); 699 const char *limit, *linep, *keyp; 701 linep = line; 706 while (*keyp && linep < limi [all...] |
/illumos-gate/usr/src/lib/nsswitch/nis/common/ |
H A D | getservent.c | 73 const char *limit, *linep, *keyp; local 76 linep = (const char *)argp->buf.buffer; 77 limit = linep + strlen(argp->buf.buffer); 81 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { 83 linep++; 85 if (*keyp == '\0' && linep < limit && isspace(*linep)) { 93 while (linep < limi 227 const char *limit, *linep, *keyp, *numstart; local [all...] |
H A D | getpwnam.c | 62 char *linep, *limit, *uidp, *gidp, *newline; local 69 linep = *linepp; 70 limit = linep + linelen; 73 if (linelen == 0 || *linep == '+' || *linep == '-') 76 while (linep < limit && *linep++ != ':') /* skip username */ 78 while (linep < limit && *linep++ != ':') /* skip password */ 80 if (linep [all...] |
H A D | getgrent.c | 71 char *linep, *limit, *gidp, *newline; local 76 linep = *linepp; 77 limit = linep + linelen; 80 if (linelen == 0 || *linep == '+' || *linep == '-') 83 while (linep < limit && *linep++ != ':') /* skip groupname */ 85 while (linep < limit && *linep++ != ':') /* skip password */ 87 if (linep [all...] |
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/ |
H A D | ds_util.c | 59 char *linep; local 69 linep = linebuf; 74 (void) snprintf(linep, bufleft, "0x%08x ", byte_count); 75 len = strlen(linep); 77 linep += len; 84 (void) snprintf(linep, bufleft, "%02X", (unsigned int) 87 len = strlen(linep); 89 linep += len; 93 *linep = '-'; 95 *linep [all...] |
/illumos-gate/usr/src/cmd/line/ |
H A D | line.c | 54 char *linep, *linend; local 57 linep = line; 61 if (linep == linend) { 63 linep = line; 65 *linep++ = c; 69 (void) write(1, line, linep-line);
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_tab.c | 55 md_tab_line_t *linep = &tabp->lines[line]; local 57 if (linep->context != NULL) 58 Free(linep->context); 59 if (linep->cname != NULL) 60 Free(linep->cname); 61 if (linep->argv != NULL) { 62 assert(linep->alloc > 0); 63 Free(linep->argv); 76 md_tab_line_t *linep, 82 if (argc < linep 75 realloc_argv( md_tab_line_t *linep, size_t argc ) argument 163 md_tab_line_t *linep; local 341 md_tab_line_t *linep = &tabp->lines[line]; local [all...] |
/illumos-gate/usr/src/cmd/ypcmd/mknetid/ |
H A D | getname.c | 85 getname(name, namelen, ignore, sep, linep, com) 90 char **linep; 97 lp = *linep; 102 *linep = lp - 1; 119 *linep = lp; 122 *linep = lp;
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | nsparse.c | 134 _nsw_getoneconfig_v1(const char *name, char *linep, enum __nsw_parse_err *errp) argument 135 /* linep Nota Bene: not const char * */ 154 /* linep points to a naming service name */ 159 if (*linep == '\0' || *linep == '\n') { 181 if (tokenp = skip(&linep, '[')) { /* got criteria */ 184 if (!islabel(*linep)) 193 /* linep points to a switch_err */ 198 if ((tokenp = skip(&linep, '=')) == NULL) { 203 if (!islabel(*linep)) 328 _nsw_getoneconfig(const char *name, char *linep, enum __nsw_parse_err *errp) argument 519 char *linep; local 617 char *linep; local [all...] |
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_nswparse.c | 181 _nsw_getoneconfig_v1(const char *name, char *linep, enum __nsw_parse_err *errp) argument 182 /* linep Nota Bene: not const char * */ 201 /* linep points to a naming service name */ 206 if (*linep == '\0' || *linep == '\n') { 228 if (tokenp = skip(&linep, '[')) { /* got criteria */ 231 if (!islabel(*linep)) 240 /* linep points to a switch_err */ 245 if ((tokenp = skip(&linep, '=')) == NULL) { 250 if (!islabel(*linep)) [all...] |
/illumos-gate/usr/src/lib/nsswitch/compat/common/ |
H A D | getpwent.c | 75 char *linep, *limit, *uidp, *gidp; local 85 linep = line; 88 while (linep < limit && *linep++ != ':') /* skip username */ 90 while (linep < limit && *linep++ != ':') /* skip password */ 92 if (linep == limit) 95 uidp = linep; 96 uidl = strtoul(uidp, (char **)&linep, 10); /* grab uid */ 97 olduidlen = linep [all...] |