Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 25 of 451) sorted by relevance

12345678910>>...19

/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dgetservent.c42 const char *limit, *linep, *keyp; in check_name() local
46 limit = line + linelen; in check_name()
62 while (linep < limit && !isspace(*linep)) in check_name()
65 while (linep < limit && isspace(*linep)) in check_name()
70 if (linep == limit || *linep != '/') in check_name()
76 while (linep < limit && !isspace(*linep)) in check_name()
95 while (linep < limit) { in check_name()
97 while (linep < limit && isspace(*linep)) in check_name()
136 limit = line + linelen; in check_port()
142 while (linep < limit && isspace(*linep)) in check_port()
[all …]
H A Dgetpwnam.c63 const char *linep, *limit, *end; in hash_pwuid() local
66 limit = line + linelen; 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()
129 const char *linep, *limit, *end; in check_pwuid() local
133 limit = line + linelen; in check_pwuid()
143 if (linep == limit) in check_pwuid()
175 char *linep, *limit, *uidp, *gidp; in validate_passwd_ids() local
191 limit = line + linelen; in validate_passwd_ids()
[all …]
H A Dgetgrent.c62 const char *linep, *limit, *end; in hash_grgid() local
65 limit = line + linelen; 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()
127 const char *linep, *limit, *end; in check_grgid() local
131 limit = line + linelen; in check_grgid()
141 if (linep == limit) in check_grgid()
174 char *linep, *limit, *gidp; in validate_group_ids() local
192 limit = line + linelen; in validate_group_ids()
[all …]
H A Dether_addr.c55 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()
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()
121 while (linep < limit && isspace(*linep)) in check_ether()
[all …]
H A Dgetprojent.c62 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()
/illumos-gate/usr/src/cmd/lp/lib/users/
H A Dstorepri.c48 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 Dusermgmt.c69 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 Dloadpri.c174 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()
/illumos-gate/usr/src/lib/libsqlite/test/
H A Dlimit.test37 do_test limit-1.0 {
40 do_test limit-1.1 {
52 do_test limit-1.3 {
61 do_test limit-1.5 {
64 do_test limit-1.6 {
67 do_test limit-1.7 {
71 do_test limit-2.1 {
77 do_test limit-2.2 {
83 do_test limit-2.3 {
89 do_test limit-3.1 {
[all …]
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetservent.c73 const char *limit, *linep, *keyp; in check_name2() local
77 limit = linep + strlen(argp->buf.buffer); in check_name2()
93 while (linep < limit && !isspace(*linep)) in check_name2()
96 while (linep < limit && isspace(*linep)) in check_name2()
101 if (linep == limit || *linep != '/') in check_name2()
107 while (linep < limit && !isspace(*linep)) in check_name2()
126 while (linep < limit) { in check_name2()
128 while (linep < limit && isspace(*linep)) in check_name2()
142 while (linep < limit && !isspace(*linep)) in check_name2()
238 while (linep < limit && isspace(*linep)) in check_port2()
[all …]
H A Dgetpwnam.c62 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 Dgetspent_r.c122 if (p == 0 || p >= limit) { in getfield()
128 return (p < limit); in getfield()
130 if ((len = limit - p) > sizeof (numbuf) - 1) { in getfield()
139 if (len != limit - p) { in getfield()
144 p = limit; in getfield()
164 return (p < limit); in getfield()
184 const char *p = instr, *limit; in str2spwd() local
189 limit = p + lenstr; in str2spwd()
191 ++p >= limit || in str2spwd()
192 (p = memchr(p, ':', limit - p)) == 0) { in str2spwd()
[all …]
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudio.cc248 Double& limit) in Copy() argument
263 if (Undefined(limit)) { in Copy()
264 len = limit; in Copy()
300 limit = frompos - svpos; in Copy()
303 if (limit > 0.) in Copy()
327 Double& limit) in AsyncCopy() argument
342 if (limit < 0.) in AsyncCopy()
354 limit = 0.; in AsyncCopy()
369 topos += limit; in AsyncCopy()
384 limit = 0.; in AsyncCopy()
[all …]
H A DAudioCopy.cc46 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()
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dgethostent.c110 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()
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()
248 if (limit >= instr + lenstr) in __str2hostent()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/timer/
H A Dtimer_limit.c46 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/contrib/ast/src/cmd/ksh93/bltins/
H A Dulimit.c70 register char *limit; in b_ulimit() local
113 limit = argv[opt_info.index]; 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()
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()
167 errormsg(SH_DICT,ERROR_system(1),e_number,limit); in b_ulimit()
177 errormsg(SH_DICT,ERROR_system(1),e_number,limit); in b_ulimit()
[all …]
/illumos-gate/usr/src/cmd/sh/
H A Dulimit.c68 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 …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_constraints_required.c76 char *data, *limit; in save_constraint_required() local
83 if (!limit) { in save_constraint_required()
92 free_string(limit); in save_constraint_required()
102 char *limit; in handle_zero_size_arrays() local
151 if (!limit) { in handle_zero_size_arrays()
159 free_string(limit); in handle_zero_size_arrays()
260 char *data, *limit; in match_assign_size() local
271 if (!limit) in match_assign_size()
276 free_string(limit); in match_assign_size()
364 char *data, *limit; in match_assign_ARRAY_SIZE() local
[all …]
/illumos-gate/usr/src/cmd/lp/cmd/
H A Dlpusers.c58 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/krb5/plugins/kdb/db2/libdb2/hash/
H A Dhash_log2.c52 u_int32_t i, limit; local
54 limit = 1;
55 for (i = 0; limit < num; limit = limit << 1, i++);
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_log2.c63 u_int32_t i, limit; local
65 limit = 1;
66 for (i = 0; limit < num; limit = limit << 1, i++)
/illumos-gate/usr/src/lib/passwdutil/
H A Dswitch_utils.c445 getfield(nextp, limit, uns, valp) in getfield() argument
447 constp limit;
458 if (p == 0 || p >= limit) {
464 return (p < limit);
475 if (len != limit - p) {
480 p = limit;
500 return (p < limit);
525 const char *p = instr, *limit; local
529 limit = p + lenstr;
531 ++p >= limit ||
[all …]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dgraphics.c121 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 Dgetprotoent_r.c134 const char *p, *numstart, *namestart, *limit; in str2protoent() local
145 limit = p + lenstr; in str2protoent()
147 while (p < limit && isspace(*p)) { in str2protoent()
151 while (p < limit && !isspace(*p)) { in str2protoent()
163 while (p < limit && isspace(*p)) { in str2protoent()
166 if (p >= limit) { in str2protoent()
173 } while (p < limit && !isspace(*p)); in str2protoent()
187 while (p < limit && isspace(*p)) { in str2protoent()
195 if (p >= limit || *p == '#') { /* no aliases, no problem */ in str2protoent()

12345678910>>...19