Searched refs:cnt (Results 1 - 25 of 222) sorted by relevance

123456789

/osnet-11/usr/src/cmd/sendmail/db/os/
H A Dos_dir.c54 int arraysz, cnt, ret; local
63 for (arraysz = cnt = 0; (dp = readdir(dirp)) != NULL; ++cnt) {
64 if (cnt >= arraysz) {
70 if ((ret = __os_strdup(dp->d_name, &names[cnt])) != 0)
76 *cntp = cnt;
80 __os_dirfree(names, cnt);
91 __os_dirfree(names, cnt)
93 int cnt;
96 __db_jump.j_dirfree(names, cnt);
[all...]
/osnet-11/usr/src/lib/crypt_modules/sha256/
H A Dtest.c103 int cnt; local
115 for (cnt = 0; cnt < ntests2; ++cnt) {
117 fprintf(stderr, "test %d (outlen=%d): ", cnt,
118 strlen(tests2[cnt].expected));
120 tests2[cnt].input, tests2[cnt].salt, NULL);
122 if (cp == NULL || (strcmp(cp, tests2[cnt].expected) != 0)) {
125 strlen(tests2[cnt]
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/lib/
H A Dhexdump.c32 int cnt, i; local
35 cnt = 16;
36 if (cnt > len)
37 cnt = len;
39 for (i = 0; i < cnt; i++)
56 for (i = 0; i < cnt; i++)
83 len -= cnt;
/osnet-11/usr/src/lib/libc/sparc/gen/
H A Dlshiftl.s36 * lshiftl (op, cnt)
38 * int cnt;
55 subcc %g0,%o1,%o4 ! test cnt < 0 and save reciprocol
62 subcc %o1,32,%o5 ! cnt - 32 (also test cnt >= 32)
64 add %o4,32,%o4 ! 32 - cnt (actually ((-cnt) + 32)
65 sll %o3,%o5,%o2 ! R.h = R.l << (cnt - 32)
70 srl %o3,%o4,%o5 ! temp = R.l >> (31 - cnt)
71 sll %o3,%o1,%o3 ! R.l = R.l << cnt
[all...]
/osnet-11/usr/src/lib/libntfs/common/libntfs/
H A Dsecurity.c190 int i, j, cnt; local
202 cnt = ntfs_sid_to_mbs_size(sid);
203 if (cnt < 0)
205 s = ntfs_malloc(cnt);
213 cnt = sid_str_size;
216 i = snprintf(s, cnt, "S-%hhu-", (unsigned char)sid->revision);
217 if (i < 0 || i >= cnt)
220 cnt -= i;
225 i = snprintf(s, cnt, "%lu", (unsigned long)u);
227 i = snprintf(s, cnt, "
[all...]
/osnet-11/usr/src/lib/libc/port/gen/
H A Dldivide.c40 int cnt; local
53 for (cnt = 0; cnt < 63; cnt++) {
H A Dlmath.c59 lshiftl(dl_t op, int cnt) argument
62 if (cnt < 0)
64 r.xword = (long)(*(ulong_t *)&op >> (-cnt));
67 r.xword = *(long *)&op << cnt;
H A Dexecvp.c213 int cnt = PATH_MAX + 1; /* number of characters in s2 */ local
217 if (cnt > 0) {
219 cnt--;
223 if (si != s && cnt > 0) {
225 cnt--;
227 while (*s2 && cnt > 0) {
229 cnt--;
H A Dmon.c183 struct cnt *_mcount_newent(void);
239 ssiz = ((sizeof (struct hdr) + nfunc * sizeof (struct cnt)) /
319 countlimit = countbase + (nfunc * sizeof (struct cnt));
396 amt = ap->monBuffer->nfns * sizeof (struct cnt);
405 (histp->monBuffer->nfns * sizeof (struct cnt));
441 THISMANYFCNS * sizeof (struct cnt))) /* Region 2 */ \
477 countlimit = countbase + (THISMANYFCNS * sizeof (struct cnt));
489 * (struct cnt, in the region allocated by monitor()), or to return
540 struct cnt *
550 struct cnt *cur_countbas
[all...]
/osnet-11/usr/src/lib/libresolv2/common/bsd/
H A Dsetenv.c77 int cnt; local
80 for (p = environ, cnt = 0; *p; ++p, ++cnt);
83 (size_t)(sizeof(char *) * (cnt + 2)));
89 p = malloc((size_t)(sizeof(char *) * (cnt + 2)));
92 memcpy(p, environ, cnt * sizeof(char *));
95 environ[cnt + 1] = NULL;
96 offset = cnt;
/osnet-11/usr/src/lib/libc/port/stdio/
H A Dgetline.c49 size_t cnt; local
66 cnt = 0;
77 if (++cnt == size) { /* must reallocate */
94 if (cnt > SSIZE_MAX) {
98 return (cnt ? cnt : -1);
/osnet-11/usr/src/cmd/sendmail/libsm/
H A Dt-sem.c164 int cnt = 0; local
207 cnt = 0;
214 ++cnt;
216 } while (r < 0 && cnt <= MAX_CNT);
222 cnt = 0;
229 ++cnt;
231 } while (r < 0 && cnt <= MAX_CNT);
237 cnt = 0;
244 ++cnt;
246 } while (r <= 0 && cnt <
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/commands/
H A Dhelp.c35 int cnt = 0; local
83 if (!(cnt % 2))
88 if (cnt % 2)
90 cnt++;
96 if (!(cnt % 2))
113 if (cnt++ > 0)
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/posix/
H A Dsetenv.c81 register int cnt;
84 for (p = environ, cnt = 0; *p; ++p, ++cnt);
87 (size_t)(sizeof(char *) * (cnt + 2)));
93 p = (char **)malloc((size_t)(sizeof(char *) * (cnt + 2)));
96 memcpy(p, environ, cnt * sizeof(char *));
99 environ[cnt + 1] = NULL;
100 offset = cnt;
/osnet-11/usr/src/lib/libsqlite/test/
H A Dthreadtest2.c79 int cnt = 0; local
80 while( !all_stop && cnt++<10000 ){
81 if( cnt%1000==0 ) printf("pid=%d: %d\n", getpid(), cnt);
H A Dcrashtest1.c34 int cnt = 0; local
55 cnt++;
66 printf("pid %d: cnt=%d\n", getpid(), cnt);
/osnet-11/usr/src/lib/libsqlite/tool/
H A Dspeedtest2.tcl12 set cnt 1
14 global cnt
15 set sqlfile test$cnt.sql
16 puts "<h2>Test $cnt: $title</h2>"
17 incr cnt
121 set fd [open test$cnt.sql w]
133 set fd [open test$cnt.sql w]
139 set fd [open test$cnt.sql w]
150 set fd [open test$cnt.sql w]
156 set fd [open test$cnt
[all...]
H A Dspeedtest.tcl12 set cnt 1
14 global cnt
15 set sqlfile test$cnt.sql
16 puts "<h2>Test $cnt: $title</h2>"
17 incr cnt
131 set fd [open test$cnt.sql w]
142 set fd [open test$cnt.sql w]
155 set fd [open test$cnt.sql w]
166 set fd [open test$cnt.sql w]
175 set fd [open test$cnt
[all...]
/osnet-11/usr/src/lib/libsqlite/src/
H A Dencode.c129 int cnt[256]; local
137 memset(cnt, 0, sizeof(cnt));
138 for(i=n-1; i>=0; i--){ cnt[in[i]]++; }
143 sum = cnt[i] + cnt[(i+1)&0xff] + cnt[(i+'\'')&0xff];
/osnet-11/usr/src/lib/libxcurses/src/libc/gen/
H A Dbase.c133 int cnt; local
138 for (cnt=argc--;argc;argc--) {
139 tmp = strdup(argv[cnt-argc]);
141 dirname(argv[cnt-argc]),
/osnet-11/usr/src/lib/libsmbfs/common/
H A Dsmbfs_nb_ssn.c150 int cnt, len, err, moreflag; local
163 cnt = t_rcv(fd, &hdrbuf, sizeof (hdrbuf), &moreflag);
164 if (cnt < 0) {
170 if (cnt != sizeof (hdrbuf)) {
171 DPRINT("hdr cnt %d", cnt);
201 cnt = t_rcv(fd, buf, len, &moreflag);
202 if (cnt < 0) {
207 buf += cnt;
208 len -= cnt;
224 int cnt, err; local
[all...]
/osnet-11/usr/src/cmd/sendmail/db/mp/
H A Dmp_pr.c178 int cnt; local
209 cnt = 0;
211 mfp != NULL; mfp = SH_TAILQ_NEXT(mfp, q, __mpoolfile), ++cnt) {
213 cnt + 1, __memp_fns(dbmp, mfp), (u_long)mfp->ref,
216 if (cnt < FMAP_ENTRIES)
217 fmap[cnt] = R_OFFSET(dbmp, mfp);
221 dbmfp != NULL; dbmfp = TAILQ_NEXT(dbmfp, q), ++cnt) {
223 cnt + 1, __memp_fn(dbmfp), dbmfp->fd,
225 if (cnt < FMAP_ENTRIES)
226 fmap[cnt]
[all...]
/osnet-11/usr/src/lib/libsec/common/
H A Daclsort.c159 sortid(aclent_t *ap, int cnt, int type) argument
165 for (tp = ap; cnt-- > 0; tp++) {
170 for (tp++, cnt--; cnt > 0 && tp->a_type == type; tp++, cnt--)
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/
H A Drec_delete.c160 indx_t *ip, cnt, offset; local
189 for (cnt = &h->linp[idx] - (ip = &h->linp[0]); cnt--; ++ip)
192 for (cnt = &h->linp[NEXTINDEX(h)] - ip; --cnt; ++ip)
/osnet-11/usr/src/lib/libdiskmgt/common/
H A Dcontroller.c236 int cnt; local
242 for (cnt = 0; cp->disks[cnt]; cnt++);
245 drives = (descriptor_t **)calloc(cnt + 1, sizeof (descriptor_t *));
269 int cnt; local
276 cnt = 0;
278 for (; pp[cnt]; cnt++);
282 paths = (descriptor_t **)calloc(cnt
[all...]

Completed in 170 milliseconds

123456789