/titanic_50/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_argvec.c | 44 mdb_argvec_create(mdb_argvec_t *vec) in mdb_argvec_create() argument 46 vec->a_data = NULL; in mdb_argvec_create() 47 vec->a_nelems = 0; in mdb_argvec_create() 48 vec->a_size = 0; in mdb_argvec_create() 52 mdb_argvec_destroy(mdb_argvec_t *vec) in mdb_argvec_destroy() argument 54 if (vec->a_data != NULL) { in mdb_argvec_destroy() 55 mdb_argvec_reset(vec); in mdb_argvec_destroy() 56 mdb_free(vec->a_data, sizeof (mdb_arg_t) * vec->a_size); in mdb_argvec_destroy() 61 mdb_argvec_append(mdb_argvec_t *vec, const mdb_arg_t *arg) in mdb_argvec_append() argument 63 if (vec->a_nelems >= vec->a_size) { in mdb_argvec_append() [all …]
|
/titanic_50/usr/src/lib/libast/common/vec/ |
H A D | vecargs.c | 45 vecargs(register char** vec, int* argcp, char*** argvp) in vecargs() argument 53 if (!vec) return(-1); in vecargs() 54 if ((num = (char**)(*(vec - 1)) - vec) > 0) in vecargs() 58 vecfree(vec, 0); in vecargs() 64 ovec = vec; in vecargs() 65 while (s = *argv = *vec++) in vecargs() 74 else vecfree(vec, 0); in vecargs()
|
H A D | vecfree.c | 41 vecfree(register char** vec, int retain) in vecfree() argument 43 if (vec) in vecfree() 45 if (*(vec -= 2) && !retain) free(*vec); in vecfree() 46 free(vec); in vecfree()
|
H A D | vecfile.c | 43 register char** vec; in vecfile() local 47 vec = 0; in vecfile() 55 vec = vecload(buf); in vecfile() 57 if (!vec) free(buf); in vecfile() 61 return(vec); in vecfile()
|
H A D | vecload.c | 52 char** vec; in vecload() local 54 vec = 0; in vecload() 81 vec = ++p; in vecload() 93 *(vec - 1) = (char*)p; in vecload() 95 return(vec); in vecload()
|
H A D | vecstring.c | 41 register char** vec; in vecstring() local 43 if (!str || !*str || !(buf = strdup(str))) vec = 0; in vecstring() 44 else if (!(vec = vecload(buf))) free(buf); in vecstring() 45 return(vec); in vecstring()
|
/titanic_50/usr/src/cmd/csh/ |
H A D | sh.set.c | 113 exportpath(adrof(S_path /* "path" */)->vec); in doset() 158 xfree(v->vec[subscr - 1]); in asx() 159 v->vec[subscr - 1] = globone(p); in asx() 172 if (subscr < 1 || subscr > blklen(v->vec)) in getvx() 246 asx(vp, subscr, operate(op, gv->vec[subscr - 1], p)); in dolet() 249 asx(vp, subscr, operate(op, getvx(vp, subscr)->vec[subscr - 1], p)); in dolet() 254 exportpath(adrof(S_path /* "path" */)->vec); in dolet() 288 tchar *vec[5]; in operate() local 289 tchar **v = vec; in operate() 390 return (vp == 0 || vp->vec[0] == 0 ? S_ /* "" */ : vp->vec[0]); in value1() [all …]
|
/titanic_50/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | rdma.c | 73 rdsv3_pages_in_vec(struct rds_iovec *vec) in rdsv3_pages_in_vec() argument 75 if ((vec->addr + vec->bytes <= vec->addr) || in rdsv3_pages_in_vec() 76 (vec->bytes > (uint64_t)UINT_MAX)) { in rdsv3_pages_in_vec() 80 return (((vec->addr + vec->bytes + PAGESIZE - 1) >> in rdsv3_pages_in_vec() 81 PAGESHIFT) - (vec->addr >> PAGESHIFT)); in rdsv3_pages_in_vec() 210 trans_private = rs->rs_transport->get_mr(&args->vec, nents, rs, in __rdsv3_rdma_map() 226 cookie = rdsv3_rdma_make_cookie(mr->r_key, args->vec.addr & ~PAGEMASK); in __rdsv3_rdma_map() 245 mr, args->vec.addr, mr->r_key); in __rdsv3_rdma_map() 310 new_args.vec = args.vec; in rdsv3_get_mr_for_dest() 445 struct rds_iovec vec; in rdsv3_rdma_prepare() local [all …]
|
/titanic_50/usr/src/lib/libast/common/path/ |
H A D | pathtemp.c | 89 char** vec; member 127 tmp.dir = tmp.vec; in pathtemp() 157 if (tmp.vec) in pathtemp() 159 free(tmp.vec); in pathtemp() 160 tmp.vec = 0; in pathtemp() 169 if (tmp.vec) in pathtemp() 171 free(tmp.vec); in pathtemp() 172 tmp.vec = 0; in pathtemp() 187 if (!tmp.vec) in pathtemp() 198 if (!(tmp.vec = newof(0, char*, n, strlen(x) + 1))) in pathtemp() [all …]
|
/titanic_50/usr/src/lib/libbc/libc/gen/4.2/ |
H A D | sleep.c | 12 #define setvec(vec, a) \ argument 13 vec.sv_handler = a; vec.sv_mask = vec.sv_onstack = 0 25 struct sigvec vec, ovec; in sleep() local 49 setvec(vec, sleepx); in sleep() 50 (void) sigvec(SIGALRM, &vec, &ovec); in sleep()
|
/titanic_50/usr/src/lib/libbc/libc/gen/common/ |
H A D | usleep.c | 19 #define setvec(vec, a) \ argument 20 vec.sv_handler = a; vec.sv_mask = vec.sv_onstack = 0 37 struct sigvec vec, ovec; in usleep() local 61 setvec(vec, sleepx); in usleep() 62 (void) sigvec(SIGALRM, &vec, &ovec); in usleep()
|
/titanic_50/usr/src/uts/i86xpv/os/ |
H A D | mach_kdi.c | 68 uint_t vec; in kdi_idtr_write() local 70 for (vec = 0; vec < nidt; vec++, idt++) in kdi_idtr_write() 71 xen_idt_write(idt, vec); in kdi_idtr_write() 75 kdi_idt_write(gate_desc_t *gate, uint_t vec) in kdi_idt_write() argument 83 idt[vec] = *gate; in kdi_idt_write() 85 xen_idt_write(gate, vec); in kdi_idt_write()
|
/titanic_50/usr/src/common/bzip2/ |
H A D | huffman.c | 158 Int32 n, vec, i; in BZ2_hbAssignCodes() local 160 vec = 0; in BZ2_hbAssignCodes() 163 if (length[i] == n) { code[i] = vec; vec++; }; in BZ2_hbAssignCodes() 164 vec <<= 1; in BZ2_hbAssignCodes() 178 Int32 pp, i, j, vec; in BZ2_hbCreateDecodeTables() local 191 vec = 0; in BZ2_hbCreateDecodeTables() 194 vec += (base[i+1] - base[i]); in BZ2_hbCreateDecodeTables() 195 limit[i] = vec-1; in BZ2_hbCreateDecodeTables() 196 vec <<= 1; in BZ2_hbCreateDecodeTables()
|
/titanic_50/usr/src/lib/libbc/libc/gen/sys5/ |
H A D | sleep.c | 17 #define setvec(vec, a) \ argument 18 vec.sv_handler = a; vec.sv_mask = vec.sv_onstack = 0 39 struct sigvec vec, ovec; in sleep() local 68 setvec(vec, sleepx); in sleep() 69 (void) sigvec(SIGALRM, &vec, &ovec); in sleep()
|
H A D | sighold.c | 61 struct sigvec vec; local 67 if (sigvec(sig, (struct sigvec *)0, &vec) < 0) 69 vec.sv_handler = SIG_IGN; 70 if (sigvec(sig, &vec, (struct sigvec *)0) < 0)
|
/titanic_50/usr/src/lib/libc/port/gen/ |
H A D | ttyname.c | 624 entry_t *vec; in get_pri_dirs() local 677 vec = realloc(dir_vec, sz); in get_pri_dirs() 678 if (vec == NULL) { in get_pri_dirs() 685 dir_vec = vec; in get_pri_dirs() 697 vec->name = buf; in get_pri_dirs() 698 vec->flags = 0; in get_pri_dirs() 720 vec->flags |= MATCH_MM; in get_pri_dirs() 723 vec->flags |= MATCH_FS; in get_pri_dirs() 726 vec->flags |= MATCH_INO; in get_pri_dirs() 735 if (strncmp(vec->name, DEV, strlen(DEV)) != 0) { in get_pri_dirs() [all …]
|
/titanic_50/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsc_ncallio.c | 430 h->bufh.sb_vec = &h->vec[0]; in nsc_ncio_allocb() 438 h->vec[0].sv_len = FBA_SIZE(len); in nsc_ncio_allocb() 439 h->vec[0].sv_addr = (uchar_t *)&h->rw.rw_data[0]; in nsc_ncio_allocb() 440 h->vec[0].sv_vme = 0; in nsc_ncio_allocb() 442 h->vec[1].sv_len = 0; in nsc_ncio_allocb() 443 h->vec[1].sv_addr = 0; in nsc_ncio_allocb() 444 h->vec[1].sv_vme = 0; in nsc_ncio_allocb() 602 nsc_vec_t *vec; in nsc_rncio_copy() local 610 vec = bufp->sb_vec; in nsc_rncio_copy() 615 if (vec->sv_len == 0 || vec->sv_addr == 0) { in nsc_rncio_copy() [all …]
|
/titanic_50/usr/src/lib/libbc/libc/sys/common/ |
H A D | mincore.c | 38 mincore(caddr_t addr, int len, char *vec) in mincore() argument 47 if (_syscall(SYS_mincore, addr, len, vec) == 0) { in mincore() 50 vec[i] &= INCORE; in mincore()
|
/titanic_50/usr/src/lib/libast/common/stdio/ |
H A D | stdhdr.h | 52 Fun_f vec[2]; member 65 return ((_s_f)_v.vec[_i])a; \ 76 return ((_s_f)_v.vec[_i])a; \ 88 ((_s_f)_v.vec[_i])a; \
|
H A D | _stdfun.c | 63 if (!vp->vec[1]) in _stdfun() 70 if (bp && (vp->vec[1] = (Fun_f)dlsym(bp, vp->name))) in _stdfun() 74 if (!(vp->vec[1] = (Fun_f)dlsym(np, vp->name))) in _stdfun()
|
/titanic_50/usr/src/uts/common/xen/io/ |
H A D | xenbus_probe.c | 128 otherend_changed(struct xenbus_watch *watch, const char **vec, unsigned int len) in otherend_changed() argument 138 strncmp(dev->otherend, vec[XS_WATCH_PATH], strlen(dev->otherend))) { in otherend_changed() 140 printf("Ignoring watch at %s", vec[XS_WATCH_PATH]); in otherend_changed() 149 state, dev->otherend_watch.node, vec[XS_WATCH_PATH]); in otherend_changed()
|
/titanic_50/usr/src/lib/libsendfile/common/ |
H A D | sendfile.c | 45 _sendfilev(int sock, const struct sendfilevec *vec, int sfvcnt, size_t *xferred) in _sendfilev() argument 50 error = __systemcall(&rval, SYS_sendfilev, SENDFILEV, sock, vec, in _sendfilev() 93 _sendfilev64(int sock, const struct sendfilevec64 *vec, int sfvcnt, in _sendfilev64() argument 99 error = __systemcall(&rval, SYS_sendfilev, SENDFILEV64, sock, vec, in _sendfilev64()
|
/titanic_50/usr/src/cmd/bnu/ |
H A D | systat.c | 52 char *vec[5]; local 62 if (getargs(line, vec, 4) == 4) { 63 count = atoi(vec[1]); 64 presretry = atol(vec[3]);
|
/titanic_50/usr/src/cmd/power/ |
H A D | conf.c | 493 main(int cnt, char **vec) in main() argument 500 for (prog = *vec++; *vec && **vec == '-'; vec++) { in main() 501 if (strlen(*vec) > 2) in main() 503 switch (*(*vec + 1)) { in main() 509 if ((power_conf = *++vec) == NULL) in main()
|
/titanic_50/usr/src/uts/common/zmod/ |
H A D | crc32.c | 74 unsigned long vec)); 347 local unsigned long gf2_matrix_times(mat, vec) in gf2_matrix_times() argument 349 unsigned long vec; 354 while (vec) { 355 if (vec & 1) 357 vec >>= 1;
|