Symbol: qsort
bin/ps/ps.c
715
qsort(kinfo, nkept, sizeof(KINFO), pscomp);
bin/sh/alias.c
185
qsort(sorted, aliases, sizeof(*sorted), comparealiases);
bin/sh/expand.c
1054
qsort(&dstlist->args[firstmatch],
bin/sh/var.c
618
qsort(vars, n, sizeof(*vars), var_compare);
crypto/heimdal/appl/ftp/ftpd/ls.c
554
qsort(fi, n_files, sizeof(*fi),
crypto/heimdal/appl/ftp/ftpd/ls.c
558
qsort(fi, n_files, sizeof(*fi),
crypto/heimdal/appl/ftp/ftpd/ls.c
562
qsort(fi, n_files, sizeof(*fi),
crypto/heimdal/lib/asn1/template.c
579
qsort(val, el->len, sizeof(val[0]), _heim_der_set_sort);
crypto/heimdal/lib/hx509/cert.c
3219
qsort(stats, sizeof(stats)/sizeof(stats[0]), sizeof(stats[0]), stat_sort);
crypto/heimdal/lib/roken/glob.c
482
qsort(pglob->gl_pathv + pglob->gl_offs + oldpathc,
crypto/heimdal/lib/roken/resolve.c
658
qsort(srvs, num_srv, sizeof(*srvs), compare_srv);
crypto/krb5/src/lib/kadm5/srv/pwqual_dict.c
151
qsort(dict->word_list, dict->word_count, sizeof(char *), word_compare);
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
1254
qsort(comps, comps_used, sizeof(_comp_t), cmpcomps);
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c
1794
qsort(princ_ent->old_keys, princ_ent->old_key_len, sizeof(osa_pw_hist_ent),
crypto/krb5/src/util/support/dir_filenames.c
130
qsort(fnames, n_fnames, sizeof(*fnames), compare_with_strcmp);
crypto/krb5/src/util/support/dir_filenames.c
98
qsort(fnames, n_fnames, sizeof(*fnames), compare_with_strcmp);
crypto/openssh/openbsd-compat/glob.c
583
qsort(path_stat, n, sizeof(*path_stat), compare_gps);
crypto/openssh/openbsd-compat/glob.c
590
qsort(pglob->gl_pathv + pglob->gl_offs + oldpathc,
crypto/openssh/sftp.c
1037
qsort(indices, nentries, sizeof(*indices), sglob_comp);
crypto/openssh/sftp.c
888
qsort(d, n, sizeof(*d), sdirent_comp);
crypto/openssh/ssh-keygen.c
1748
qsort(cert_ext, ncert_ext, sizeof(*cert_ext), cert_ext_cmp);
crypto/openssl/apps/openssl.c
488
qsort(functions, i, sizeof(*functions), SortFnByName);
crypto/openssl/crypto/asn1/tasn_enc.c
441
qsort(derlst, sk_const_ASN1_VALUE_num(sk), sizeof(*derlst), der_cmp);
crypto/openssl/crypto/ex_data.c
399
qsort(storage, mx, sizeof(*storage), ex_callback_compare);
crypto/openssl/crypto/objects/o_names.c
344
qsort((void *)d.names, d.n, sizeof(*d.names), do_all_sorted_cmp);
crypto/openssl/crypto/params_dup.c
180
qsort(list1, list1_sz, sizeof(OSSL_PARAM *), compare_params);
crypto/openssl/crypto/params_dup.c
181
qsort(list2, list2_sz, sizeof(OSSL_PARAM *), compare_params);
crypto/openssl/crypto/stack/stack.c
484
qsort(st->data, st->num, sizeof(void *), st->comp);
crypto/openssl/providers/implementations/encode_decode/ml_common_codecs.c
89
qsort(ret, NUM_PKCS8_FORMATS, sizeof(*ret), pref_cmp);
crypto/openssl/ssl/quic/quic_txpim.c
212
qsort(ex->chunks, ex->num_chunks, sizeof(QUIC_TXPIM_CHUNK), compare);
crypto/openssl/ssl/s3_lib.c
3730
qsort(tls13_ciphers, TLS13_NUM_CIPHERS, sizeof(tls13_ciphers[0]),
crypto/openssl/ssl/s3_lib.c
3732
qsort(ssl3_ciphers, SSL3_NUM_CIPHERS, sizeof(ssl3_ciphers[0]),
crypto/openssl/ssl/s3_lib.c
3734
qsort(ssl3_scsvs, SSL3_NUM_SCSVS, sizeof(ssl3_scsvs[0]), cipher_compare);
crypto/openssl/test/drbgtest.c
458
qsort(result, DRBG_FORK_RESULT_COUNT, sizeof(drbg_fork_result),
crypto/openssl/test/drbgtest.c
484
qsort(sample, sizeof(sample) / 2, 2, compare_rand_chunk);
crypto/openssl/test/priority_queue_test.c
108
qsort(sorted, count, sizeof(*sorted), &qsort_size_t_compare);
crypto/openssl/test/priority_queue_test.c
75
qsort(sorted, count, sizeof(*sorted), &qsort_size_t_compare);
crypto/openssl/test/priority_queue_test.c
80
qsort(values, count, sizeof(*values), &qsort_size_t_compare_rev);
include/stdlib.h
107
void qsort(void *, size_t, size_t,
lib/libc/gen/fts-compat.c
1028
qsort(sp->fts_array, nitems, sizeof(FTSENT *), fts_compar);
lib/libc/gen/fts-compat11.c
1019
qsort(sp->fts_array, nitems, sizeof(FTSENT11 *), fts_compar);
lib/libc/gen/fts.c
1122
qsort(sp->fts_array, nitems, sizeof(FTSENT *),
lib/libc/gen/glob-compat11.c
578
qsort(pglob->gl_pathv + pglob->gl_offs + oldpathc,
lib/libc/gen/glob.c
641
qsort(pglob->gl_pathv + pglob->gl_offs + oldpathc,
lib/libc/iconv/bsd_iconv.c
203
qsort((void *)list, sz, sizeof(char *), qsort_helper);
lib/libc/net/getaddrinfo.c
713
qsort(aio, n, sizeof(*aio), comp_dst);
lib/libc/net/name6.c
718
qsort(aio, n, sizeof(*aio), comp_dst);
lib/libc/net/nsdispatch.c
197
qsort(vec, count, esize, comparison);
lib/libc/net/nsdispatch.c
543
qsort(mod.mtab, mod.mtabsize, sizeof(mod.mtab[0]),
lib/libc/posix1e/acl_support.c
136
qsort(&acl_int->acl_entry[0], acl_int->acl_cnt,
lib/libc/tests/stdlib/qsort_bench.c
65
qsort(buf, n, sizeof(*buf), intcmp);
lib/libc/tests/stdlib/qsort_test.c
50
qsort(testvector, j, sizeof(testvector[0]), sorthelp);
lib/libc/tests/string/wcscoll_test.c
54
qsort(c, wcslen(c), sizeof(wchar_t), cmp);
lib/libdevstat/devstat.c
864
qsort(*dev_select, *num_selections,
lib/libpmcstat/libpmcstat_image.c
162
qsort(image->pi_symbols, image->pi_symcount, sizeof(*symptr),
lib/libutil/kinfo_getallproc.c
60
qsort(kipp, count, sizeof(*kipp), kinfo_proc_compare);
sbin/dump/optr.c
379
qsort((char *) ddatev, nddates, sizeof(struct dumpdates *), datesort);
sbin/fsck_ffs/pass2.c
129
qsort((char *)inpsort, (size_t)inplast, sizeof *inpsort, blksort);
sbin/ifconfig/ifconfig_netlink.c
336
qsort(sorted_ifaddrs, iface->ifa_count, sizeof(void *), cmp_ifaddr);
sbin/ifconfig/ifconfig_netlink.c
469
qsort(sorted_ifaces, ifmap->count, sizeof(void *), cmp_iface);
sbin/ifconfig/ifieee80211.c
2449
qsort(ci->ic_chans, ci->ic_nchans, sizeof(ci->ic_chans[0]),
sbin/ipf/ipf/ipfcomp.c
683
qsort(m, FRC_MAX, sizeof(mc_t), intcmp);
sbin/ipf/ipf/ipfcomp.c
998
qsort(m, FRC_MAX, sizeof(mc_t), intcmp);
sbin/ipf/ipfstat/ipfstat.c
1437
qsort(tstable, tsentry + 1,
sbin/ipf/ipfstat/ipfstat.c
1441
qsort(tstable, tsentry + 1,
sbin/ipf/ipfstat/ipfstat.c
1445
qsort(tstable, tsentry + 1,
sbin/ipf/ipfstat/ipfstat.c
1449
qsort(tstable, tsentry + 1,
sbin/ipf/ipfstat/ipfstat.c
1453
qsort(tstable, tsentry + 1,
sbin/ipf/ipfstat/ipfstat.c
1457
qsort(tstable, tsentry +1,
sbin/ipf/ipfstat/ipfstat.c
1461
qsort(tstable, tsentry + 1,
sbin/ipf/ipfstat/ipfstat.c
1465
qsort(tstable, tsentry + 1,
sbin/ipfw/dummynet.c
994
qsort(points, points_no, sizeof(struct point), compare_points);
sbin/ipfw/ipfw2.c
5790
qsort(ctlv + 1, ctlv->count, ctlv->objsize, compare_ntlv);
sbin/ipfw/ipfw2.c
6356
qsort(olh + 1, olh->count, olh->objsize, ifinfo_cmp);
sbin/ipfw/nat.c
1101
qsort(olh + 1, olh->count, olh->objsize, natname_cmp);
sbin/ipfw/nat64clat.c
522
qsort(olh + 1, olh->count, olh->objsize,
sbin/ipfw/nat64lsn.c
887
qsort(olh + 1, olh->count, olh->objsize,
sbin/ipfw/nat64stl.c
538
qsort(olh + 1, olh->count, olh->objsize,
sbin/ipfw/nptv6.c
442
qsort(olh + 1, olh->count, olh->objsize, nptv6name_cmp);
sbin/ipfw/tables.c
1728
qsort(olh + 1, olh->count, olh->objsize,
sbin/ipfw/tables.c
2074
qsort(v, olh->count, olh->objsize, compare_values);
sbin/rcorder/rcorder.c
1102
qsort(seqlist, file_count, sizeof(filenode *), sequence_cmp);
sbin/restore/interactive.c
556
qsort((char *)list, entries, sizeof(struct afile), fcmp);
share/examples/sunrpc/sort/sort_proc.c
20
qsort(ssp->ss.ss_val, ssp->ss.ss_len, sizeof (char *), comparestrings);
stand/usb/tools/sysinit.c
246
qsort(start, entries, sizeof(void *), &compare);
stand/usb/tools/sysinit.c
249
qsort(start, entries, sizeof(void *), &compare_R);
sys/arm/ti/ti_adc.c
447
qsort(data, sc->sc_coord_readouts,
sys/arm/ti/ti_adc.c
449
qsort(&data[sc->sc_coord_readouts + 2],
sys/compat/linuxkpi/common/include/linux/sort.h
38
qsort(base, num, size, cmp); \
sys/dev/bhnd/bhnd_subr.c
513
qsort(devlist, devcount, sizeof(*devlist), compare);
sys/dev/bhnd/nvram/bhnd_nvram_data_sprom_subr.c
140
qsort(idx, num_idx, sizeof(idx[0]), bhnd_sprom_opcode_sort_idx);
sys/dev/cxgbe/cudbg/cudbg_lib.c
1025
qsort(meminfo_buff->mem, n, sizeof(struct struct_mem_desc),
sys/dev/cxgbe/cudbg/cudbg_lib.c
918
qsort(meminfo_buff->avail, i, sizeof(struct struct_mem_desc),
sys/dev/cxgbe/t4_main.c
10596
qsort(avail, i, sizeof(struct mem_desc), mem_desc_cmp);
sys/dev/cxgbe/t4_main.c
10735
qsort(mem, n, sizeof(struct mem_desc), mem_desc_cmp);
sys/dev/cxgbe/t4_main.c
4446
qsort(mem_ranges, n, sizeof(struct t4_range), t4_range_cmp);
sys/dev/ixl/ixl_pf_main.c
3819
qsort(resp, num_entries,
sys/dev/ixl/ixl_pf_main.c
3974
qsort(sw_config->element, sw_config->header.num_reported,
sys/dev/nvdimm/nvdimm_nfit.c
125
qsort((*listp), maxids, sizeof(uint32_t), uint32_t_compare);
sys/fs/ext2fs/ext2_htree.c
586
qsort(sort_info, entry_cnt, sizeof(struct ext2fs_htree_sort_entry),
sys/kern/kern_jail.c
675
qsort(PR_IP(pip, af, 1), cnt - 1, size, cmp);
sys/kern/kern_kexec.c
195
qsort(segtmp, nseg, sizeof(*segtmp), seg_cmp);
sys/kern/kern_prot.c
2940
qsort(groups, *ngrp, sizeof(*groups), gidp_cmp);
sys/kern/subr_unit.c
1240
qsort(vals, ISIZE, sizeof(vals[0]), test_iter_compar);
sys/libkern/qsort.c
182
qsort(a, d1 / es, es, cmp);
sys/libkern/qsort.c
198
qsort(pn - d2, d2 / es, es, cmp);
sys/net/ieee8023ad_lacp.c
1097
qsort(&p->pm_numa[i].map[0],
sys/net/ieee8023ad_lacp.c
1109
qsort(&p->pm_map[0], p->pm_count,
sys/net/route/nhgrp_ctl.c
109
qsort(wn, num_nhops, sizeof(struct weightened_nhop), wn_cmp_idx);
sys/netinet/in_fib_algo.c
446
qsort(prefixes_array.arr, prefixes_array.num_items, sizeof(struct bsearch4_record), rr_cmp);
sys/netpfil/ipfw/ip_fw_sockopt.c
2730
qsort(tmp, sz, sizeof(*rw), compare_opcodes);
sys/netpfil/ipfw/ip_fw_sockopt.c
3017
qsort(tmp, sz, sizeof(*sh), compare_sh);
sys/powerpc/aim/mmu_oea.c
913
qsort(translations, sz, sizeof (*translations), om_cmp);
sys/powerpc/aim/mmu_oea64.c
1000
qsort(phys_avail, 2*phys_avail_count, sizeof(phys_avail[0]),
sys/powerpc/aim/mmu_oea64.c
684
qsort(translations, sz, sizeof (*translations), om_cmp);
sys/powerpc/aim/mmu_radix.c
2009
qsort(phys_avail, 2 * phys_avail_count, sizeof(phys_avail[0]), pa_cmp);
sys/powerpc/powerpc/platform.c
177
qsort(pregions, npregions, sizeof(*pregions), mr_cmp);
sys/powerpc/powerpc/platform.c
178
qsort(aregions, naregions, sizeof(*aregions), mr_cmp);
sys/security/mac_do/mac_do.c
794
qsort(array, *nb, sizeof(*array), id_spec_cmp);
sys/sys/libkern.h
244
void qsort(void *base, size_t nmemb, size_t size,
sys/x86/x86/intr_machdep.c
759
qsort(interrupt_sorted, num_io_irqs, sizeof(interrupt_sorted[0]),
tests/sys/netinet/libalias/1_instance.c
102
qsort(la, num_instances, sizeof(*la), randcmp);
tests/sys/netinet/libalias/2_natout.c
293
qsort(batch, batch_size, sizeof(*batch), randcmp);
tests/sys/netinet/libalias/perf.c
221
qsort(batch, batch_size, sizeof(*batch), randcmp);
tools/tools/ath/athdecode/main.c
334
qsort(state.regs, state.nregs, sizeof(struct dumpreg *), regcompar);
tools/tools/ath/athpoke/athpoke.c
213
qsort(state.regs, state.nregs, sizeof(struct dumpreg *), regcompar);
tools/tools/ath/athregs/dumpregs.c
317
qsort(state.regs, state.nregs, sizeof(struct dumpreg *), regcompar);
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
382
qsort(&table[i][0], n, sizeof(PTW_tableentry), &compare);
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
400
qsort(sh, (n-1)*keylen, sizeof(sorthelper), &comparesorthelper);
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
413
qsort(helper, keylen-1, sizeof(doublesorthelper), &comparedoublesorthelper);
tools/tools/sortbench/sort_bench.c
83
qsort(testarray, (size_t)elts, sizeof(int), sorthelp);
tools/tools/vimage/vimage.c
186
qsort(vst, vst_last, sizeof(*vst), (void *) strcmp);
usr.bin/fortune/strfile/strfile.c
347
qsort(Firstch, (size_t)Tbl.str_numstr, sizeof(*Firstch), cmp_str);
usr.bin/gprof/arcs.c
202
qsort( topsortnlp , nname , sizeof(nltype *) , topcmp );
usr.bin/gprof/arcs.c
241
qsort( timesortnlp , nname + ncycle , sizeof(nltype *) , totalcmp );
usr.bin/gprof/gprof.c
154
qsort(nl, nname, sizeof(nltype), valcmp);
usr.bin/gprof/printgprof.c
61
qsort( sortednlp , nname , sizeof(nltype *) , timecmp );
usr.bin/gprof/printgprof.c
715
qsort( namesortnlp , nnames , sizeof(nltype *) , namecmp );
usr.bin/lex/initparse.c
1489
qsort( ccltbl + cclmap[yystack.l_mark[0]], (size_t) ccllen[yystack.l_mark[0]], sizeof (*ccltbl), cclcmp );
usr.bin/locale/locale.c
508
qsort(charmaps->sl_str, charmaps->sl_cur, sizeof(char *), scmp);
usr.bin/locale/locale.c
570
qsort(locales->sl_str, locales->sl_cur, sizeof(char *), scmp);
usr.bin/mail/cmd2.c
496
qsort(ring, tab->i_count, sizeof(char *), igcomp);
usr.bin/mail/cmd3.c
506
qsort(list, ap-list, sizeof(*list), diction);
usr.bin/mdo/mdo.c
406
qsort(ga->groups, ga->nb, sizeof(gid_t), gidp_cmp);
usr.bin/ministat/ministat.c
522
qsort(s->points, s->n, sizeof *s->points, dbl_cmp);
usr.bin/netstat/nhgrp.c
243
qsort(nhg_map, nhg_count, sizeof(struct nhops_map), cmp_nhg_idx);
usr.bin/netstat/nhops.c
386
qsort(nh_map, nh_count, sizeof(struct nhops_map), cmp_nh_idx);
usr.bin/procstat/procstat.c
221
qsort(kipp, count, sizeof(*kipp), kinfo_proc_compare);
usr.bin/procstat/procstat_kstack.c
160
qsort(kkstp, count, sizeof(*kkstp), kinfo_kstack_compare);
usr.bin/ruptime/ruptime.c
249
qsort(hs, nhosts, sizeof(hs[0]), cmp);
usr.bin/rwho/rwho.c
164
qsort((char *)myutmp, nusers, sizeof(struct myutmp), utmpcmp);
usr.bin/sort/file.c
1116
qsort(list, count, elem_size, cmp_func);
usr.bin/systat/pigs.c
88
qsort(pt, nproc, sizeof (struct p_times), compar);
usr.bin/systat/proc.c
173
qsort(swobj, nswobj, sizeof(swobj[0]), swobj_sort);
usr.bin/systat/proc.c
274
qsort(pu, nproc, sizeof(*pu), proc_compar);
usr.bin/top/commands.c
232
qsort((char *)errs, errcnt, sizeof(struct errs), err_compar);
usr.bin/top/machine.c
858
qsort(previous_pref, nproc, sizeof(*previous_pref),
usr.bin/top/machine.c
966
qsort(pref, active_procs, sizeof(*pref), compare);
usr.bin/units/units.c
436
qsort(theunit->numerator, count, sizeof(char *), compare);
usr.bin/units/units.c
438
qsort(theunit->denominator, count, sizeof(char *), compare);
usr.sbin/bsdinstall/partedit/gpart_ops.c
880
qsort(providers, nparts, sizeof(providers[0]), part_compare);
usr.sbin/bsdinstall/partedit/partedit.c
423
qsort(tobesorted, nparts, sizeof(tobesorted[0]),
usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.c
1382
qsort(list->nodeinfo, list->numnames, sizeof(list->nodeinfo[0]), ncmp);
usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.c
1527
qsort(list->nodeinfo, list->numnames, sizeof(list->nodeinfo[0]), ncmp);
usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.c
1565
qsort(hooks->link, hooks->nodeinfo.hooks,
usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.c
1597
qsort(hooks->link, hooks->nodeinfo.hooks,
usr.sbin/efibootmgr/efibootmgr.c
581
qsort(vals, cnt, sizeof(uint16_t), compare);
usr.sbin/jail/state.c
90
qsort(jails_byname, njails, sizeof(struct cfjail *), cmp_jailptr);
usr.sbin/jls/jls.c
310
qsort(tparams, (size_t)tnparams, sizeof(struct jailparam),
usr.sbin/kbdmap/kbdmap.c
682
qsort(lang_list->sl_str, lang_list->sl_cur, sizeof(char*),
usr.sbin/kbdmap/kbdmap.c
751
qsort(km_sorted, num_keymaps, sizeof(struct keymap *), compare_keymap);
usr.sbin/lastlogin/lastlogin.c
142
qsort(ulist, ulistsize, sizeof(struct utmpx), utcmp);
usr.sbin/lpr/common_source/common.c
176
qsort(queue, nitems, sizeof(struct jobqueue *), compar);
usr.sbin/lpr/pac/pac.c
258
qsort(base, hcount, sizeof hp, qucmp);
usr.sbin/makefs/walk.c
97
qsort(array, nitems, sizeof(fsnode *), cmp);
usr.sbin/mfiutil/mfi_config.c
737
qsort(state.arrays, config->array_count, sizeof(int),
usr.sbin/mfiutil/mfi_config.c
754
qsort(state.volumes, config->log_drv_count, sizeof(int),
usr.sbin/mptutil/mpt_evt.c
148
qsort(entries, num_events, sizeof(MPI_LOG_0_ENTRY *), event_compare);
usr.sbin/mtest/mtest.c
742
qsort(sources, nsrc, af2socklen(af), su_cmp);
usr.sbin/newsyslog/newsyslog.c
1737
qsort(oldlogs, logcnt, sizeof(struct oldlog_entry),
usr.sbin/nscd/agent.c
84
qsort(new_agents, new_agents_num, sizeof(struct agent *),
usr.sbin/nscd/cachelib.c
637
qsort(the_cache->entries, the_cache->entries_size,
usr.sbin/nscd/config.c
287
qsort(config->entries, config->entries_size,
usr.sbin/nscd/config.c
358
qsort(config_entry->mp_cache_entries,
usr.sbin/nscd/hashtable.h
173
qsort(the_entry->field.values, the_entry->field.size, \
usr.sbin/pciconf/pciconf.c
555
qsort(conf, count, sizeof(*conf), pci_conf_compar);
usr.sbin/pkg/dns_utils.c
201
qsort(res, n, sizeof(res[0]), srv_priority_cmp);
usr.sbin/pkg/dns_utils.c
214
qsort(res, n, sizeof(res[0]), srv_final_cmp);
usr.sbin/pmcstat/pmcpl_callgraph.c
313
qsort(sortbuffer, cg->pcg_nchildren, sizeof(struct pmcstat_cgnode *),
usr.sbin/pmcstat/pmcpl_callgraph.c
444
qsort(sortbuffer, nentries, sizeof(struct pmcstat_cgnode *),
usr.sbin/pmcstat/pmcpl_callgraph.c
539
qsort(sortbuffer, nchildren, sizeof(struct pmcstat_cgnode *),
usr.sbin/pmcstat/pmcpl_callgraph.c
637
qsort(sortbuffer, nentries, sizeof(struct pmcstat_cgnode *),
usr.sbin/pmcstat/pmcpl_calltree.c
483
qsort(pmcpl_ct_topmax, y, sizeof(pmcpl_ct_topmax[0]),
usr.sbin/quot/quot.c
261
qsort((users), nusers, sizeof(struct user), cmpusers)
usr.sbin/tzsetup/tzsetup.c
446
qsort(countries, NCOUNTRIES, sizeof(countries[0]), compare_countries);