/titanic_50/usr/src/cmd/lp/lib/users/ |
H A D | storepri.c | 48 int limit; in print_tbl() local 54 for (limit = PRI_MIN; limit <= PRI_MAX; limit++) { in print_tbl() 55 if (ppri_tbl->users[limit - PRI_MIN]) in print_tbl() 57 printf(" %2d ", limit); in print_tbl() 58 fdprintlist(1, ppri_tbl->users[limit - PRI_MIN]); in print_tbl() 71 int limit; in output_tbl() local 75 for (limit = PRI_MIN; limit <= PRI_MAX; limit++) in output_tbl() 76 if (ppri_tbl->users[limit - PRI_MIN]) in output_tbl() 78 fdprintf(fd, "%d:", limit); in output_tbl() 79 fdprintlist(fd, ppri_tbl->users[limit - PRI_MIN]); in output_tbl()
|
H A D | usermgmt.c | 69 int limit; in getuser() local 86 for (limit = PRI_MIN; limit <= PRI_MAX; limit++) in getuser() 87 if (bang_searchlist(user, ppri_tbl->users[limit - PRI_MIN])) in getuser() 89 usr.priority_limit = limit; in getuser() 135 int limit; in trashusers() local 141 for (limit = PRI_MIN; limit <= PRI_MAX; limit++) in trashusers() 142 freelist (ppri_tbl->users[limit - PRI_MIN]); in trashusers()
|
H A D | loadpri.c | 174 int add_user ( struct user_priority * ppri_tbl, char * user, int limit ) in add_user() argument 176 if (limit < PRI_MIN || PRI_MAX < limit) in add_user() 178 addlist (&(ppri_tbl->users[limit - PRI_MIN]), user); in add_user() 245 int limit; in del_user() local 247 for (limit = PRI_MIN; limit <= PRI_MAX; limit++) in del_user() 248 if (searchlist(user, ppri_tbl->users[limit - PRI_MIN])) in del_user() 250 dellist (&(ppri_tbl->users[limit - PRI_MIN]), user); in del_user()
|
/titanic_50/usr/src/lib/nsswitch/files/common/ |
H A D | getservent.c | 42 const char *limit, *linep, *keyp; in check_name() local 46 limit = line + linelen; in check_name() 50 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { in check_name() 54 if (*keyp == '\0' && linep < limit && isspace(*linep)) { in check_name() 62 while (linep < limit && !isspace(*linep)) in check_name() 65 while (linep < limit && isspace(*linep)) in check_name() 68 while (linep < limit && !isspace(*linep) && *linep != '/') in check_name() 70 if (linep == limit || *linep != '/') in check_name() 76 while (linep < limit && !isspace(*linep)) in check_name() 80 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 | 55 const char *limit, *linep, *keyp; in check_host() local 57 limit = line + linelen; in check_host() 60 while (linep < limit && isspace(*linep)) in check_host() 63 while (linep < limit && !isspace(*linep)) in check_host() 66 while (linep < limit && isspace(*linep)) in check_host() 68 if (linep == limit) in check_host() 73 while (*keyp != '\0' && linep < limit && *keyp == *linep) { in check_host() 77 return (*keyp == '\0' && linep == limit); in check_host() 112 const char *limit, *linep; in check_ether() local 118 limit = line + linelen; in check_ether() [all …]
|
H A D | getprojent.c | 62 const char *linep, *limit, *end; in hash_projid() local 65 limit = line + linelen; in hash_projid() 71 while (linep < limit && *linep++ != ':'); in hash_projid() 72 if (linep == limit) in hash_projid() 100 const char *linep, *limit, *end; in check_projid() local 103 limit = line + linelen; in check_projid() 106 while (linep < limit && *linep++ != ':'); in check_projid() 109 if (linep == limit || linep == line + 1) in check_projid()
|
/titanic_50/usr/src/lib/libsqlite/test/ |
H A D | limit.test | 18 # $Id: limit.test,v 1.11.2.1 2004/07/19 23:33:04 drh Exp $ 37 do_test limit-1.0 { 40 do_test limit-1.1 { 43 do_test limit-1.2.1 { 46 do_test limit-1.2.2 { 49 do_test limit-1.2.3 { 52 do_test limit-1.3 { 55 do_test limit-1.4.1 { 58 do_test limit-1.4.2 { 61 do_test limit-1.5 { [all …]
|
/titanic_50/usr/src/lib/nsswitch/nis/common/ |
H A D | getservent.c | 73 const char *limit, *linep, *keyp; in check_name2() local 77 limit = linep + strlen(argp->buf.buffer); in check_name2() 81 while (*keyp && linep < limit && !isspace(*linep) && *keyp == *linep) { in check_name2() 85 if (*keyp == '\0' && linep < limit && isspace(*linep)) { in check_name2() 93 while (linep < limit && !isspace(*linep)) in check_name2() 96 while (linep < limit && isspace(*linep)) in check_name2() 99 while (linep < limit && !isspace(*linep) && *linep != '/') in check_name2() 101 if (linep == limit || *linep != '/') in check_name2() 107 while (linep < limit && !isspace(*linep)) in check_name2() 111 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()
|
/titanic_50/usr/src/lib/libc/port/gen/ |
H A D | getspent_r.c | 114 getfield(constp *nextp, constp limit, int uns, void *valp) in getfield() argument 121 if (p == 0 || p >= limit) { in getfield() 127 return (p < limit); in getfield() 129 if ((len = limit - p) > sizeof (numbuf) - 1) { in getfield() 138 if (len != limit - p) { in getfield() 143 p = limit; in getfield() 163 return (p < limit); in getfield() 183 const char *p = instr, *limit; in str2spwd() local 188 limit = p + lenstr; in str2spwd() 190 ++p >= limit || in str2spwd() [all …]
|
/titanic_50/usr/src/cmd/audio/utilities/ |
H A D | Audio.cc | 235 Double limit = AUDIO_UNKNOWN_TIME; in Copy() local 237 return (Copy(to, frompos, topos, limit)); in Copy() 250 Double& limit) in Copy() argument 265 if (Undefined(limit)) { in Copy() 266 len = limit; in Copy() 268 len = limit - (frompos - svpos); in Copy() 302 limit = frompos - svpos; in Copy() 305 if (limit > 0.) in Copy() 329 Double& limit) in AsyncCopy() argument 344 if (limit < 0.) in AsyncCopy() [all …]
|
H A D | AudioCopy.cc | 46 Double limit = AUDIO_UNKNOWN_TIME; in AudioCopy() local 48 return (AudioCopy(from, to, frompos, topos, limit)); in AudioCopy() 59 Double& limit) // amount to copy (updated) in AudioCopy() argument 61 return (from->Copy(to, frompos, topos, limit)); in AudioCopy() 72 Double& limit) // amount to copy (updated) in AudioAsyncCopy() argument 74 return (from->AsyncCopy(to, frompos, topos, limit)); in AudioAsyncCopy()
|
/titanic_50/usr/src/lib/libnsl/nss/ |
H A D | gethostent.c | 110 const char *p, *addrstart, *limit; in __str2hostent() local 156 limit = p + lenstr; in __str2hostent() 158 for (; p < limit && (p = memchr(p, '\n', limit - p)); p++) in __str2hostent() 186 limit = memchr(p, '\n', lenstr - (p - instr)); in __str2hostent() 187 if (limit == NULL) in __str2hostent() 188 limit = instr + lenstr; in __str2hostent() 190 while (p < limit && isspace(*p)) in __str2hostent() 193 while (p < limit && !isspace(*p)) in __str2hostent() 195 if (p >= limit) in __str2hostent() 240 while (p < limit && isspace(*p)) { in __str2hostent() [all …]
|
/titanic_50/usr/src/cmd/sh/ |
H A D | ulimit.c | 68 rlim_t limit, new_limit; in sysulimit() local 187 limit = RLIM_INFINITY; in sysulimit() 191 new_limit = limit = 0; in sysulimit() 200 new_limit = (limit * 10) + (*args - '0'); in sysulimit() 201 if (new_limit >= limit) { in sysulimit() 202 limit = new_limit; in sysulimit() 212 new_limit = limit * rlimtab[res].divisor; in sysulimit() 213 if (new_limit >= limit) { in sysulimit() 214 limit = new_limit; in sysulimit() 233 rlimit.rlim_max = limit; in sysulimit() [all …]
|
/titanic_50/usr/src/cmd/ssh/libopenbsd-compat/common/ |
H A D | glob.c | 169 static size_t limit[] = { 0, 0, 0 }; local 202 return globexp1(patbuf, pglob, limit); 204 return glob0(patbuf, pglob, limit); 213 globexp1(pattern, pglob, limit) in globexp1() argument 216 size_t *limit; 223 return glob0(pattern, pglob, limit); 226 if (!globexp2(ptr, pattern, pglob, &rv, limit)) 229 return glob0(pattern, pglob, limit); 239 globexp2(ptr, pattern, pglob, rv, limit) in globexp2() argument 243 size_t *limit; [all …]
|
/titanic_50/usr/src/lib/libshell/common/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() 142 if((i=sh_strnum(limit,&last,2))==INFINITY || *last) in b_ulimit() 143 errormsg(SH_DICT,ERROR_system(1),e_number,limit); in b_ulimit() 152 errormsg(SH_DICT,ERROR_system(1),e_number,limit); in b_ulimit() 158 errormsg(SH_DICT,ERROR_system(1),e_overlimit,limit); in b_ulimit() 161 errormsg(SH_DICT,ERROR_system(1),e_number,limit); in b_ulimit() [all …]
|
/titanic_50/usr/src/lib/libbc/libc/gen/common/ |
H A D | realpath.c | 53 register char *limit = canon + MAXPATHLEN; local 82 if (d < limit) 87 while (d < limit && *s) 92 while (d < limit && (*d++ = *s++)) 105 while (d < limit && *s) { 196 if (strlen(link) >= (limit - s)) { 197 (void) strncpy(s, link, limit - s); 198 *(limit - 1) = '\0';
|
/titanic_50/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()
|
/titanic_50/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/ |
H A D | hash_log2.c | 52 u_int32_t i, limit; local 54 limit = 1; 55 for (i = 0; limit < num; limit = limit << 1, i++);
|
/titanic_50/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++)
|
/titanic_50/usr/src/lib/libbc/libc/compat/4.1/ |
H A D | vlimit.c | 48 vlimit(int limit, int value) in vlimit() argument 52 if (limit <= 0 || limit > NLIMITS) in vlimit() 55 if (getrlimit(limit - 1, &rlim) < 0) in vlimit() 61 return (setrlimit(limit - 1, &rlim)); in vlimit()
|
/titanic_50/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 …]
|
/titanic_50/usr/src/uts/i86pc/os/ |
H A D | graphics.c | 119 static int limit = 0; in progressbar_step() local 121 bar[limit] = 0xff; in progressbar_step() 123 if (limit > 3) in progressbar_step() 124 bar[limit - 4] = 0x00; in progressbar_step() 126 bar[limit + BAR_STEPS - 4] = 0x00; in progressbar_step() 128 limit++; in progressbar_step() 129 if (limit == BAR_STEPS) in progressbar_step() 130 limit = 0; in progressbar_step()
|