/illumos-gate/usr/src/lib/nsswitch/files/common/ |
H A D | getservent.c | 40 const char *limit, *linep, *keyp; in check_name() local 43 linep = line; in check_name() 48 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { in check_name() 50 linep++; in check_name() 52 if (*keyp == '\0' && linep < limit && isspace(*linep)) { in check_name() 60 while (linep < limit && !isspace(*linep)) in check_name() 61 linep++; in check_name() 63 while (linep < limit && isspace(*linep)) in check_name() 64 linep++; in check_name() 66 while (linep < limit && !isspace(*linep) && *linep != '/') in check_name() [all …]
|
H A D | getpwnam.c | 63 const char *linep, *limit, *end; in hash_pwuid() local 65 linep = line; in hash_pwuid() 71 while (linep < limit && *linep++ != ':') /* skip username */ in hash_pwuid() 73 while (linep < limit && *linep++ != ':') /* skip password */ in hash_pwuid() 75 if (linep == limit) in hash_pwuid() 79 end = linep; in hash_pwuid() 80 id = (uint_t)strtoul(linep, (char **)&end, 10); in hash_pwuid() 83 if (linep == end) in hash_pwuid() 102 const char *linep, *limit; in check_pwname() local 105 linep = line; in check_pwname() [all …]
|
H A D | getgrent.c | 62 const char *linep, *limit, *end; in hash_grgid() local 64 linep = line; in hash_grgid() 70 while (linep < limit && *linep++ != ':') /* skip groupname */ in hash_grgid() 72 while (linep < limit && *linep++ != ':') /* skip password */ in hash_grgid() 74 if (linep == limit) in hash_grgid() 78 end = linep; in hash_grgid() 79 id = (uint_t)strtoul(linep, (char **)&end, 10); in hash_grgid() 81 if (linep == end) in hash_grgid() 100 const char *linep, *limit; in check_grname() local 103 linep = line; in check_grname() [all …]
|
H A D | ether_addr.c | 53 const char *limit, *linep, *keyp; in check_host() local 54 linep = line; in check_host() 58 while (linep < limit && isspace(*linep)) in check_host() 59 linep++; in check_host() 61 while (linep < limit && !isspace(*linep)) in check_host() 62 linep++; in check_host() 64 while (linep < limit && isspace(*linep)) in check_host() 65 linep++; in check_host() 66 if (linep == limit) in check_host() 71 while (*keyp != '\0' && linep < limit && *keyp == *linep) { in check_host() [all …]
|
H A D | getprojent.c | 60 const char *linep, *limit, *end; in hash_projid() local 62 linep = line; in hash_projid() 69 while (linep < limit && *linep++ != ':'); in hash_projid() 70 if (linep == limit) in hash_projid() 74 end = linep; in hash_projid() 75 id = (uint_t)strtol(linep, (char **)&end, 10); in hash_projid() 76 if (linep == end) in hash_projid() 98 const char *linep, *limit, *end; in check_projid() local 100 linep = line; in check_projid() 104 while (linep < limit && *linep++ != ':'); in check_projid() [all …]
|
H A D | getnetent.c | 52 const char *limit, *linep, *addrstart; in check_addr() local 57 linep = line; in check_addr() 61 while (linep < limit && !isspace(*linep)) in check_addr() 62 linep++; in check_addr() 64 while (linep < limit && isspace(*linep)) in check_addr() 65 linep++; in check_addr() 66 if (linep == limit) in check_addr() 69 addrstart = linep; in check_addr() 70 while (linep < limit && !isspace(*linep)) in check_addr() 71 linep++; in check_addr() [all …]
|
H A D | gethostent.c | 52 const char *limit, *linep, *keyp, *addrstart; in check_name() local 55 linep = line; in check_name() 59 addrstart = linep; in check_name() 60 while (linep < limit && !isspace(*linep)) { in check_name() 61 if (*linep == ':') in check_name() 63 linep++; in check_name() 65 addrlen = linep - addrstart; in check_name() 68 while (linep < limit && isspace(*linep)) in check_name() 69 linep++; in check_name() 73 *namep = linep; in check_name() [all …]
|
H A D | getprinter.c | 42 const char *limit, *linep; in check_name() local 46 linep = line; in check_name() 52 while (linep+klen < limit && *linep != '|' && *linep != ':') { in check_name() 53 if ((strncmp(linep, keyp, klen) == 0) && in check_name() 54 ((*(linep + klen) == '|') || (*(linep + klen) == ':'))) { in check_name() 57 while (linep < limit && *linep != '|' && *linep != ':') in check_name() 58 linep++; in check_name() 59 if (linep >= limit || *linep == ':') in check_name() 61 if (*linep == '|') in check_name() 62 linep++; in check_name()
|
H A D | getprotoent.c | 49 const char *limit, *linep; in check_addr() local 51 linep = line; in check_addr() 55 while (linep < limit && !isspace(*linep)) in check_addr() 56 linep++; in check_addr() 58 while (linep < limit && isspace(*linep)) in check_addr() 59 linep++; in check_addr() 60 if (linep == limit) in check_addr() 62 proto = (int)strtol(linep, NULL, 10); in check_addr()
|
H A D | getrpcent.c | 49 const char *limit, *linep; in check_rpcnum() local 51 linep = line; in check_rpcnum() 55 while (linep < limit && !isspace(*linep)) in check_rpcnum() 56 linep++; in check_rpcnum() 58 while (linep < limit && isspace(*linep)) in check_rpcnum() 59 linep++; in check_rpcnum() 60 if (linep == limit) in check_rpcnum() 62 r_number = (int)strtol(linep, NULL, 10); in check_rpcnum()
|
H A D | tsol_getrhent.c | 38 const char *limit, *linep, *keyp; in check_addr() local 42 linep = line; in check_addr() 47 if (strstr(linep, "\\:") != NULL) in check_addr() 61 while (*keyp && linep < limit && *keyp == *linep) { in check_addr() 62 if ((ipv6 == 0 && *linep == ':') || in check_addr() 63 (ipv6 == 1 && prev != '\\' && *linep == ':')) in check_addr() 66 prev = *linep; in check_addr() 68 linep++; in check_addr() 70 if (*keyp == '\0' && linep < limit && ((ipv6 == 0 && *linep == ':') || in check_addr() 71 (ipv6 == 1 && prev != '\\' && *linep == ':'))) in check_addr()
|
H A D | files_common.c | 677 const char *linep, *limit; in _nss_files_check_name_colon() local 680 linep = line; in _nss_files_check_name_colon() 682 while (*keyp && linep < limit && *keyp == *linep) { in _nss_files_check_name_colon() 684 linep++; in _nss_files_check_name_colon() 686 return (linep < limit && *keyp == '\0' && *linep == ':'); in _nss_files_check_name_colon() 700 const char *limit, *linep, *keyp; in _nss_files_check_name_aliases() local 702 linep = line; in _nss_files_check_name_aliases() 707 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { in _nss_files_check_name_aliases() 709 linep++; in _nss_files_check_name_aliases() 711 if (*keyp == '\0' && linep < limit && isspace(*linep)) in _nss_files_check_name_aliases() [all …]
|
H A D | netmasks.c | 52 const char *limit, *linep, *addrstart; in check_addr() local 57 linep = line; in check_addr() 61 while (linep < limit && isspace(*linep)) in check_addr() 62 linep++; in check_addr() 64 addrstart = linep; in check_addr() 65 while (linep < limit && !isspace(*linep)) in check_addr() 66 linep++; in check_addr() 67 if (linep == limit) in check_addr() 69 addrlen = linep - addrstart; in check_addr()
|
H A D | tsol_gettpent.c | 37 const char *limit, *linep, *keyp; in check_name() local 39 linep = line; in check_name() 44 while (*keyp && linep < limit && *linep != ':' && *keyp == *linep) { in check_name() 46 linep++; in check_name() 48 if (*keyp == '\0' && linep < limit && *linep == ':') in check_name()
|
/illumos-gate/usr/src/lib/nsswitch/nis/common/ |
H A D | getservent.c | 71 const char *limit, *linep, *keyp; in check_name2() local 74 linep = (const char *)argp->buf.buffer; in check_name2() 75 limit = linep + strlen(argp->buf.buffer); in check_name2() 79 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { in check_name2() 81 linep++; in check_name2() 83 if (*keyp == '\0' && linep < limit && isspace(*linep)) { in check_name2() 91 while (linep < limit && !isspace(*linep)) in check_name2() 92 linep++; in check_name2() 94 while (linep < limit && isspace(*linep)) in check_name2() 95 linep++; in check_name2() [all …]
|
H A D | getpwnam.c | 62 char *linep, *limit, *uidp, *gidp, *newline; in validate_passwd_ids() local 69 linep = *linepp; in validate_passwd_ids() 70 limit = linep + linelen; in validate_passwd_ids() 73 if (linelen == 0 || *linep == '+' || *linep == '-') in validate_passwd_ids() 76 while (linep < limit && *linep++ != ':') /* skip username */ in validate_passwd_ids() 78 while (linep < limit && *linep++ != ':') /* skip password */ in validate_passwd_ids() 80 if (linep == limit) in validate_passwd_ids() 83 uidp = linep; in validate_passwd_ids() 84 uidl = strtoul(uidp, (char **)&linep, 10); /* grab uid */ in validate_passwd_ids() 85 olduidlen = linep - uidp; in validate_passwd_ids() [all …]
|
H A D | getgrent.c | 71 char *linep, *limit, *gidp, *newline; in validate_group_ids() local 76 linep = *linepp; in validate_group_ids() 77 limit = linep + linelen; in validate_group_ids() 80 if (linelen == 0 || *linep == '+' || *linep == '-') in validate_group_ids() 83 while (linep < limit && *linep++ != ':') /* skip groupname */ in validate_group_ids() 85 while (linep < limit && *linep++ != ':') /* skip password */ in validate_group_ids() 87 if (linep == limit) in validate_group_ids() 90 gidp = linep; in validate_group_ids() 91 gid = strtoul(gidp, (char **)&linep, 10); /* grab gid */ in validate_group_ids() 92 oldgidlen = linep - gidp; in validate_group_ids() [all …]
|
H A D | nis_common.c | 646 const char *limit, *linep, *keyp; in _nss_nis_check_name_aliases() local 648 linep = line; in _nss_nis_check_name_aliases() 653 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { in _nss_nis_check_name_aliases() 655 linep++; in _nss_nis_check_name_aliases() 657 if (*keyp == '\0' && linep < limit && isspace(*linep)) in _nss_nis_check_name_aliases() 660 while (linep < limit && !isspace(*linep)) in _nss_nis_check_name_aliases() 661 linep++; in _nss_nis_check_name_aliases() 663 while (linep < limit && isspace(*linep)) in _nss_nis_check_name_aliases() 664 linep++; in _nss_nis_check_name_aliases() 666 while (linep < limit) { in _nss_nis_check_name_aliases() [all …]
|
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/ |
H A D | ds_util.c | 57 char *linep; in ddump() local 67 linep = linebuf; in ddump() 72 (void) snprintf(linep, bufleft, "0x%08x ", byte_count); in ddump() 73 len = strlen(linep); in ddump() 75 linep += len; in ddump() 82 (void) snprintf(linep, bufleft, "%02X", (unsigned int) in ddump() 85 len = strlen(linep); in ddump() 87 linep += len; in ddump() 91 *linep = '-'; in ddump() 93 *linep = ' '; in ddump() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | nsparse.c | 135 _nsw_getoneconfig_v1(const char *name, char *linep, enum __nsw_parse_err *errp) in _nsw_getoneconfig_v1() argument 158 if (*linep == '\0' || *linep == '\n') { in _nsw_getoneconfig_v1() 180 tokenp = skip(&linep, '['); in _nsw_getoneconfig_v1() 184 if (!islabel(*linep)) in _nsw_getoneconfig_v1() 198 if ((tokenp = skip(&linep, '=')) == NULL) { in _nsw_getoneconfig_v1() 203 if (!islabel(*linep)) in _nsw_getoneconfig_v1() 207 p = labelskip(linep); in _nsw_getoneconfig_v1() 224 if (strcasecmp(linep, __NSW_STR_RETURN) == 0) in _nsw_getoneconfig_v1() 226 else if (strcasecmp(linep, in _nsw_getoneconfig_v1() 241 } else if (strcasecmp(linep, in _nsw_getoneconfig_v1() [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) in _nsw_getoneconfig_v1() argument 206 if (*linep == '\0' || *linep == '\n') { in _nsw_getoneconfig_v1() 228 if (tokenp = skip(&linep, '[')) { /* got criteria */ in _nsw_getoneconfig_v1() 231 if (!islabel(*linep)) in _nsw_getoneconfig_v1() 245 if ((tokenp = skip(&linep, '=')) == NULL) { in _nsw_getoneconfig_v1() 250 if (!islabel(*linep)) in _nsw_getoneconfig_v1() 254 p = labelskip(linep); in _nsw_getoneconfig_v1() 271 if (strcasecmp(linep, __NSW_STR_RETURN) == 0) in _nsw_getoneconfig_v1() 273 else if (strcasecmp(linep, in _nsw_getoneconfig_v1() 289 } else if (strcasecmp(linep, in _nsw_getoneconfig_v1() [all …]
|
/illumos-gate/usr/src/lib/nsswitch/compat/common/ |
H A D | getpwent.c | 75 char *linep, *limit, *uidp, *gidp; in validate_passwd_ids() local 85 linep = line; in validate_passwd_ids() 88 while (linep < limit && *linep++ != ':') /* skip username */ in validate_passwd_ids() 90 while (linep < limit && *linep++ != ':') /* skip password */ in validate_passwd_ids() 92 if (linep == limit) in validate_passwd_ids() 95 uidp = linep; in validate_passwd_ids() 96 uidl = strtoul(uidp, (char **)&linep, 10); /* grab uid */ in validate_passwd_ids() 97 olduidlen = linep - uidp; in validate_passwd_ids() 98 if (++linep >= limit || olduidlen == 0) in validate_passwd_ids() 101 gidp = linep; in validate_passwd_ids() [all …]
|
H A D | getgrent.c | 69 char *linep, *limit, *gidp; in validate_group_ids() local 77 linep = line; in validate_group_ids() 80 while (linep < limit && *linep++ != ':') /* skip groupname */ in validate_group_ids() 82 while (linep < limit && *linep++ != ':') /* skip password */ in validate_group_ids() 84 if (linep == limit) in validate_group_ids() 87 gidp = linep; in validate_group_ids() 88 gid = strtoul(gidp, (char **)&linep, 10); /* grab gid */ in validate_group_ids() 89 oldgidlen = linep - gidp; in validate_group_ids() 90 if (linep >= limit || oldgidlen == 0) in validate_group_ids() 101 (void) bcopy(linep, gidp + idlen, limit - linep + extra_chars); in validate_group_ids()
|
/illumos-gate/usr/src/cmd/line/ |
H A D | line.c | 52 char *linep, *linend; in main() local 55 linep = line; in main() 59 if (linep == linend) { in main() 61 linep = line; in main() 63 *linep++ = c; in main() 67 (void) write(1, line, linep-line); in main()
|
/illumos-gate/usr/src/cmd/ypcmd/mknetid/ |
H A D | getname.c | 85 getname(name, namelen, ignore, sep, linep, com) in getname() argument 90 char **linep; 97 lp = *linep; 102 *linep = lp - 1; 119 *linep = lp; 122 *linep = lp;
|