Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 1823) sorted by relevance

12345678910>>...73

/illumos-gate/usr/src/stand/lib/tcp/
H A Dtcp_sack.c59 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 Dtcp_sack.c53 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 Dhash.c66 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 Dlut.c79 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 Dpathtemp.c99 } 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 Dio.sh31 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 Dbasic.sh31 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/lib/sun_fc/common/
H A DFCSyseventBridge.cc119 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/contrib/ast/src/lib/libast/comp/
H A Dconf.sh82 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/tools/smatch/src/
H A Dsmatch_tracker.c24 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 Dsmatch_var_sym.c24 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/cmd/lp/lib/papi/
H A Dlpsched-printers.c138 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/protocmp/
H A Ddepend.c50 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 Dipmi_fru.c66 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 Dneti_stack.c348 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/lib/libadm/common/
H A Dputerror.c47 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/bhyve/sys/
H A Dtree.h86 #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/contrib/ast/lib/package/
H A Dpackage.mk605 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 Dpackage.mk605 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/libsip/common/
H A Dsip_hash.c89 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/libproc/common/
H A DPzone.c241 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/libc/port/sys/
H A Dtime_util.c45 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 Dclock.c96 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 Dprobe-snmp.c116 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/cmd/truss/
H A Dhtbl.c68 hentry_t *tmp; in destroy_hash() local
75 tmp = cur->first; in destroy_hash()
77 while (tmp != NULL) { in destroy_hash()
78 prev = tmp; in destroy_hash()
79 tmp = tmp->next; in destroy_hash()
87 if (tmp != NULL) in destroy_hash()
88 tmp->prev = NULL; in destroy_hash()
120 hentry_t *tmp; in add_fcall() local
129 tmp = cur->first; in add_fcall()
130 while (tmp != NULL) { in add_fcall()
[all …]

12345678910>>...73