/titanic_41/usr/src/lib/nsswitch/files/common/ |
H A D | getservent.c | 42 const char *limit, *linep, *keyp; in check_name() local 45 linep = line; in check_name() 50 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { in check_name() 52 linep++; in check_name() 54 if (*keyp == '\0' && linep < limit && isspace(*linep)) { in check_name() 62 while (linep < limit && !isspace(*linep)) in check_name() 63 linep++; in check_name() 65 while (linep < limit && isspace(*linep)) in check_name() 66 linep++; in check_name() 68 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 | 55 const char *limit, *linep, *keyp; in check_host() local 56 linep = line; in check_host() 60 while (linep < limit && isspace(*linep)) in check_host() 61 linep++; in check_host() 63 while (linep < limit && !isspace(*linep)) in check_host() 64 linep++; in check_host() 66 while (linep < limit && isspace(*linep)) in check_host() 67 linep++; in check_host() 68 if (linep == limit) in check_host() 73 while (*keyp != '\0' && linep < limit && *keyp == *linep) { in check_host() [all …]
|
H A D | getprojent.c | 62 const char *linep, *limit, *end; in hash_projid() local 64 linep = line; in hash_projid() 71 while (linep < limit && *linep++ != ':'); in hash_projid() 72 if (linep == limit) in hash_projid() 76 end = linep; in hash_projid() 77 id = (uint_t)strtol(linep, (char **)&end, 10); in hash_projid() 78 if (linep == end) in hash_projid() 100 const char *linep, *limit, *end; in check_projid() local 102 linep = line; in check_projid() 106 while (linep < limit && *linep++ != ':'); in check_projid() [all …]
|
H A D | getnetent.c | 55 const char *limit, *linep, *addrstart; in check_addr() local 60 linep = line; in check_addr() 64 while (linep < limit && !isspace(*linep)) in check_addr() 65 linep++; in check_addr() 67 while (linep < limit && isspace(*linep)) in check_addr() 68 linep++; in check_addr() 69 if (linep == limit) in check_addr() 72 addrstart = linep; in check_addr() 73 while (linep < limit && !isspace(*linep)) in check_addr() 74 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 | 44 const char *limit, *linep; in check_name() local 48 linep = line; in check_name() 54 while (linep+klen < limit && *linep != '|' && *linep != ':') { in check_name() 55 if ((strncmp(linep, keyp, klen) == 0) && in check_name() 56 ((*(linep + klen) == '|') || (*(linep + klen) == ':'))) { in check_name() 59 while (linep < limit && *linep != '|' && *linep != ':') in check_name() 60 linep++; in check_name() 61 if (linep >= limit || *linep == ':') in check_name() 63 if (*linep == '|') in check_name() 64 linep++; in check_name()
|
H A D | getprotoent.c | 51 const char *limit, *linep; in check_addr() local 53 linep = line; in check_addr() 57 while (linep < limit && !isspace(*linep)) in check_addr() 58 linep++; in check_addr() 60 while (linep < limit && isspace(*linep)) in check_addr() 61 linep++; in check_addr() 62 if (linep == limit) in check_addr() 64 proto = (int)strtol(linep, NULL, 10); in check_addr()
|
H A D | getrpcent.c | 51 const char *limit, *linep; in check_rpcnum() local 53 linep = line; in check_rpcnum() 57 while (linep < limit && !isspace(*linep)) in check_rpcnum() 58 linep++; in check_rpcnum() 60 while (linep < limit && isspace(*linep)) in check_rpcnum() 61 linep++; in check_rpcnum() 62 if (linep == limit) in check_rpcnum() 64 r_number = (int)strtol(linep, NULL, 10); in check_rpcnum()
|
H A D | tsol_getrhent.c | 40 const char *limit, *linep, *keyp; in check_addr() local 44 linep = line; in check_addr() 49 if (strstr(linep, "\\:") != NULL) in check_addr() 63 while (*keyp && linep < limit && *keyp == *linep) { in check_addr() 64 if ((ipv6 == 0 && *linep == ':') || in check_addr() 65 (ipv6 == 1 && prev != '\\' && *linep == ':')) in check_addr() 68 prev = *linep; in check_addr() 70 linep++; in check_addr() 72 if (*keyp == '\0' && linep < limit && ((ipv6 == 0 && *linep == ':') || in check_addr() 73 (ipv6 == 1 && prev != '\\' && *linep == ':'))) in check_addr()
|
H A D | netmasks.c | 54 const char *limit, *linep, *addrstart; in check_addr() local 59 linep = line; in check_addr() 63 while (linep < limit && isspace(*linep)) in check_addr() 64 linep++; in check_addr() 66 addrstart = linep; in check_addr() 67 while (linep < limit && !isspace(*linep)) in check_addr() 68 linep++; in check_addr() 69 if (linep == limit) in check_addr() 71 addrlen = linep - addrstart; in check_addr()
|
H A D | files_common.c | 676 const char *linep, *limit; in _nss_files_check_name_colon() local 679 linep = line; in _nss_files_check_name_colon() 681 while (*keyp && linep < limit && *keyp == *linep) { in _nss_files_check_name_colon() 683 linep++; in _nss_files_check_name_colon() 685 return (linep < limit && *keyp == '\0' && *linep == ':'); in _nss_files_check_name_colon() 699 const char *limit, *linep, *keyp; in _nss_files_check_name_aliases() local 701 linep = line; in _nss_files_check_name_aliases() 706 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { in _nss_files_check_name_aliases() 708 linep++; in _nss_files_check_name_aliases() 710 if (*keyp == '\0' && linep < limit && isspace(*linep)) in _nss_files_check_name_aliases() [all …]
|
H A D | tsol_gettpent.c | 39 const char *limit, *linep, *keyp; in check_name() local 41 linep = line; in check_name() 46 while (*keyp && linep < limit && *linep != ':' && *keyp == *linep) { in check_name() 48 linep++; in check_name() 50 if (*keyp == '\0' && linep < limit && *linep == ':') in check_name()
|
/titanic_41/usr/src/lib/nsswitch/nis/common/ |
H A D | getservent.c | 73 const char *limit, *linep, *keyp; in check_name2() local 76 linep = (const char *)argp->buf.buffer; in check_name2() 77 limit = linep + strlen(argp->buf.buffer); in check_name2() 81 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { in check_name2() 83 linep++; in check_name2() 85 if (*keyp == '\0' && linep < limit && isspace(*linep)) { in check_name2() 93 while (linep < limit && !isspace(*linep)) in check_name2() 94 linep++; in check_name2() 96 while (linep < limit && isspace(*linep)) in check_name2() 97 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 …]
|
/titanic_41/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_tab.c | 55 md_tab_line_t *linep = &tabp->lines[line]; in meta_tab_free() local 57 if (linep->context != NULL) in meta_tab_free() 58 Free(linep->context); in meta_tab_free() 59 if (linep->cname != NULL) in meta_tab_free() 60 Free(linep->cname); in meta_tab_free() 61 if (linep->argv != NULL) { in meta_tab_free() 62 assert(linep->alloc > 0); in meta_tab_free() 63 Free(linep->argv); in meta_tab_free() 76 md_tab_line_t *linep, in realloc_argv() argument 82 if (argc < linep->alloc) in realloc_argv() [all …]
|
/titanic_41/usr/src/lib/fm/libdiskstatus/common/ |
H A D | ds_util.c | 59 char *linep; in ddump() local 69 linep = linebuf; in ddump() 74 (void) snprintf(linep, bufleft, "0x%08x ", byte_count); in ddump() 75 len = strlen(linep); in ddump() 77 linep += len; in ddump() 84 (void) snprintf(linep, bufleft, "%02X", (unsigned int) in ddump() 87 len = strlen(linep); in ddump() 89 linep += len; in ddump() 93 *linep = '-'; in ddump() 95 *linep = ' '; in ddump() [all …]
|
/titanic_41/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) in _nsw_getoneconfig_v1() argument 159 if (*linep == '\0' || *linep == '\n') { in _nsw_getoneconfig_v1() 181 if (tokenp = skip(&linep, '[')) { /* got criteria */ 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() 242 } else if (strcasecmp(linep, in _nsw_getoneconfig_v1() [all …]
|
/titanic_41/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 …]
|
/titanic_41/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 …]
|
/titanic_41/usr/src/cmd/line/ |
H A D | line.c | 54 char *linep, *linend; in main() local 57 linep = line; in main() 61 if (linep == linend) { in main() 63 linep = line; in main() 65 *linep++ = c; in main() 69 (void) write(1, line, linep-line); in main()
|
/titanic_41/usr/src/cmd/lvm/util/ |
H A D | metainit.c | 129 md_tab_line_t *linep = &tabp->lines[line]; in init_entries() local 130 char *uname = linep->argv[0]; in init_entries() 133 if (linep->flags != DO_AGAIN) in init_entries() 147 ret = mn_send_command(spp, linep->argc, linep->argv, in init_entries() 148 options, flags, linep->context, ep); in init_entries() 158 ret = meta_init_name(spp, linep->argc, in init_entries() 159 linep->argv, cname, options, ep); in init_entries() 164 mderrorextra(ep, linep->context); in init_entries() 173 linep->flags = IS_DONE; in init_entries() 234 md_tab_line_t *linep = &tabp->lines[more]; in init_all() local [all …]
|