| /onnv-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 …]
|
| /onnv-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 …]
|
| /onnv-gate/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 …]
|
| /onnv-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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/ |
| H A D | termcap.pl | 119 local($code,$tmp) = @_; 120 local(@tmp); 121 @tmp = ($tmp,$code); 128 $result .= sprintf("%d",shift(@tmp)); 131 $tmp = shift(@tmp); 132 if ($tmp == 0 || $tmp == 4 || $tmp == 10) { 134 ++$tmp, $after .= $TC{'up'} if $TC{'up'}; 137 ++$tmp, $after .= $TC{'bc'}; 140 $result .= sprintf("%c",$tmp); 144 $result .= sprintf("%c",shift(@tmp)+ord($string)); [all …]
|
| H A D | validate.pl | 65 $tmp = $2; 66 $tmp eq 'r' && ($mess = "$file is not readable by uid $>."); 67 $tmp eq 'w' && ($mess = "$file is not writable by uid $>."); 68 $tmp eq 'x' && ($mess = "$file is not executable by uid $>."); 69 $tmp eq 'o' && ($mess = "$file is not owned by uid $>."); 70 $tmp eq 'R' && ($mess = "$file is not readable by you."); 71 $tmp eq 'W' && ($mess = "$file is not writable by you."); 72 $tmp eq 'X' && ($mess = "$file is not executable by you."); 73 $tmp eq 'O' && ($mess = "$file is not owned by you."); 74 $tmp eq 'e' && ($mess = "$file does not exist."); [all …]
|
| /onnv-gate/usr/src/lib/sun_fc/common/ |
| H A D | FCSyseventBridge.cc | 120 for (Iter tmp = adapterAddEventListeners.begin(); in removeListener() local 121 tmp != adapterAddEventListeners.end(); tmp++) { in removeListener() 122 if (*tmp == listener) { in removeListener() 123 adapterAddEventListeners.erase(tmp); in removeListener() 139 for (Iter tmp = adapterEventListeners.begin(); in removeListener() local 140 tmp != adapterEventListeners.end(); tmp++) { in removeListener() 141 if (*tmp == listener) { in removeListener() 142 adapterEventListeners.erase(tmp); in removeListener() 158 for (Iter tmp = adapterPortEventListeners.begin(); in removeListener() local 159 tmp != adapterPortEventListeners.end(); tmp++) { in removeListener() [all …]
|
| /onnv-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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/usr/src/lib/libproc/common/ |
| H A D | Pzone.c | 253 char zname[ZONENAME_MAX], zpath[PATH_MAX], tmp[PATH_MAX]; in Pzoneroot() local 285 if ((rv = resolvepath(zpath, tmp, sizeof (tmp) - 1)) < 0) { in Pzoneroot() 296 tmp[rv] = '\0'; in Pzoneroot() 297 (void) strlcpy(zpath, tmp, sizeof (zpath)); in Pzoneroot() 325 char tmp[PATH_MAX + 1]; in Plofspath() local 338 (void) strlcpy(tmp, path, sizeof (tmp) - 1); in Plofspath() 344 if ((rv = resolvepath(tmp, tmp, sizeof (tmp) - 1)) >= 0) in Plofspath() 345 tmp[rv] = '\0'; in Plofspath() 388 p = &tmp[strlen(tmp)]; in Plofspath() 391 if ((special = lookup_lofs_mount_point(tmp)) != NULL) { in Plofspath() [all …]
|
| /onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/in.ftpd/ |
| H A D | getpwnam.c | 32 char *tmp,*tmp2; in fgetpwent() local 39 tmp=strdup(entry); in fgetpwent() 40 if(strchr(tmp,':')) { in fgetpwent() 41 *strchr(tmp,':')=0; in fgetpwent() 42 p->pw_name=tmp; in fgetpwent() 44 free(tmp); free(entry); free(p); return NULL; in fgetpwent() 47 tmp=strdup(tmp2); in fgetpwent() 48 if(strchr(tmp,':')) { in fgetpwent() 49 *strchr(tmp,':')=0; in fgetpwent() 50 p->pw_passwd=tmp; in fgetpwent() [all …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/usr/src/cmd/cmd-inet/usr.sadm/dhcpmgr/com/sun/dhcpmgr/cli/tests/ |
| H A D | utilities.san | 132 tmp=${1#*.} 133 NN02=${tmp%%.*} 134 tmp=${tmp#*.} 135 NN03=${tmp%%.*} 136 tmp=${tmp#*.} 137 NN04=${tmp%%.*} 192 tmp=${1#*.} 194 tmp=${tmp#*.} 196 tmp=${tmp#*.} 200 tmp=${2#*.} [all …]
|