Home
last modified time | relevance | path

Searched refs:count (Results 76 – 100 of 2307) sorted by relevance

12345678910>>...93

/illumos-gate/usr/src/uts/common/krtld/
H A Dkobj_subr.c65 stand_bzero(void *p_arg, size_t count) in stand_bzero() argument
70 while (count != 0) in stand_bzero()
71 *p++ = zero, count--; in stand_bzero()
75 stand_bcopy(const void *src_arg, void *dest_arg, size_t count) in stand_bcopy() argument
80 if (src < dest && (src + count) > dest) { in stand_bcopy()
82 while (--count != -1) in stand_bcopy()
83 *(dest + count) = *(src + count); in stand_bcopy()
85 while (--count != -1) in stand_bcopy()
/illumos-gate/usr/src/lib/libdladm/common/
H A Dusage.c566 int count; in clear_pe() local
568 for (count = 0; count < entries; count++) { in clear_pe()
569 pe[count].net_pe_totbytes = 0; in clear_pe()
570 pe[count].net_pe_totibytes = 0; in clear_pe()
571 pe[count].net_pe_totobytes = 0; in clear_pe()
572 pe[count].net_pe_tottime = 0; in clear_pe()
582 int count; in update_pe() local
584 for (count = 0; count < nentries; count++) { in update_pe()
585 if (strcmp(pe[count].net_pe_name, nns->net_stat_name) == 0) in update_pe()
588 if (count == nentries) in update_pe()
[all …]
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dfwrite.c44 _fwrite_unlocked(const void *ptr, size_t size, size_t count, FILE *iop);
47 fwrite(const void *ptr, size_t size, size_t count, FILE *iop) in fwrite() argument
56 retval = _fwrite_unlocked(ptr, size, count, iop); in fwrite()
63 _fwrite_unlocked(const void *ptr, size_t size, size_t count, FILE *iop) in _fwrite_unlocked() argument
75 if (count == 1) in _fwrite_unlocked()
78 s = count; in _fwrite_unlocked()
80 s = size * count; in _fwrite_unlocked()
98 if (size < 1 || count < 1) in _fwrite_unlocked()
181 return (count); in _fwrite_unlocked()
188 return (count); in _fwrite_unlocked()
[all …]
/illumos-gate/usr/src/uts/intel/os/
H A Dmicrocode_amd.c118 int count, offset = 0; in ucode_equiv_cpu_amd() local
128 count = kobj_read(fd, (int8_t *)&eqtbl, in ucode_equiv_cpu_amd()
130 if (count != sizeof (eqtbl)) { in ucode_equiv_cpu_amd()
135 offset += count; in ucode_equiv_cpu_amd()
150 int count; in ucode_equiv_cpu_amd() local
178 count = kobj_read_file(eq, (char *)ucode_eqtbl_amd, in ucode_equiv_cpu_amd()
182 if (count != size) { in ucode_equiv_cpu_amd()
307 int count; in ucode_locate_amd() local
313 count = kobj_read(fd, (char *)ucodefp, sizeof (*ucodefp), 0); in ucode_locate_amd()
316 if (ucode_match_amd(eq_sig, uinfop, ucodefp, count) == EM_OK) in ucode_locate_amd()
[all …]
/illumos-gate/usr/src/cmd/lp/filter/postscript/postreverse/
H A Dpostreverse.c195 int count; in StdinToFile() local
203 while ((count = read(0, buf, sizeof (buf))) > 0) in StdinToFile()
204 if (write(fd, buf, count) != count) { in StdinToFile()
206 count, strerror(errno)); in StdinToFile()
293 int count = 0; in PageIsListed() local
298 for (count = 0; pageList[count] != NULL; count++) in PageIsListed()
299 if (*pageList[count] == page) in PageIsListed()
380 int count = 0; in WriteDocument() local
387 while (document->global[count] != NULL) { in WriteDocument()
388 GLOBAL *global = document->global[count++]; in WriteDocument()
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dserver_init.c65 int count = 0; in dup_db_args() local
68 for (count=0; db_args && db_args[count]; count++); in dup_db_args()
69 if (count == 0) { in dup_db_args()
74 handle->db_args = calloc(sizeof(char*), count+1); in dup_db_args()
80 for (count=0; db_args[count]; count++) { in dup_db_args()
81 handle->db_args[count] = strdup(db_args[count]); in dup_db_args()
82 if (handle->db_args[count] == NULL) { in dup_db_args()
90 for (count=0; handle->db_args[count]; count++) in dup_db_args()
91 free(handle->db_args[count]); in dup_db_args()
101 int count; in free_db_args() local
[all …]
/illumos-gate/usr/src/cmd/ast/libshell/common/tests/
H A Dsun_solaris_cr_6722134_background_CHLD_trap.sh83 integer count
84 (( count=$(fgrep "got_child" <<< "$s" | wc -l) )) || err_exit "counting failed."
85 (( count == 2 )) || err_exit "Expected count==2, got count==${count}."
117 (( count=$(fgrep "got_child" <<< "$s" | wc -l) )) || err_exit "counting failed."
118 (( count == 3 )) || err_exit "Expected count==3, got count==${count}."
/illumos-gate/usr/src/cmd/fm/eversholt/esc/common/
H A Descmain.c102 int count; in main() local
116 count = 0; in main()
120 if (count < MAXARGS - 1) in main()
121 Args[count++] = ' '; in main()
123 while (count < MAXARGS - 1 && *ptr) in main()
124 Args[count++] = *ptr++; in main()
127 Args[count] = '\0'; in main()
213 if (count = out_errcount()) in main()
215 OUTS(count)); in main()
/illumos-gate/usr/src/common/ficl/softcore/
H A Dstring.fr19 c-cell obj: .count
24 : get-count ( 2:this -- count ) my=[ .count get ] ;
25 : set-count ( count 2:this -- ) my=[ .count set ] ;
27 : ?empty ( 2:this -- flag ) --> get-count 0= ;
41 0 -rot my=> set-count
83 u this --> set-count
89 this --> get-count
94 this --> get-count u + dup >r
96 c-addr this --> get-buf this --> get-count + u move
97 r> this --> set-count
[all …]
/illumos-gate/usr/src/lib/libsqlite/test/
H A Dselect5.test42 execsql {SELECT y, count(*) FROM t1 GROUP BY y ORDER BY y}
45 execsql {SELECT y, count(*) FROM t1 GROUP BY y ORDER BY count(*), y}
48 execsql {SELECT count(*), y FROM t1 GROUP BY y ORDER BY count(*), y}
55 SELECT y, count(*) FROM t1 GROUP BY z ORDER BY y
61 SELECT y, count(*) FROM t1 GROUP BY z(y) ORDER BY y
67 SELECT y, count(*) FROM t1 GROUP BY y HAVING count(*)<3 ORDER BY y
73 SELECT y, count(*) FROM t1 GROUP BY y HAVING z(y)<3 ORDER BY y
79 SELECT y, count(*) FROM t1 GROUP BY y HAVING count(*)<z ORDER BY y
88 SELECT x, count(*), avg(y) FROM t1 GROUP BY x HAVING x<4 ORDER BY x
92 # Run various aggregate functions when the count is zero.
[all …]
H A Dselect3.test41 execsql {SELECT count(*) FROM t1}
56 execsql {SELECT log, count(*) FROM t1 GROUP BY log ORDER BY log}
75 SELECT log*2+1 as x, count(*) FROM t1 GROUP BY x ORDER BY x
80 SELECT log*2+1 AS x, count(*) AS y FROM t1 GROUP BY x ORDER BY y
85 SELECT log*2+1 AS x, count(*) AS y FROM t1 GROUP BY x ORDER BY 10-(x+y)
90 SELECT log, count(*) FROM t1 GROUP BY 'x' ORDER BY log;
95 SELECT log, count(*) FROM t1 GROUP BY 0 ORDER BY log;
100 SELECT log, count(*) FROM t1 GROUP BY 3 ORDER BY log;
105 SELECT log, count(*) FROM t1 GROUP BY 1 ORDER BY log;
110 # SELECT log, count(*) FROM t1 GROUP BY 2 ORDER BY log;
[all …]
/illumos-gate/usr/src/lib/libnisdb/
H A Ddb_mindex.cc156 db_mindex::satisfy_query(db_query *q, long *count, bool_t *valid) { in satisfy_query() argument
157 return (satisfy_query(q, count, valid, FALSE)); in satisfy_query()
161 db_mindex::satisfy_query(db_query *q, long *count, bool_t *valid, in satisfy_query() argument
172 *count = 0; in satisfy_query()
215 ret = satisfy_query_dbonly(q, count, fromLDAP ? TRUE : FALSE, valid); in satisfy_query()
246 ret = satisfy_query_dbonly(q, count, TRUE, valid); in satisfy_query()
248 ret = satisfy_query_dbonly(q, count, FALSE, valid); in satisfy_query()
255 ret = satisfy_query_dbonly(q, count, FALSE, valid); in satisfy_query()
264 db_mindex::satisfy_query_dbonly(db_query *q, long *count, in satisfy_query_dbonly() argument
279 *count = 0; in satisfy_query_dbonly()
[all …]
/illumos-gate/usr/src/lib/libgss/
H A Dg_acquire_cred.c42 create_actual_mechs(mechs_array, count) in create_actual_mechs() argument
44 int count;
55 malloc(sizeof (gss_OID_desc) * count);
61 actual_mechs->count = 0;
63 for (i = 0; i < count; i++) {
71 actual_mechs->count++;
182 default_OID_set.count = 1;
189 if (mechs->count == 0)
201 for (i = 0; i < mechs->count; i++) {
231 if (creds->count < 1) {
[all …]
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dgetipnodeby.c691 int nlifr, count = 0; in __ai_addrconfig() local
774 count++; in __ai_addrconfig()
783 count++; in __ai_addrconfig()
788 *num = nlifr - count; in __ai_addrconfig()
789 *lb = count; in __ai_addrconfig()
838 int count = 0, len, i; in __mapv4tov6() local
865 (char *)&(host->h_addr_list[count + 1])) { in __mapv4tov6()
874 host->h_addr_list[count] = (char *)addr6p; in __mapv4tov6()
882 ++count; in __mapv4tov6()
887 host->h_addr_list[count] = NULL; in __mapv4tov6()
[all …]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_elf_load_headers.c355 Dwarf_Unsigned count,
366 pph = (dw_elf32_phdr *)calloc(count , entsize);
371 gphdr = (struct generic_phdr *)calloc(count,sizeof(*gphdr));
380 res = RRMOA(ep->f_fd,pph,offset,count*entsize,
387 for( i = 0; i < count;
400 *count_out = count;
404 ep->f_loc_phdr.g_count = count;
406 ep->f_loc_phdr.g_totalsize = sizeof(dw_elf32_phdr)*count;
416 Dwarf_Unsigned count,
427 pph = (dw_elf64_phdr *)calloc(count , entsize);
[all …]
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_vss.c103 smbd_vss_get_count(const char *path, uint32_t *count) in smbd_vss_get_count() argument
111 *count = 0; in smbd_vss_get_count()
132 *count = vss_count.vc_count; in smbd_vss_get_count()
148 smbd_vss_get_snapshots(const char *path, uint32_t count, in smbd_vss_get_snapshots() argument
161 if (count == 0) in smbd_vss_get_snapshots()
164 if (count > SMBD_VSS_SNAPSHOT_MAX) in smbd_vss_get_snapshots()
165 count = SMBD_VSS_SNAPSHOT_MAX; in smbd_vss_get_snapshots()
167 vss_uint64_date.gd_count = count; in smbd_vss_get_snapshots()
169 vss_uint64_date.gd_gmt_array = malloc(count * sizeof (uint64_t)); in smbd_vss_get_snapshots()
345 int count; in smbd_vss_iterate_get_uint64_date() local
[all …]
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dnfs2ops.c64 uint_t count = 0; /* # bytes transferred to buf */ in nfsread() local
83 read_args.count = size; in nfsread()
85 read_args.count = nfs_readsize; in nfsread()
95 if ((count + read_args.count) > size) in nfsread()
96 read_args.count = size - count; in nfsread()
107 read_args.count); in nfsread()
119 read_args.count > NFS_READ_DECR) { in nfsread()
120 read_args.count -= NFS_READ_DECR; in nfsread()
152 if (readcnt < read_args.count) { in nfsread()
157 readcnt, read_args.count); in nfsread()
[all …]
/illumos-gate/usr/src/cmd/backup/lib/
H A Drmtlib.c318 rmtread(char *buf, uint_t count) in rmtread() argument
323 (void) snprintf(line, sizeof (line), "R%d\n", count); in rmtread()
328 if (n > count) { in rmtread()
331 count, n); in rmtread()
347 rmtwrite(char *buf, uint_t count) in rmtwrite() argument
352 (void) snprintf(line, sizeof (line), "W%d\n", count); in rmtwrite()
357 retval = rmtpush(buf, count); in rmtwrite()
365 rmtpush(char *buf, uint_t count) in rmtpush() argument
370 retval = write(rmtape, buf, count); in rmtpush()
372 count -= retval; in rmtpush()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_rip.c52 int len, count; in interpret_rip() local
101 count = len / sizeof (*nip); in interpret_rip()
105 count, (len != 0 ? "?" : ""), auth); in interpret_rip()
121 count = 0; in interpret_rip()
129 count++; in interpret_rip()
133 count, (len != 0 ? "?" : "")); in interpret_rip()
235 count = strlen(addrstr); in interpret_rip()
242 (void) snprintf(addrstr + count, in interpret_rip()
243 sizeof (addrstr) - count, in interpret_rip()
247 (void) snprintf(addrstr + count, in interpret_rip()
[all …]
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dsched.c122 fk->count = k->count - c + 1; in il_shift()
127 k->count = c; in il_shift()
202 k->count = 1; in el_init()
235 k->count = 1; in el_init()
264 k->count = 1; in el_init()
364 if (k->count == NLIM) { in el_add()
371 k->count = NLIM / 2; in el_add()
377 y->count = NLIM - NLIM / 2; in el_add()
415 k->count ++; in el_add()
485 if (k != NULL && k->count == 1) { in el_remove()
[all …]
/illumos-gate/usr/src/uts/common/crypto/api/
H A Dkcf_miscapi.c117 uint_t count = 0, me_tab_size, i, j; in crypto_get_mech_list() local
133 count += p->ce_count; in crypto_get_mech_list()
148 count++; in crypto_get_mech_list()
158 n = count * CRYPTO_MAX_MECH_NAME; in crypto_get_mech_list()
161 count = 0; in crypto_get_mech_list()
194 count++; in crypto_get_mech_list()
222 for (j = 0; j < count; j++) { in crypto_get_mech_list()
228 if (j == count) { /* This is a new one. Add it. */ in crypto_get_mech_list()
229 ASSERT((char *)&tmp_mech_name_tab[count] == in crypto_get_mech_list()
237 (void) strncpy(tmp_mech_name_tab[count], in crypto_get_mech_list()
[all …]
/illumos-gate/usr/src/cmd/zinject/
H A Dzinject.c362 int *count = data; in print_data_handler() local
367 if (*count == 0) { in print_data_handler()
375 *count += 1; in print_data_handler()
396 int *count = data; in print_device_handler() local
404 if (*count == 0) { in print_device_handler()
409 *count += 1; in print_device_handler()
421 int *count = data; in print_delay_handler() local
429 if (*count == 0) { in print_delay_handler()
436 *count += 1; in print_delay_handler()
450 int *count = data; in print_panic_handler() local
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_vss.c79 uint32_t count = 0; in smb_vss_enum_snapshots() local
101 count = smb_vss_get_count(sr->tid_tree, root_path); in smb_vss_enum_snapshots()
102 if (smb_mbc_encodef(fsctl->out_mbc, "lllw", count, 0, in smb_vss_enum_snapshots()
103 (count * SMB_VSS_GMT_NET_SIZE(sr) + in smb_vss_enum_snapshots()
108 count = fsctl->MaxOutputResp / SMB_VSS_GMT_NET_SIZE(sr); in smb_vss_enum_snapshots()
111 count, &snaps); in smb_vss_enum_snapshots()
113 status = smb_vss_encode_gmttokens(sr, fsctl, count, &snaps); in smb_vss_enum_snapshots()
277 int32_t count, smb_gmttoken_response_t *snap_data) in smb_vss_encode_gmttokens() argument
290 if (returned_count > count) in smb_vss_encode_gmttokens()
348 uint32_t count = 0; in smb_vss_get_count() local
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Duniq.c90 int reclen,oreclen= -1,count=0,cwidth=0,sep,next; in uniq() local
151 count++; in uniq()
154 next = count; in uniq()
161 if(((mode&D_FLAG)&&count==0) || ((mode&U_FLAG)&&count)) in uniq()
170 if(count<9) in uniq()
175 outp[f++] = '0' + count + 1; in uniq()
178 else if(count<MAXCNT) in uniq()
180 count++; in uniq()
185 outp[f--] = '0' + (count % 10); in uniq()
186 } while (count /= 10); in uniq()
[all …]
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dgb2312.c70 return (ps == NULL || ((const _GB2312State *)ps)->count == 0); in _GB2312_mbsinit()
107 if (gs->count < 0 || gs->count > sizeof (gs->bytes)) { in _GB2312_mbrtowc()
118 ncopy = MIN(MIN(n, MB_CUR_MAX), sizeof (gs->bytes) - gs->count); in _GB2312_mbrtowc()
119 (void) memcpy(gs->bytes + gs->count, s, ncopy); in _GB2312_mbrtowc()
120 ocount = gs->count; in _GB2312_mbrtowc()
121 gs->count += ncopy; in _GB2312_mbrtowc()
123 n = gs->count; in _GB2312_mbrtowc()
133 gs->count = 0; in _GB2312_mbrtowc()
149 if (gs->count != 0) { in _GB2312_wcrtomb()

12345678910>>...93