/titanic_41/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 …]
|
/titanic_41/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 …]
|
/titanic_41/usr/src/cmd/fm/eversholt/common/ |
H A D | lut.c | 81 struct lut **tmp_hdl = &root, *parent = NULL, *tmp = root; in lut_add() local 83 while (tmp) { in lut_add() 85 diff = (*cmp_func)(tmp->lut_lhs, lhs); in lut_add() 87 diff = (const char *)lhs - (const char *)tmp->lut_lhs; in lut_add() 91 tmp->lut_rhs = rhs; in lut_add() 94 tmp_hdl = &(tmp->lut_left); in lut_add() 95 parent = tmp; in lut_add() 96 tmp = tmp->lut_left; in lut_add() 98 tmp_hdl = &(tmp->lut_right); in lut_add() 99 parent = tmp; in lut_add() [all …]
|
/titanic_41/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 …]
|
/titanic_41/usr/src/lib/libast/common/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 …]
|
/titanic_41/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 …]
|
H A D | HBAList.cc | 120 HBA *tmp = hbas[index]; in openHBA() local 122 tmp->validatePresent(); in openHBA() 123 return (new Handle(tmp)); in openHBA() 159 HBA *tmp = tgthbas[index]; in openTgtHBA() local 161 tmp->validatePresent(); in openTgtHBA() 162 return (new Handle(tmp)); in openTgtHBA() 182 HBA *tmp = hbas[index]; in getHBAName() local 184 tmp->validatePresent(); in getHBAName() 186 snprintf(buf, 128, "%s-%d", tmp->getName().c_str(), index); in getHBAName() 208 HBA *tmp = tgthbas[index]; in getTgtHBAName() local [all …]
|
/titanic_41/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 …]
|
/titanic_41/usr/src/lib/libadm/common/ |
H A D | puterror.c | 48 char *tmp; in puterror() local 54 tmp = calloc(MS+n+1, sizeof (char)); in puterror() 55 (void) strcpy(tmp, DEFMSG); in puterror() 56 (void) strcat(tmp, defmesg ? defmesg : INVINP); in puterror() 62 tmp = calloc(MS+n+strlen(defmesg)+2, sizeof (char)); in puterror() 63 (void) strcpy(tmp, DEFMSG); in puterror() 64 (void) strcat(tmp, defmesg); in puterror() 65 (void) strcat(tmp, "\n"); in puterror() 67 (void) strcat(tmp, error); in puterror() 70 tmp = calloc(MS+n+strlen(defmesg)+2, sizeof (char)); in puterror() [all …]
|
H A D | puthelp.c | 44 char *tmp; in puthelp() local 47 tmp = NULL; in puthelp() 55 tmp = calloc(n+strlen(defmesg)+1, sizeof (char)); in puthelp() 56 (void) strcpy(tmp, defmesg); in puthelp() 57 (void) strcat(tmp, "\n"); in puthelp() 59 (void) strcat(tmp, help); in puthelp() 60 help = tmp; in puthelp() 63 tmp = calloc(n+strlen(defmesg)+2, sizeof (char)); in puthelp() 64 (void) strcpy(tmp, help); in puthelp() 65 tmp[n-1] = '\0'; in puthelp() [all …]
|
/titanic_41/usr/src/lib/libipmi/common/ |
H A D | ipmi_fru.c | 58 char *tmp; in ipmi_fru_read() local 80 if ((tmp = malloc(sz)) == NULL) { in ipmi_fru_read() 101 free(tmp); in ipmi_fru_read() 109 free(tmp); in ipmi_fru_read() 112 (void) memcpy(tmp+offset, (char *)(resp->ic_data)+1, count); in ipmi_fru_read() 115 *buf = tmp; in ipmi_fru_read() 124 char *tmp; in ipmi_fru_parse_product() local 141 tmp = fru_area + (fru_hdr.ifh_product_info_off * 8) + 3; in ipmi_fru_parse_product() 143 (void) memcpy(&typelen, tmp, sizeof (uint8_t)); in ipmi_fru_parse_product() 145 ipmi_decode_string((typelen >> 6), len, tmp+1, buf->ifpi_manuf_name); in ipmi_fru_parse_product() [all …]
|
/titanic_41/usr/src/lib/libast/common/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 238 $sym) echo "$1" >> $tmp.v ;; 313 echo "$systeminfo" > $tmp.c [all …]
|
/titanic_41/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 …]
|
/titanic_41/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 …]
|
/titanic_41/usr/src/lib/libc/port/sys/ |
H A D | time_util.c | 42 uint32_t sec, nsec, tmp; in hrt2ts() local 44 tmp = (uint32_t)(hrt >> 30); in hrt2ts() 45 sec = tmp - (tmp >> 2); in hrt2ts() 46 sec = tmp - (sec >> 5); in hrt2ts() 47 sec = tmp + (sec >> 1); in hrt2ts() 48 sec = tmp - (sec >> 6) + 7; in hrt2ts() 49 sec = tmp - (sec >> 3); in hrt2ts() 50 sec = tmp + (sec >> 1); in hrt2ts() 51 sec = tmp + (sec >> 3); in hrt2ts() 52 sec = tmp + (sec >> 4); in hrt2ts() [all …]
|
/titanic_41/usr/src/cmd/ssh/include/ |
H A D | sys-tree.h | 85 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument 86 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \ 87 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \ 88 (head)->sph_root = tmp; \ 91 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument 92 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \ 93 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ 94 (head)->sph_root = tmp; \ 97 #define SPLAY_LINKLEFT(head, tmp, field) do { \ argument 98 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ [all …]
|
/titanic_41/usr/src/lib/libshell/common/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 …]
|
/titanic_41/usr/src/lib/libsip/common/ |
H A D | sip_hash.c | 91 sip_hash_obj_t *tmp; in sip_hash_find() local 96 tmp = hash_entry->hash_head; in sip_hash_find() 98 if (match_func(tmp->sip_obj, digest)) { in sip_hash_find() 101 return (tmp->sip_obj); in sip_hash_find() 103 tmp = tmp->next_obj; in sip_hash_find() 119 sip_hash_obj_t *tmp; in sip_walk_hash() local 124 tmp = hash_entry->hash_head; in sip_walk_hash() 126 assert(tmp->sip_obj != NULL); in sip_walk_hash() 127 func(tmp->sip_obj, arg); in sip_walk_hash() 128 tmp = tmp->next_obj; in sip_walk_hash() [all …]
|
/titanic_41/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 …]
|
/titanic_41/usr/src/lib/libast/common/port/ |
H A D | astlicense.c | 399 Buffer_t tmp; in astlicense() local 402 tmp.end = (tmp.buf = tmp.nxt = tmpbuf) + sizeof(tmpbuf); in astlicense() 677 copy(&tmp, "This software is part of the ", -1); in astlicense() 678 expand(¬ice, &tmp, ¬ice.item[PACKAGE]); in astlicense() 679 copy(&tmp, " package", -1); in astlicense() 680 comment(¬ice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense() 684 copyright(¬ice, &tmp); in astlicense() 685 comment(¬ice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense() 691 copy(&tmp, notice.item[PACKAGE].data ? "and" : "This software", -1); in astlicense() 692 copy(&tmp, " is licensed under the", -1); in astlicense() [all …]
|
/titanic_41/usr/src/cmd/hal/probing/network-printer/ |
H A D | probe-snmp.c | 119 char *tmp = NULL; in snmp_brother_printer_info() local 126 tmp = snmp_get_string(hostname, community, in snmp_brother_printer_info() 128 if (tmp != NULL) { in snmp_brother_printer_info() 129 rc = ieee1284_devid_to_printer_info(tmp, manufacturer, model, in snmp_brother_printer_info() 131 free(tmp); in snmp_brother_printer_info() 147 char *tmp = NULL; in snmp_ricoh_printer_info() local 154 tmp = snmp_get_string(hostname, community, in snmp_ricoh_printer_info() 156 if (tmp != NULL) { in snmp_ricoh_printer_info() 157 rc = ieee1284_devid_to_printer_info(tmp, manufacturer, model, in snmp_ricoh_printer_info() 159 free(tmp); in snmp_ricoh_printer_info() [all …]
|
/titanic_41/usr/src/cmd/truss/ |
H A D | htbl.c | 70 hentry_t *tmp; in destroy_hash() local 77 tmp = cur->first; in destroy_hash() 79 while (tmp != NULL) { in destroy_hash() 80 prev = tmp; in destroy_hash() 81 tmp = tmp->next; in destroy_hash() 89 if (tmp != NULL) in destroy_hash() 90 tmp->prev = NULL; in destroy_hash() 122 hentry_t *tmp; in add_fcall() local 131 tmp = cur->first; in add_fcall() 132 while (tmp != NULL) { in add_fcall() [all …]
|
/titanic_41/usr/src/lib/libuuid/common/ |
H A D | uuid.c | 249 FILE *tmp; in map_state() local 258 if ((tmp = tmpfile()) == NULL) in map_state() 261 fd = fileno(tmp); in map_state() 321 uint_t tmp; in struct_to_string() local 324 tmp = uu->time_low; in struct_to_string() 325 out[3] = (uchar_t)tmp; in struct_to_string() 326 tmp >>= 8; in struct_to_string() 327 out[2] = (uchar_t)tmp; in struct_to_string() 328 tmp >>= 8; in struct_to_string() 329 out[1] = (uchar_t)tmp; in struct_to_string() [all …]
|
/titanic_41/usr/src/uts/common/klm/ |
H A D | Makefile | 35 $(RPCGEN) $(RPCGENFLAGS) -l -o $@.tmp $(NLM_PROT_X) 36 sed -f nlm_prot_clnt.sed < $@.tmp > $@ 37 $(RM) -f $@.tmp 40 $(RPCGEN) $(RPCGENFLAGS) -c -o $@.tmp $(NLM_PROT_X) 41 sed -e $(SED_INCL) < $@.tmp > $@ 42 $(RM) -f $@.tmp 45 $(RPCGEN) $(RPCGENFLAGS) -l -o $@.tmp $(SM_INTER_X) 46 sed -f sm_inter_clnt.sed < $@.tmp > $@ 47 $(RM) -f $@.tmp 50 $(RPCGEN) $(RPCGENFLAGS) -c -o $@.tmp $(SM_INTER_X) [all …]
|