/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | getpagesizes.c | 49 getpagesizes(size_t pagesize[], int nelem) argument 51 return (syscall(SYS_getpagesizes, 1, pagesize, nelem)); 55 getpagesizes2(size_t pagesize[], int nelem) argument 57 return (syscall(SYS_getpagesizes, 0, pagesize, nelem));
|
H A D | psetsys.c | 85 pset_getloadavg(psetid_t pset, double loadavg[], int nelem) argument 89 if (nelem > LOADAVG_NSTATS) 90 nelem = LOADAVG_NSTATS; 92 if (_pset(PSET_GETLOADAVG, pset, buf, nelem) == -1) 95 for (i = 0; i < nelem; i++) 98 return (nelem);
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | getloadavg.c | 40 getloadavg(int *buf, int nelem) argument 45 if (nelem < 0) 47 if (nelem > LOADAVG_NSTATS) 48 nelem = LOADAVG_NSTATS; 54 error = copyout(loadbuf, buf, nelem * sizeof (avenrun[0])); 57 return (nelem);
|
H A D | getpagesizes.c | 37 getpagesizes(int legacy, size_t *buf, int nelem) argument 42 if (nelem < 0) { 45 if (nelem == 0 && buf != NULL) { 48 if (nelem == 0 && buf == NULL) { 54 if (nelem > pagesizes) { 55 nelem = pagesizes; 57 pgsza = kmem_alloc(sizeof (*pgsza) * nelem, KM_SLEEP); 58 for (i = 0; i < nelem; i++) { 61 if (copyout(pgsza, buf, nelem * sizeof (*pgsza)) != 0) { 62 kmem_free(pgsza, sizeof (*pgsza) * nelem); 76 getpagesizes32(int legacy, size32_t *buf, int nelem) argument [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getloadavg.c | 40 getloadavg(double loadavg[], int nelem) argument 42 extern int __getloadavg(int *buf, int nelem); 46 if (nelem > LOADAVG_NSTATS) 47 nelem = LOADAVG_NSTATS; 49 if ((nelem = __getloadavg(buf, nelem)) == -1) 52 for (i = 0; i < nelem; i++) 55 return (nelem);
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/ |
H A D | util.h | 39 int nelem; member in struct:table_head_t 41 char *elements[1]; /* Actually elements[nelem] */
|
/illumos-gate/usr/src/cmd/pagesize/ |
H A D | pagesize.c | 44 int nelem, i; local 69 nelem = getpagesizes(NULL, 0); 70 if (nelem < 2) { 75 if ((buf = (size_t *)malloc(sizeof (*buf) * nelem)) == NULL) { 80 nelem = getpagesizes(buf, nelem); 81 for (i = 0; i < nelem; i++) {
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2map/ |
H A D | util.h | 38 int nelem; member in struct:table_head_t 40 char *elements[1]; /* Actually elements[nelem] */
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | alloc.c | 43 void *mycalloc(size_t nelem, size_t size); 66 mycalloc(size_t nelem, size_t size) argument 68 return (alloctest(calloc(nelem, size)));
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | pr_to_salt.c | 43 krb5_int32 nelem; local 52 nelem = krb5_princ_size(context, pr); 57 for (i = 0; i < (int) nelem; i++) 69 for (i = 0; i < (int) nelem; i++) {
|
H A D | princ_comp.c | 56 krb5_int32 nelem; local 58 nelem = krb5_princ_size(context, princ1); 59 if (nelem != krb5_princ_size(context, princ2)) 65 for (i = 0; i < (int) nelem; i++) { 85 krb5_int32 nelem; local 87 nelem = krb5_princ_size(context, princ1); 88 if (nelem != krb5_princ_size(context, princ2)) 94 for (i = 0; i < (int) nelem; i++) {
|
/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | util.c | 81 Xcalloc(size_t nelem, size_t elsize) argument 85 t = calloc(nelem, elsize);
|
/illumos-gate/usr/src/cmd/sgs/prof/common/ |
H A D | lookup.c | 98 locate(Address *pclist, size_t nelem, Address keypc) argument 100 size_t low = 0, middle, high = nelem - 1;
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | Sys_malloc.c | 117 size_t nelem, 123 _Calloc (nelem, elsize, file, line) 124 size_t nelem; 130 alloc_type ret = calloc(nelem, elsize); 116 _Calloc( size_t nelem, size_t elsize, const char * file, int line ) argument
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | xdr_array.c | 135 xdr_vector(XDR *xdrs, char *basep, const uint_t nelem, argument 142 for (i = 0; i < nelem; i++) {
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_scsi.c | 191 int hba, expand, nelem; local 251 nelem = 0; 253 ret = do_list(&apidt, cmd, &llp, &nelem, errstring); 260 if (list_ext_postprocess(&llp, nelem, ap_id_list, nlistp, 265 assert(*ap_id_list != NULL && *nlistp == nelem);
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | mdeg.h | 86 int nelem; member in struct:__anon10357
|
/illumos-gate/usr/src/lib/mpapi/libmpscsi_vhci/common/ |
H A D | mp_utils.c | 205 uint_t nelem = 0; local 415 nelem = 1; 421 DDI_INSTANCE, &instance, &nelem); 425 nelem); 428 DDI_DRIVER_MAJOR, &major, &nelem); 432 nelem); 444 nelem = 1; 448 nelem = 0; 454 &val, &nelem); 458 nelem); [all...] |
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | malloc.c | 123 calloc(size_t nelem, size_t elsize) argument 125 size_t size = nelem * elsize; 128 if (nelem > 0 && elsize > 0 && size/nelem != elsize) {
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_fp.c | 210 int fca, expand, nelem; local 292 nelem = 0; 295 ret = do_list_FCP_dev(ap_id, fp_flags, cmd, &ldatalistp, &nelem, 311 ret = do_list(&apidt, cmd, &ldatalistp, &nelem, errstring); 322 if (list_ext_postprocess(&ldatalistp, nelem, ap_id_list, nlistp, 327 assert(*ap_id_list != NULL && *nlistp == nelem);
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | nvpair.c | 169 nvpair_print_value(char *data, int32_t elem_size, int32_t nelem, argument 178 for (i = 0; i < nelem - 1; i++) { 188 for (i = 0; i < nelem; i++) { 195 int size = elem_size * nelem; 219 int32_t i, size, nelem, elem_size = 0; local 255 nelem = NVP_NELEM(nvpair); 278 mdb_printf(" items=%d\n", nelem); 282 if ((nelem == 0) && (type_name != NULL)) { 299 * lists is nelem pointers to nvlist_t structures followed 326 for (i = 0; i < nelem; [all...] |
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | unparse.c | 184 krb5_int32 nelem; local 218 nelem = krb5_princ_size(context, principal); 219 for (i = 0; i < (int) nelem; i++) { 227 if (nelem == 0) 257 for (i = 0; i < (int) nelem; i++) {
|
/illumos-gate/usr/src/tools/stabs/ |
H A D | forth.c | 110 int nelem = 0; local 116 nelem++; 118 printf("%x c-enum .%s\n", nelem, np->name);
|
H A D | genassym.c | 126 int nelem = 0; local 132 nelem++; 134 printf("%x c-enum .%s\n", nelem, np->name);
|
/illumos-gate/usr/src/cmd/lvm/metassist/common/ |
H A D | volume_nvpair.c | 433 * @param nelem 447 uint_t *nelem) 456 error = nvpair_value_uint16_array(match, val, nelem); 474 * @param nelem 491 uint_t nelem) 496 attrs, which, val, nelem)) != 0) { 517 * @param nelem 531 uint_t *nelem) 540 error = nvpair_value_uint64_array(match, val, nelem); 558 * @param nelem 443 get_uint16_array( nvlist_t *attrs, char *which, uint16_t **val, uint_t *nelem) argument 487 set_uint16_array( nvlist_t *attrs, char *which, uint16_t *val, uint_t nelem) argument 527 get_uint64_array( nvlist_t *attrs, char *which, uint64_t **val, uint_t *nelem) argument 571 set_uint64_array( nvlist_t *attrs, char *which, uint64_t *val, uint_t nelem) argument 611 get_string_array( nvlist_t *attrs, char *which, char ***val, uint_t *nelem) argument 655 set_string_array( nvlist_t *attrs, char *which, char **val, uint_t nelem) argument [all...] |