/illumos-gate/usr/src/lib/nsswitch/files/common/ |
H A D | getservent.c | 40 const char *limit, *linep, *keyp; in check_name() local 44 limit = line + linelen; in check_name() 48 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { in check_name() 52 if (*keyp == '\0' && linep < limit && isspace(*linep)) { in check_name() 60 while (linep < limit && !isspace(*linep)) in check_name() 63 while (linep < limit && isspace(*linep)) in check_name() 66 while (linep < limit && !isspace(*linep) && *linep != '/') in check_name() 68 if (linep == limit || *linep != '/') in check_name() 74 while (linep < limit && !isspace(*linep)) in check_name() 78 while (*keyp && linep < limit && !isspace(*linep) && in check_name() [all …]
|
H A D | getpwnam.c | 63 const char *linep, *limit, *end; in hash_pwuid() local 66 limit = line + linelen; 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() 102 const char *linep, *limit; in check_pwname() local 106 limit = line + linelen; in check_pwname() 111 while (*keyp && linep < limit && *keyp == *linep) { in check_pwname() 115 return (linep < limit && *keyp == '\0' && *linep == ':'); in check_pwname() 129 const char *linep, *limit, *end; in check_pwuid() local [all …]
|
H A D | getgrent.c | 62 const char *linep, *limit, *end; in hash_grgid() local 65 limit = line + linelen; 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() 100 const char *linep, *limit; in check_grname() local 104 limit = line + linelen; in check_grname() 109 while (*keyp && linep < limit && *keyp == *linep) { in check_grname() 113 return (linep < limit && *keyp == '\0' && *linep == ':'); in check_grname() 127 const char *linep, *limit, *end; in check_grgid() local [all …]
|
H A D | ether_addr.c | 53 const char *limit, *linep, *keyp; in check_host() local 55 limit = line + linelen; in check_host() 58 while (linep < limit && isspace(*linep)) in check_host() 61 while (linep < limit && !isspace(*linep)) in check_host() 64 while (linep < limit && isspace(*linep)) in check_host() 66 if (linep == limit) in check_host() 71 while (*keyp != '\0' && linep < limit && *keyp == *linep) { in check_host() 75 return (*keyp == '\0' && linep == limit); in check_host() 110 const char *limit, *linep; in check_ether() local 116 limit = line + linelen; in check_ether() [all …]
|
H A D | getprojent.c | 60 const char *linep, *limit, *end; in hash_projid() local 63 limit = line + linelen; in hash_projid() 69 while (linep < limit && *linep++ != ':'); in hash_projid() 70 if (linep == limit) in hash_projid() 98 const char *linep, *limit, *end; in check_projid() local 101 limit = line + linelen; in check_projid() 104 while (linep < limit && *linep++ != ':'); in check_projid() 107 if (linep == limit || linep == line + 1) in check_projid()
|
/illumos-gate/usr/src/cmd/lp/lib/users/ |
H A D | storepri.c | 46 int limit; in print_tbl() local 52 for (limit = PRI_MIN; limit <= PRI_MAX; limit++) { in print_tbl() 53 if (ppri_tbl->users[limit - PRI_MIN]) in print_tbl() 55 printf(" %2d ", limit); in print_tbl() 56 fdprintlist(1, ppri_tbl->users[limit - PRI_MIN]); in print_tbl() 69 int limit; in output_tbl() local 73 for (limit = PRI_MIN; limit <= PRI_MAX; limit++) in output_tbl() 74 if (ppri_tbl->users[limit - PRI_MIN]) in output_tbl() 76 fdprintf(fd, "%d:", limit); in output_tbl() 77 fdprintlist(fd, ppri_tbl->users[limit - PRI_MIN]); in output_tbl()
|
H A D | usermgmt.c | 67 int limit; in getuser() local 84 for (limit = PRI_MIN; limit <= PRI_MAX; limit++) in getuser() 85 if (bang_searchlist(user, ppri_tbl->users[limit - PRI_MIN])) in getuser() 87 usr.priority_limit = limit; in getuser() 133 int limit; in trashusers() local 139 for (limit = PRI_MIN; limit <= PRI_MAX; limit++) in trashusers() 140 freelist (ppri_tbl->users[limit - PRI_MIN]); in trashusers()
|
H A D | loadpri.c | 172 int add_user ( struct user_priority * ppri_tbl, char * user, int limit ) in add_user() argument 174 if (limit < PRI_MIN || PRI_MAX < limit) in add_user() 176 addlist (&(ppri_tbl->users[limit - PRI_MIN]), user); in add_user() 243 int limit; in del_user() local 245 for (limit = PRI_MIN; limit <= PRI_MAX; limit++) in del_user() 246 if (searchlist(user, ppri_tbl->users[limit - PRI_MIN])) in del_user() 248 dellist (&(ppri_tbl->users[limit - PRI_MIN]), user); in del_user()
|
/illumos-gate/usr/src/lib/libsqlite/test/ |
H A D | limit.test | 16 # $Id: limit.test,v 1.11.2.1 2004/07/19 23:33:04 drh Exp $ 35 do_test limit-1.0 { 38 do_test limit-1.1 { 41 do_test limit-1.2.1 { 44 do_test limit-1.2.2 { 47 do_test limit-1.2.3 { 50 do_test limit-1.3 { 53 do_test limit-1.4.1 { 56 do_test limit-1.4.2 { 59 do_test limit-1.5 { [all …]
|
/illumos-gate/usr/src/lib/nsswitch/nis/common/ |
H A D | getservent.c | 71 const char *limit, *linep, *keyp; in check_name2() local 75 limit = linep + strlen(argp->buf.buffer); in check_name2() 79 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { in check_name2() 83 if (*keyp == '\0' && linep < limit && isspace(*linep)) { in check_name2() 91 while (linep < limit && !isspace(*linep)) in check_name2() 94 while (linep < limit && isspace(*linep)) in check_name2() 97 while (linep < limit && !isspace(*linep) && *linep != '/') in check_name2() 99 if (linep == limit || *linep != '/') in check_name2() 105 while (linep < limit && !isspace(*linep)) in check_name2() 109 while (*keyp && linep < limit && !isspace(*linep) && in check_name2() [all …]
|
H A D | getpwnam.c | 62 char *linep, *limit, *uidp, *gidp, *newline; in validate_passwd_ids() local 70 limit = linep + linelen; 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() 86 if (++linep >= limit || olduidlen == 0) in validate_passwd_ids() 92 if (linep >= limit || oldgidlen == 0) in validate_passwd_ids() 118 (void) bcopy(linep, uidp + idlen, limit - linep + 1); in validate_passwd_ids()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getspent_r.c | 113 getfield(constp *nextp, constp limit, int uns, void *valp) in getfield() argument 120 if (p == 0 || p >= limit) { in getfield() 126 return (p < limit); in getfield() 128 if ((len = limit - p) > sizeof (numbuf) - 1) { in getfield() 137 if (len != limit - p) { in getfield() 142 p = limit; in getfield() 162 return (p < limit); in getfield() 182 const char *p = instr, *limit; in str2spwd() local 187 limit = p + lenstr; in str2spwd() 189 ++p >= limit || in str2spwd() [all …]
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | Audio.cc | 233 Double limit = AUDIO_UNKNOWN_TIME; in Copy() local 235 return (Copy(to, frompos, topos, limit)); in Copy() 248 Double& limit) in Copy() argument 263 if (Undefined(limit)) { in Copy() 264 len = limit; in Copy() 266 len = limit - (frompos - svpos); in Copy() 300 limit = frompos - svpos; in Copy() 303 if (limit > 0.) in Copy() 327 Double& limit) in AsyncCopy() argument 343 if (limit < 0.) in AsyncCopy() [all …]
|
H A D | AudioCopy.cc | 44 Double limit = AUDIO_UNKNOWN_TIME; in AudioCopy() local 46 return (AudioCopy(from, to, frompos, topos, limit)); in AudioCopy() 57 Double& limit) // amount to copy (updated) in AudioCopy() argument 59 return (from->Copy(to, frompos, topos, limit)); in AudioCopy() 70 Double& limit) // amount to copy (updated) in AudioAsyncCopy() argument 72 return (from->AsyncCopy(to, frompos, topos, limit)); in AudioAsyncCopy()
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | gethostent.c | 108 const char *p, *addrstart, *limit; in __str2hostent() local 154 limit = p + lenstr; in __str2hostent() 156 for (; p < limit && (p = memchr(p, '\n', limit - p)); p++) in __str2hostent() 184 limit = memchr(p, '\n', lenstr - (p - instr)); in __str2hostent() 185 if (limit == NULL) in __str2hostent() 186 limit = instr + lenstr; in __str2hostent() 188 while (p < limit && isspace(*p)) in __str2hostent() 191 while (p < limit && !isspace(*p)) in __str2hostent() 193 if (p >= limit) in __str2hostent() 238 while (p < limit && isspace(*p)) { in __str2hostent() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | ulimit.c | 70 register char *limit; in b_ulimit() local 113 limit = argv[opt_info.index]; in b_ulimit() 123 if(error_info.errors || (limit && label) || argc>opt_info.index+1) in b_ulimit() 133 if(limit) in b_ulimit() 137 if(strcmp(limit,e_unlimited)==0) in b_ulimit() 143 if((i=strtol(limit,&last,0))!=INFINITY && !*last) in b_ulimit() 145 else if((i=strton(limit,&last,NiL,0))==INFINITY || *last) in b_ulimit() 147 if((i=sh_strnum(limit,&last,2))==INFINITY || *last) in b_ulimit() 148 errormsg(SH_DICT,ERROR_system(1),e_number,limit); in b_ulimit() 158 errormsg(SH_DICT,ERROR_system(1),e_number,limit); in b_ulimit() [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/timer/ |
H A D | timer_limit.c | 46 size_t limit; in main() local 54 limit = 4 * ncpu; in main() 55 timers = calloc(limit + 1, sizeof (timer_t)); in main() 57 err(EXIT_FAILURE, "failed to allocate %zu timers", limit + 1); in main() 60 for (int i = 1; i <= limit; i = MIN(limit, i*2)) { in main() 69 if (i == limit) { in main() 78 if (i == limit) in main()
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | ulimit.c | 65 rlim_t limit, new_limit; in sysulimit() local 184 limit = RLIM_INFINITY; in sysulimit() 188 new_limit = limit = 0; in sysulimit() 197 new_limit = (limit * 10) + (*args - '0'); in sysulimit() 198 if (new_limit >= limit) { in sysulimit() 199 limit = new_limit; in sysulimit() 209 new_limit = limit * rlimtab[res].divisor; in sysulimit() 210 if (new_limit >= limit) { in sysulimit() 211 limit = new_limit; in sysulimit() 230 rlimit.rlim_max = limit; in sysulimit() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_constraints_required.c | 76 char *data, *limit; in save_constraint_required() local 82 limit = get_constraint_str(constraint); in save_constraint_required() 83 if (!limit) { in save_constraint_required() 90 sql_save_constraint_required(data, op, limit); in save_constraint_required() 92 free_string(limit); in save_constraint_required() 102 char *limit; in handle_zero_size_arrays() local 150 limit = get_constraint_str(size); in handle_zero_size_arrays() 151 if (!limit) { in handle_zero_size_arrays() 157 sql_save_constraint_required(data, '<', limit); in handle_zero_size_arrays() 159 free_string(limit); in handle_zero_size_arrays() [all …]
|
/illumos-gate/usr/src/cmd/lp/cmd/ |
H A D | lpusers.c | 58 list = FALSE, limit = -1, deflt = -1; in main() local 115 if (limit != -1) in main() 117 limit = (int)strtol(optarg,&p,10); in main() 118 if (*p || limit<PRI_MIN || limit>PRI_MAX) { in main() 144 if (((list || deflt != -1) && (limit != -1 || userlist)) in main() 173 if (del_user(ppri_tbl, user) && (limit == -1)) in main() 175 if (limit != -1) { in main() 176 if (add_user(ppri_tbl, user, limit)) in main() 183 ppri_tbl->deflt_limit = limit; in main()
|
/illumos-gate/usr/src/lib/passwdutil/ |
H A D | switch_utils.c | 445 getfield(nextp, limit, uns, valp) in getfield() argument 447 constp limit; 458 if (p == 0 || p >= limit) { 464 return (p < limit); 466 if ((len = limit - p) > sizeof (numbuf) - 1) { 475 if (len != limit - p) { 480 p = limit; 500 return (p < limit); 525 const char *p = instr, *limit; local 529 limit = p + lenstr; [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_log2.c | 63 u_int32_t i, limit; local 65 limit = 1; 66 for (i = 0; limit < num; limit = limit << 1, i++)
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/ |
H A D | hash_log2.c | 50 u_int32_t i, limit; local 52 limit = 1; 53 for (i = 0; limit < num; limit = limit << 1, i++);
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | graphics.c | 121 static int limit = 0; in progressbar_step() local 123 bar[limit] = 0xff; in progressbar_step() 125 if (limit > 3) in progressbar_step() 126 bar[limit - 4] = 0x00; in progressbar_step() 128 bar[limit + BAR_STEPS - 4] = 0x00; in progressbar_step() 130 limit++; in progressbar_step() 131 if (limit == BAR_STEPS) in progressbar_step() 132 limit = 0; in progressbar_step()
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | getprotoent_r.c | 132 const char *p, *numstart, *namestart, *limit; in str2protoent() local 143 limit = p + lenstr; in str2protoent() 145 while (p < limit && isspace(*p)) { in str2protoent() 149 while (p < limit && !isspace(*p)) { in str2protoent() 161 while (p < limit && isspace(*p)) { in str2protoent() 164 if (p >= limit) { in str2protoent() 171 } while (p < limit && !isspace(*p)); in str2protoent() 185 while (p < limit && isspace(*p)) { in str2protoent() 193 if (p >= limit || *p == '#') { /* no aliases, no problem */ in str2protoent()
|