Home
last modified time | relevance | path

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

12345678910>>...18

/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dgetservent.c40 const char *limit, *linep, *keyp; in check_name() local
44 limit = line + linelen; in check_name()
60 while (linep < limit && !isspace(*linep)) in check_name()
63 while (linep < limit && isspace(*linep)) in check_name()
68 if (linep == limit || *linep != '/') in check_name()
74 while (linep < limit && !isspace(*linep)) in check_name()
93 while (linep < limit) { in check_name()
95 while (linep < limit && isspace(*linep)) in check_name()
134 limit = line + linelen; in check_port()
140 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.c53 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()
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()
119 while (linep < limit && isspace(*linep)) in check_ether()
[all …]
H A Dgetprojent.c60 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 Dstorepri.c46 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 Dusermgmt.c67 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 Dloadpri.c172 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 Dlimit.test35 do_test limit-1.0 {
38 do_test limit-1.1 {
50 do_test limit-1.3 {
59 do_test limit-1.5 {
62 do_test limit-1.6 {
65 do_test limit-1.7 {
69 do_test limit-2.1 {
75 do_test limit-2.2 {
81 do_test limit-2.3 {
87 do_test limit-3.1 {
[all …]
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetservent.c71 const char *limit, *linep, *keyp; in check_name2() local
75 limit = linep + strlen(argp->buf.buffer); in check_name2()
91 while (linep < limit && !isspace(*linep)) in check_name2()
94 while (linep < limit && isspace(*linep)) in check_name2()
99 if (linep == limit || *linep != '/') in check_name2()
105 while (linep < limit && !isspace(*linep)) in check_name2()
124 while (linep < limit) { in check_name2()
126 while (linep < limit && isspace(*linep)) in check_name2()
140 while (linep < limit && !isspace(*linep)) in check_name2()
236 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.c120 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()
190 (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.cc44 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 Dgethostent.c108 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()
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()
246 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.c65 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 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/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/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/krb5/plugins/kdb/db2/libdb2/hash/
H A Dhash_log2.c50 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 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.c132 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()

12345678910>>...18