/illumos-gate/usr/src/stand/lib/tcp/ |
H A D | tcp_sack.c | 59 sack_blk_t tmp[MAX_SACK_BLK - 1]; in tcp_sack_insert() local 90 tmp[j].begin = head[i].begin; in tcp_sack_insert() 91 tmp[j].end = head[i].end; in tcp_sack_insert() 123 head[i+1].begin = tmp[i].begin; in tcp_sack_insert() 124 head[i+1].end = tmp[i].end; in tcp_sack_insert() 141 sack_blk_t tmp[MAX_SACK_BLK]; in tcp_sack_remove() local 164 tmp[j].begin = end; in tcp_sack_remove() 165 tmp[j].end = head[i].end; in tcp_sack_remove() 168 tmp[j].begin = head[i].begin; in tcp_sack_remove() 169 tmp[j].end = head[i].end; in tcp_sack_remove() [all …]
|
/illumos-gate/usr/src/uts/common/inet/tcp/ |
H A D | tcp_sack.c | 53 sack_blk_t tmp[MAX_SACK_BLK - 1]; in tcp_sack_insert() local 84 tmp[j].begin = head[i].begin; in tcp_sack_insert() 85 tmp[j].end = head[i].end; in tcp_sack_insert() 117 head[i+1].begin = tmp[i].begin; in tcp_sack_insert() 118 head[i+1].end = tmp[i].end; in tcp_sack_insert() 135 sack_blk_t tmp[MAX_SACK_BLK]; in tcp_sack_remove() local 158 tmp[j].begin = end; in tcp_sack_remove() 159 tmp[j].end = head[i].end; in tcp_sack_remove() 162 tmp[j].begin = head[i].begin; in tcp_sack_remove() 163 tmp[j].end = head[i].end; in tcp_sack_remove() [all …]
|
/illumos-gate/usr/src/cmd/sgs/link_audit/common/ |
H A D | hash.c | 66 hash_entry *tmp, *new; in get_hash() local 69 tmp = tbl->table[bucket = hash_string(key, tbl->size)]; in get_hash() 71 tmp = tbl->table[bucket = labs((long)key) % tbl->size]; in get_hash() 75 while (tmp != NULL) { in get_hash() 76 if (strcmp(tmp->key, key) == 0) { in get_hash() 77 return (&tmp->data); in get_hash() 79 tmp = tmp->next_entry; in get_hash() 82 while (tmp != NULL) { in get_hash() 83 if (tmp->key == key) { in get_hash() 84 return (&tmp->data); in get_hash() [all …]
|
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | lut.c | 79 struct lut **tmp_hdl = &root, *parent = NULL, *tmp = root; in lut_add() local 81 while (tmp) { in lut_add() 83 diff = (*cmp_func)(tmp->lut_lhs, lhs); in lut_add() 85 diff = (const char *)lhs - (const char *)tmp->lut_lhs; in lut_add() 89 tmp->lut_rhs = rhs; in lut_add() 92 tmp_hdl = &(tmp->lut_left); in lut_add() 93 parent = tmp; in lut_add() 94 tmp = tmp->lut_left; in lut_add() 96 tmp_hdl = &(tmp->lut_right); in lut_add() 97 parent = tmp; in lut_add() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/ |
H A D | pathtemp.c | 99 } tmp = { S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH }; variable 125 tmp.manual = 1; in pathtemp() 126 if (tmp.dir && !*tmp.dir++) in pathtemp() 127 tmp.dir = tmp.vec; in pathtemp() 130 tmp.manual = streq(dir, "manual"); in pathtemp() 135 if (tmp.pfx) in pathtemp() 136 free(tmp.pfx); in pathtemp() 137 tmp.pfx = dir ? strdup(dir) : (char*)0; in pathtemp() 142 tmp.mode = S_IRUSR|S_IWUSR; in pathtemp() 147 tmp.mode = S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH; in pathtemp() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/ |
H A D | io.sh | 31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; } 32 trap "cd /; rm -rf $tmp" EXIT 43 print 'read -r a; print -r -u$1 -- "$a"' > $tmp/mycat 44 chmod 755 $tmp/mycat 47 eval "a=\$(print foo | $tmp/mycat" $i $i'>&1 > /dev/null |cat)' 2> /dev/null 53 cd $tmp || { err_exit "cd $tmp failed"; exit ; } 176 cat > $tmp/1 <<- ++EOF++ 177 script=$tmp/2 192 chmod +x $tmp/1 193 [[ $($SHELL $tmp/1) == ok ]] || err_exit "parent i/o causes child script to fail" [all …]
|
H A D | basic.sh | 31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; } 32 trap "cd /; rm -rf $tmp" EXIT 62 cd $tmp || { err_exit "cd $tmp failed"; exit 1; } 118 cat > $tmp/script <<- ! 122 chmod 755 $tmp/script 123 if [[ $($tmp/script) != "$tmp/script" ]] 136 cd /tmp 137 cd ../../tmp || err_exit "cd ../../tmp failed" 138 if [[ $PWD != /tmp ]] 144 ) | cat > $tmp/foobar & [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | conf.sh | 82 tmp=conf.tmp 111 rm -f $tmp.* 113 '') trap "code=\$?; rm -f $tmp.*; exit \$code" 0 1 2 ;; 118 cat > $tmp.c <<! 130 if $cc -o $tmp.exe $tmp.c >/dev/null 2>&1 && ./$tmp.exe 137 cat > $tmp.c <<! 152 if $cc -o $tmp.exe $tmp.c >/dev/null 2>&1 153 then if ./$tmp.exe 160 cat > $tmp.c <<! 171 if $cc -o $tmp.exe $tmp.c >/dev/null 2>&1 [all …]
|
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | FCSyseventBridge.cc | 119 for (Iter tmp = adapterAddEventListeners.begin(); in removeListener() local 120 tmp != adapterAddEventListeners.end(); tmp++) { in removeListener() 121 if (*tmp == listener) { in removeListener() 122 adapterAddEventListeners.erase(tmp); in removeListener() 138 for (Iter tmp = adapterEventListeners.begin(); in removeListener() local 139 tmp != adapterEventListeners.end(); tmp++) { in removeListener() 140 if (*tmp == listener) { in removeListener() 141 adapterEventListeners.erase(tmp); in removeListener() 157 for (Iter tmp = adapterPortEventListeners.begin(); in removeListener() local 158 tmp != adapterPortEventListeners.end(); tmp++) { in removeListener() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/papi/ |
H A D | lpsched-printers.c | 138 PRINTER *tmp; in lpsched_printer_configuration_to_attributes() local 148 if ((tmp = getprinter(dest)) == NULL) { in lpsched_printer_configuration_to_attributes() 156 "printer-name", tmp->name); in lpsched_printer_configuration_to_attributes() 157 if (tmp->name != NULL) { in lpsched_printer_configuration_to_attributes() 161 tmp->name); in lpsched_printer_configuration_to_attributes() 167 if ((tmp->banner & BAN_OPTIONAL) == BAN_OPTIONAL) in lpsched_printer_configuration_to_attributes() 170 else if (tmp->banner & BAN_NEVER) in lpsched_printer_configuration_to_attributes() 173 else if (tmp->banner & BAN_ALWAYS) in lpsched_printer_configuration_to_attributes() 178 if (tmp->input_types != NULL) { in lpsched_printer_configuration_to_attributes() 181 for (i = 0; tmp->input_types[i] != NULL; i++) in lpsched_printer_configuration_to_attributes() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_tracker.c | 24 struct tracker *tmp; in alloc_tracker() local 26 tmp = __alloc_tracker(0); in alloc_tracker() 27 tmp->name = alloc_string(name); in alloc_tracker() 28 tmp->owner = owner; in alloc_tracker() 29 tmp->sym = sym; in alloc_tracker() 30 return tmp; in alloc_tracker() 36 struct tracker *tmp; in add_tracker() local 40 tmp = alloc_tracker(owner, name, sym); in add_tracker() 41 add_ptr_list(list, tmp); in add_tracker() 66 struct tracker *tmp; in del_tracker() local [all …]
|
H A D | smatch_var_sym.c | 24 struct var_sym *tmp; in alloc_var_sym() local 26 tmp = __alloc_var_sym(0); in alloc_var_sym() 27 tmp->var = alloc_string(var); in alloc_var_sym() 28 tmp->sym = sym; in alloc_var_sym() 29 return tmp; in alloc_var_sym() 108 struct var_sym *tmp, *new; in add_var_sym() local 114 FOR_EACH_PTR(*list, tmp) { in add_var_sym() 115 if (cmp_var_sym(tmp, new) < 0) in add_var_sym() 117 else if (cmp_var_sym(tmp, new) == 0) { in add_var_sym() 120 INSERT_CURRENT(new, tmp); in add_var_sym() [all …]
|
/illumos-gate/usr/src/tools/protocmp/ |
H A D | depend.c | 50 pkg_list *tmp; in processed_package() local 53 for (tmp = packages[bucket]; tmp != NULL; tmp = tmp->next) { in processed_package() 54 if (strcmp(tmp->pkg_name, pkgname) == 0) in processed_package() 64 pkg_list *tmp; in mark_processed() local 67 tmp = malloc(sizeof (pkg_list)); in mark_processed() 68 bzero(tmp, sizeof (pkg_list)); in mark_processed() 69 (void) strcpy(tmp->pkg_name, pkgname); in mark_processed() 70 tmp->next = packages[bucket]; in mark_processed() 71 packages[bucket] = tmp; in mark_processed() 77 pkg_list *tmp; in add_dependency() local [all …]
|
/illumos-gate/usr/src/lib/libipmi/common/ |
H A D | ipmi_fru.c | 66 char *tmp; in ipmi_fru_read() local 88 if ((tmp = malloc(sz)) == NULL) { in ipmi_fru_read() 127 free(tmp); in ipmi_fru_read() 135 free(tmp); in ipmi_fru_read() 138 (void) memcpy(tmp+offset, (char *)(resp->ic_data)+1, count); in ipmi_fru_read() 141 *buf = tmp; in ipmi_fru_read() 150 char *tmp; in ipmi_fru_parse_product() local 167 tmp = fru_area + (fru_hdr.ifh_product_info_off * 8) + 3; in ipmi_fru_parse_product() 169 (void) memcpy(&typelen, tmp, sizeof (uint8_t)); in ipmi_fru_parse_product() 171 ipmi_decode_string((typelen >> 6), len, tmp+1, buf->ifpi_manuf_name); in ipmi_fru_parse_product() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | neti_stack.c | 348 net_instance_int_t *tmp; in net_instance_register() local 361 LIST_FOREACH(tmp, &neti_instance_list, nini_next) { in net_instance_register() 362 if (strcmp(nin->nin_name, tmp->nini_instance->nin_name) == 0) { in net_instance_register() 392 tmp = net_instance_int_create(nin, parent); in net_instance_register() 393 ASSERT(tmp != NULL); in net_instance_register() 394 LIST_INSERT_HEAD(&nts->nts_instances, tmp, nini_next); in net_instance_register() 416 net_instance_int_t *tmp; in net_instance_unregister() local 421 LIST_FOREACH(tmp, &neti_instance_list, nini_next) { in net_instance_unregister() 422 if (strcmp(tmp->nini_instance->nin_name, nin->nin_name) == 0) { in net_instance_unregister() 423 LIST_REMOVE(tmp, nini_next); in net_instance_unregister() [all …]
|
/illumos-gate/usr/src/contrib/bhyve/sys/ |
H A D | tree.h | 86 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument 87 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \ 88 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \ 89 (head)->sph_root = tmp; \ 92 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument 93 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \ 94 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ 95 (head)->sph_root = tmp; \ 98 #define SPLAY_LINKLEFT(head, tmp, field) do { \ argument 99 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ [all …]
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | puterror.c | 47 char *tmp; in puterror() local 53 tmp = calloc(MS+n+1, sizeof (char)); in puterror() 54 (void) strcpy(tmp, DEFMSG); in puterror() 55 (void) strcat(tmp, defmesg ? defmesg : INVINP); in puterror() 61 tmp = calloc(MS+n+strlen(defmesg)+2, sizeof (char)); in puterror() 62 (void) strcpy(tmp, DEFMSG); in puterror() 63 (void) strcat(tmp, defmesg); in puterror() 64 (void) strcat(tmp, "\n"); in puterror() 66 (void) strcat(tmp, error); in puterror() 69 tmp = calloc(MS+n+strlen(defmesg)+2, sizeof (char)); in puterror() [all …]
|
/illumos-gate/usr/src/contrib/ast/lib/package/ |
H A D | package.mk | 605 chmod +x $tmp/configure 606 echo ";;;$tmp/configure;configure" 607 cat > $tmp/Makefile0 <<'!' 617 echo ";;;$tmp/Makefile0;Makefile" 618 cat > $tmp/CYGWIN-README <<'!' 656 echo ";;;$tmp/CYGWIN-README;CYGWIN-PATCHES/README" 665 cat > $tmp/Makefile <<'!' 668 echo ";;;$tmp/Makefile;src/Makefile" 669 echo ";;;$tmp/Makefile;src/cmd/Makefile" 670 echo ";;;$tmp/Makefile;src/lib/Makefile" [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/ |
H A D | package.mk | 605 chmod +x $tmp/configure 606 echo ";;;$tmp/configure;configure" 607 cat > $tmp/Makefile0 <<'!' 617 echo ";;;$tmp/Makefile0;Makefile" 618 cat > $tmp/CYGWIN-README <<'!' 656 echo ";;;$tmp/CYGWIN-README;CYGWIN-PATCHES/README" 665 cat > $tmp/Makefile <<'!' 668 echo ";;;$tmp/Makefile;src/Makefile" 669 echo ";;;$tmp/Makefile;src/cmd/Makefile" 670 echo ";;;$tmp/Makefile;src/lib/Makefile" [all …]
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pzone.c | 241 char zname[ZONENAME_MAX], zpath[PATH_MAX], tmp[PATH_MAX]; in Pzoneroot() local 273 if ((rv = resolvepath(zpath, tmp, sizeof (tmp) - 1)) < 0) { in Pzoneroot() 284 tmp[rv] = '\0'; in Pzoneroot() 285 (void) strlcpy(zpath, tmp, sizeof (zpath)); in Pzoneroot() 313 char tmp[PATH_MAX + 1]; in Plofspath() local 326 (void) strlcpy(tmp, path, sizeof (tmp) - 1); in Plofspath() 332 if ((rv = resolvepath(tmp, tmp, sizeof (tmp) - 1)) >= 0) in Plofspath() 333 tmp[rv] = '\0'; in Plofspath() 376 p = &tmp[strlen(tmp)]; in Plofspath() 379 if ((special = lookup_lofs_mount_point(tmp)) != NULL) { in Plofspath() [all …]
|
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_hash.c | 89 sip_hash_obj_t *tmp; in sip_hash_find() local 94 tmp = hash_entry->hash_head; in sip_hash_find() 96 if (match_func(tmp->sip_obj, digest)) { in sip_hash_find() 99 return (tmp->sip_obj); in sip_hash_find() 101 tmp = tmp->next_obj; in sip_hash_find() 117 sip_hash_obj_t *tmp; in sip_walk_hash() local 122 tmp = hash_entry->hash_head; in sip_walk_hash() 124 assert(tmp->sip_obj != NULL); in sip_walk_hash() 125 func(tmp->sip_obj, arg); in sip_walk_hash() 126 tmp = tmp->next_obj; in sip_walk_hash() [all …]
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | time_util.c | 45 uint32_t sec, nsec, tmp; in hrt2ts() 47 tmp = (uint32_t)(hrt >> 30); in hrt2ts() 48 sec = tmp - (tmp >> 2); in hrt2ts() 49 sec = tmp - (sec >> 5); in hrt2ts() 50 sec = tmp + (sec >> 1); in hrt2ts() 51 sec = tmp - (sec >> 6) + 7; in hrt2ts() 52 sec = tmp - (sec >> 3); in hrt2ts() 53 sec = tmp + (sec >> 1); in hrt2ts() 54 sec = tmp + (sec >> 3); in hrt2ts() 55 sec = tmp + (sec >> 4); in hrt2ts() [all …]
|
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | clock.c | 96 uint32_t sec, nsec, tmp; in hrt2ts() local 98 tmp = (uint32_t)(hrt >> 30); in hrt2ts() 99 sec = tmp - (tmp >> 2); in hrt2ts() 100 sec = tmp - (sec >> 5); in hrt2ts() 101 sec = tmp + (sec >> 1); in hrt2ts() 102 sec = tmp - (sec >> 6) + 7; in hrt2ts() 103 sec = tmp - (sec >> 3); in hrt2ts() 104 sec = tmp + (sec >> 1); in hrt2ts() 105 sec = tmp + (sec >> 3); in hrt2ts() 106 sec = tmp + (sec >> 4); in hrt2ts() [all …]
|
/illumos-gate/usr/src/cmd/hal/probing/network-printer/ |
H A D | probe-snmp.c | 116 char *tmp = NULL; in snmp_brother_printer_info() local 123 tmp = snmp_get_string(hostname, community, in snmp_brother_printer_info() 125 if (tmp != NULL) { in snmp_brother_printer_info() 126 rc = ieee1284_devid_to_printer_info(tmp, manufacturer, model, in snmp_brother_printer_info() 128 free(tmp); in snmp_brother_printer_info() 144 char *tmp = NULL; in snmp_ricoh_printer_info() local 151 tmp = snmp_get_string(hostname, community, in snmp_ricoh_printer_info() 153 if (tmp != NULL) { in snmp_ricoh_printer_info() 154 rc = ieee1284_devid_to_printer_info(tmp, manufacturer, model, in snmp_ricoh_printer_info() 156 free(tmp); in snmp_ricoh_printer_info() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/ |
H A D | astlicense.c | 522 Buffer_t tmp; in astlicense() local 525 tmp.end = (tmp.buf = tmp.nxt = tmpbuf) + sizeof(tmpbuf); in astlicense() 811 copy(&tmp, "This software is part of the ", -1); in astlicense() 812 expand(¬ice, &tmp, ¬ice.item[PACKAGE]); in astlicense() 813 copy(&tmp, " package", -1); in astlicense() 814 comment(¬ice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense() 818 copyright(¬ice, &tmp); in astlicense() 819 comment(¬ice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense() 825 copy(&tmp, notice.item[PACKAGE].data ? "and" : "This software", -1); in astlicense() 826 copy(&tmp, " is licensed under the", -1); in astlicense() [all …]
|