Home
last modified time | relevance | path

Searched refs:env (Results 1 – 25 of 297) sorted by relevance

12345678910>>...12

/illumos-gate/usr/src/lib/efcode/engine/
H A Dprint.c53 env->picturebufpos = env->picturebuf + env->picturebuflen - 1; in pic_start()
62 push_string(env, env->picturebufpos, strlen(env->picturebufpos)); in pic_ustop()
86 pic_hold(env); in pic_sign()
148 type(env); in do_dot_r()
159 type(env); in do_udot_r()
167 do_dot_r(env); in do_dot()
178 do_dot(env); in do_dot_d()
190 do_dot(env); in do_dot_x()
230 push_string(env, env->picturebufpos, strlen(env->picturebufpos)); in pic_dstop()
240 ASSERT(env); in _init()
[all …]
H A Dforth.c147 nip(env); in divide()
155 drop(env); in mod()
485 env->order[++env->order_depth] = d; in do_also()
487 env->order_depth, CONTEXT, env->current); in do_also()
499 env->order_depth, CONTEXT, env->current); in do_previous()
1305 if (p < 0 || p >= (env->ds - env->ds0)) in pick()
1318 if (r <= 0 || r >= (env->ds - env->ds0)) in roll()
1732 if ((env->level == 0) && (env->state & 2)) { in temporary_execute()
2067 env->order_depth, CONTEXT, env->current); in do_definitions()
2149 env->order_depth, CONTEXT, env->current); in does_vocabulary()
[all …]
H A Dfcode.c45 env->fcode_ptr += env->fcode_incr; in next_bytecode()
91 LINK_TO_ACF(env->lastlink), name, env->current); in expose_acf()
168 for (sp = env->ds; sp >= env->ds0; sp--) { in branch_common()
305 add_debug_acf(env, LINK_TO_ACF(env->lastlink)); in header()
350 token_common(env, 1, env->fcode_debug); in named_token()
523 env->last_fcode_ptr = env->fcode_ptr; in byte_load()
592 env->table[env->last_token].flags = 0; in bcolon()
602 env->table[env->last_token].apf = (acf_t)HERE; in bcreate()
621 env->table[env->last_token].apf = (acf_t)HERE; in bvalue()
630 env->table[env->last_token].apf = (acf_t)HERE; in bvariable()
[all …]
H A Dpackage.c114 do_also(env); in do_push_package()
118 get_path(env, d), env->order_depth, CONTEXT, env->current); in do_push_package()
163 " %s%d/%p/%p\n", get_path(env, d), env->order_depth, in deactivate_device()
172 do_also(env); in root_node()
173 activate_device(env, env->root_node); in root_node()
257 lcomma(env); in create_internal_value()
403 two_dup(env); in begin_package()
410 rot(env); in begin_package()
721 push_a_string(env, get_path(env, env->current_device)); in pwd_dollar()
731 get_path(env, env->current_device)); in pwd()
[all …]
H A Dproperties.c38 property(env); in create_prop()
45 encode_int(env); in create_int_prop()
143 two_drop(env); in property()
270 two_drop(env); in delete_property()
324 rot(env); in encode_phys()
480 property(env); in make_special_property()
544 REVERT_PHANDLE(env, d, env->current_device); in get_property()
649 n = get_num_addr_cells(env, env->current_device); in print_imap()
678 pcells = get_num_addr_cells(env, env->current_device); in print_ranges()
680 pcells += get_num_size_cells(env, env->current_device); in print_ranges()
[all …]
H A Dinteractive.c44 parse_word(env); in parse_a_string()
114 over(env); in field()
117 add(env); in field()
129 if (env->interactive) env->interactive--; in do_resume()
160 env->input->buffer = MALLOC(env->input->maxlen); in do_interact()
161 env->input->scanptr = env->input->buffer; in do_interact()
205 env->input->scanptr = strcpy(env->input->buffer, line); in do_interact()
211 env->input->scanptr = fgets(env->input->buffer, in do_interact()
294 do_tick(env); in action_one()
386 load(env); in fload()
[all …]
H A Dactions.c146 fetch(env); in do_defer()
147 execute(env); in do_defer()
189 execute(env); in run_action()
221 env->action_ptr[env->action_count] = (token_t)HERE; in action_colon()
224 env->state |= 1; in action_colon()
260 if (env->state) { in use_actions()
263 install_actions(env, env->action_ptr); in use_actions()
289 actions(env); in define_actions()
295 env->state |= 8; in define_actions()
296 semi(env); in define_actions()
[all …]
H A Dprims64.c55 d = pop_xforth(env); in peek_xforth()
56 push_xforth(env, d); in peek_xforth()
252 cfetch(env); in unaligned_xfetch()
254 bxjoin(env); in unaligned_xfetch()
255 xbflip(env); in unaligned_xfetch()
266 xbsplit(env); in unaligned_xstore()
269 cstore(env); in unaligned_xstore()
289 xbflip(env); in xbflips()
348 xlflip(env); in xlflips()
408 xwflip(env); in xwflips()
[all …]
H A Dinterface.c170 byte_load(env); in run_fcode()
174 fevaluate(env); in run_fcode()
185 load_file(env); in run_fcode_from_file()
231 env->here = src->base - (uchar_t *)src + env->base; in clone_environment()
236 env->ds = src->ds - src->ds0 + env->ds0; in clone_environment()
240 env->rs = src->rs - src->rs0 + env->rs0; in clone_environment()
251 return (env); in clone_environment()
259 FREE(env->ds0); in destroy_environment()
260 FREE(env->rs0); in destroy_environment()
262 FREE(env->base); in destroy_environment()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/
H A Dregcomp.c809 …if (env->type == KRE && *(env->cursor + env->token.len) == '-' && *(env->cursor + env->token.len +… in magic()
1006env->type == BRE && (*(env->cursor + 1) == 0 || *(env->cursor + 1) == env->delimiter || *(env->cur… in token()
1204env->cursor == 0 || *(env->cursor + 1) == 0 || *env->cursor == env->terminator || *(env->cursor + … in bra()
1387 …if (*env->cursor == env->terminator || *env->cursor == env->delimiter && (env->flags & REG_ESCAPE)) in bra()
1685 …if (*env->cursor == env->terminator || *env->cursor == env->delimiter && (env->flags & REG_ESCAPE)) in bra()
2056 beg = env->pattern == env->cursor - env->token.len; in grp()
2733env->error = (*env->cursor == 0 || *env->cursor == env->delimiter || *env->cursor == env->terminat… in seq()
2861 if (e && *env->cursor != 0 && *env->cursor != env->delimiter && *env->cursor != env->terminator) in seq()
3375 … (!(env.flags & REG_FIRST) && (env.stats.a || env.stats.c > 1 && env.stats.c != env.stats.s || env in regcomp()
3377 if (p->env->hard || env.stats.c || env.stats.i) in regcomp()
[all …]
H A Dregnexec.c444env->best[0].rm_so, env->best[0].rm_eo, env->best[1].rm_so, env->best[1].rm_eo, env->best[2].rm_so… in parserep()
1040env->best[0].rm_so, env->best[0].rm_eo, env->best[1].rm_so, env->best[1].rm_eo, env->best[2].rm_so… in parse()
1071env->best[0].rm_so, env->best[0].rm_eo, env->best[1].rm_so, env->best[1].rm_eo, env->best[2].rm_so… in parse()
1859 if (!p || !(env = p->env)) in regnexec()
1870 env->end = env->beg + len; in regnexec()
1875 if (env->stack = env->hard || !(env->flags & REG_NOSUB) && nmatch) in regnexec()
1885 env->pos->cur = env->bestpos->cur = 0; in regnexec()
1886 env->best = &env->match[n + 1]; in regnexec()
2024 if (p && (env = p->env)) in regfree()
2036 drop(env->disc, env->rex); in regfree()
[all …]
/illumos-gate/usr/src/cmd/pools/poold/libjkstat/
H A Djkstat.c77 if (!(byteArray = (*env)->NewByteArray(env, 9))) in makeUnsignedInt64()
176 (*env)->Throw(env, (*env)->NewObject(env, e, in Java_com_sun_solaris_service_kstat_Kstat_read()
177 (*env)->GetStaticMethodID(env, e, "<init>", in Java_com_sun_solaris_service_kstat_Kstat_read()
213 (*env)->ReleaseStringUTFChars(env, nameObj, name); in Java_com_sun_solaris_service_kstat_KstatCtl_lookup()
215 (*env)->ReleaseStringUTFChars(env, moduleObj, module); in Java_com_sun_solaris_service_kstat_KstatCtl_lookup()
245 if (!(exceptionClass = (*env)->FindClass(env, in Java_com_sun_solaris_service_kstat_Kstat_getValue()
247 (*env)->ReleaseStringUTFChars(env, nameObj, name); in Java_com_sun_solaris_service_kstat_Kstat_getValue()
273 valueObj = (*env)->NewStringUTF(env, in Java_com_sun_solaris_service_kstat_Kstat_getValue()
290 (*env)->ReleaseStringUTFChars(env, nameObj, name); in Java_com_sun_solaris_service_kstat_Kstat_getValue()
294 (*env)->ReleaseStringUTFChars(env, nameObj, name); in Java_com_sun_solaris_service_kstat_Kstat_getValue()
[all …]
/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/
H A DDoPrinterNS.c86 jstring empty = (*env)->NewStringUTF(env, ""); in Java_com_sun_admin_pm_server_DoPrinterNS_dorexec()
87 glob_jstdout = (*env)->NewGlobalRef(env, empty); in Java_com_sun_admin_pm_server_DoPrinterNS_dorexec()
88 glob_jstderr = (*env)->NewGlobalRef(env, empty); in Java_com_sun_admin_pm_server_DoPrinterNS_dorexec()
90 host = (*env)->GetStringUTFChars(env, jhost, 0); in Java_com_sun_admin_pm_server_DoPrinterNS_dorexec()
93 cmd = (*env)->GetStringUTFChars(env, jcmd, 0); in Java_com_sun_admin_pm_server_DoPrinterNS_dorexec()
131 jerrstr = (*env)->NewStringUTF(env, ""); in set_stderr()
133 (*env)->DeleteGlobalRef(env, glob_jstderr); in set_stderr()
136 jerrstr = (*env)->NewStringUTF(env, errbuf); in set_stderr()
152 joutstr = (*env)->NewStringUTF(env, ""); in set_stdout()
154 (*env)->DeleteGlobalRef(env, glob_jstdout); in set_stdout()
[all …]
/illumos-gate/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_util.c105 env, length, (*env)->FindClass(env, class), NULL); in zjni_Collection_to_array()
125 (*env)->GetMethodID(env, object->class, "toArray", in new_Collection()
209 class = (*env)->FindClass(env, class_name); in zjni_int_to_enum()
227 jstring utf = (*env)->NewStringUTF(env, str); in zjni_str_to_long()
259 jstring utf = (*env)->NewStringUTF(env, str); in zjni_str_to_date()
266 if ((*env)->ExceptionOccurred(env) == NULL) { in zjni_str_to_date()
268 jclass class_Date = (*env)->FindClass(env, in zjni_str_to_date()
291 (*env)->NewObjectArray(env, n, class_String, NULL); in zjni_c_string_array_to_java()
295 (void) (*env)->SetObjectArrayElement(env, jarray, i, in zjni_c_string_array_to_java()
312 jsize length = (*env)->GetArrayLength(env, array); in zjni_java_string_array_to_c()
[all …]
H A Dlibzfs_jni_pool.c199 (*env)->FindClass(env, in new_ImportablePoolBean()
226 (*env)->FindClass(env, in new_VirtualDevice()
256 (*env)->FindClass(env, in new_LeafVirtualDevice()
400 (*env)->CallVoidMethod(env, object->object, in populate_ImportablePoolBean()
403 (*env)->CallVoidMethod(env, object->object, in populate_ImportablePoolBean()
406 (*env)->CallVoidMethod(env, object->object, in populate_ImportablePoolBean()
410 (*env)->CallVoidMethod(env, object->object, in populate_ImportablePoolBean()
415 (*env)->CallVoidMethod(env, object->object, in populate_ImportablePoolBean()
532 pathUTF = (*env)->NewStringUTF(env, path); in populate_DiskVirtualDeviceBean()
1036 (*env)->CallBooleanMethod(env, in zjni_get_VirtualDevices_from_vdev()
[all …]
H A Dlibzfs_jni_dataset.c184 (*env)->FindClass(env, in new_FileSystemBean()
205 (*env)->FindClass(env, in new_VolumeBean()
226 (*env)->FindClass(env, in new_SnapshotBean()
247 (*env)->FindClass(env, in new_FileSystemSnapshotBean()
268 (*env)->FindClass(env, in new_VolumeSnapshotBean()
373 (*env)->CallVoidMethod(env, object->object, in populate_PoolBean()
377 (*env)->CallVoidMethod(env, object->object, in populate_PoolBean()
382 (*env)->CallVoidMethod(env, object->object, in populate_PoolBean()
387 (*env)->CallVoidMethod(env, object->object, in populate_PoolBean()
698 data.data.env = env; in zjni_get_Datasets_below()
[all …]
H A Dlibzfs_jni_main.c117 data.env = env; in Java_com_sun_zfs_common_model_SystemDataModel_getImportablePools()
151 data.env = env; in Java_com_sun_zfs_common_model_SystemDataModel_getPools()
337 (*env)->ReleaseStringUTFChars(env, poolUTF, pool); in Java_com_sun_zfs_common_model_SystemDataModel_getVirtualDevice()
374 (*env)->ReleaseStringUTFChars(env, poolUTF, pool); in Java_com_sun_zfs_common_model_SystemDataModel_getVirtualDevices__Ljava_lang_String_2J()
408 const char *pool = (*env)->GetStringUTFChars(env, in Java_com_sun_zfs_common_model_SystemDataModel_getVirtualDevices__Ljava_lang_String_2()
411 (*env)->ReleaseStringUTFChars(env, poolUTF, pool); in Java_com_sun_zfs_common_model_SystemDataModel_getVirtualDevices__Ljava_lang_String_2()
443 data.env = env; in Java_com_sun_zfs_common_model_SystemDataModel_getAvailableDisks()
487 (*env)->ReleaseStringUTFChars(env, nameUTF, name); in Java_com_sun_zfs_common_model_SystemDataModel_getPropertyDefault()
511 JNIEnv *env = map->env; in mapping_cb() local
516 jstring propName = (*env)->NewStringUTF(env, in mapping_cb()
[all …]
H A Dlibzfs_jni_disk.c57 jstring nameUTF = (*env)->NewStringUTF(env, dp->name); in create_DiskDeviceBean()
65 (*env)->GetMethodID(env, class_DiskDeviceBean, in create_DiskDeviceBean()
70 disk = (*env)->NewObject(env, class_DiskDeviceBean, in create_DiskDeviceBean()
88 jfieldID id = (*env)->GetStaticFieldID(env, in get_SliceUsage_Use()
116 (*env)->NewStringUTF(env, sp->used_by); in create_SliceUsage()
122 (*env)->GetMethodID(env, class_SliceUsage, "<init>", in create_SliceUsage()
126 usage = (*env)->NewObject(env, in create_SliceUsage()
142 jstring nameUTF = (*env)->NewStringUTF(env, sp->name); in create_SliceDeviceBean()
151 slice = (*env)->NewObject(env, class_SliceDeviceBean, in create_SliceDeviceBean()
172 (*env)->CallBooleanMethod(env, in create_SliceDeviceBean_array()
[all …]
H A Dlibzfs_jni_property.c196 jclass class = (*env)->FindClass(env, propClass); in create_BasicProperty()
289 jclass class = (*env)->FindClass(env, propClass); in create_ObjectProperty()
301 propertyObject = (*env)->NewObject(env, in create_ObjectProperty()
314 propertyObject = (*env)->NewObject(env, in create_ObjectProperty()
440 jstring utf = (*env)->NewStringUTF(env, str); in str_to_enum_element()
441 jclass class = (*env)->FindClass(env, valueClass); in str_to_enum_element()
490 return (*env)->NewStringUTF(env, str); in str_to_string()
594 if ((*env)->ExceptionOccurred(env) != NULL) { in zjni_get_Dataset_properties()
616 if ((*env)->ExceptionOccurred(env) != NULL) { in zjni_get_Dataset_properties()
638 if ((*env)->ExceptionOccurred(env) != NULL) { in zjni_get_Dataset_properties()
[all …]
/illumos-gate/usr/src/lib/efcode/fcdriver/
H A Dmisc.c94 (*alt)(env); in check_address_abuse()
189 push_xforth(env, (xforth_t)fc_reg_read(env, "rx@", p, NULL)); in rxfetch()
314 cfetch(env); in fcd_cfetch()
327 cstore(env); in fcd_cstore()
340 wfetch(env); in fcd_wfetch()
353 wstore(env); in fcd_wstore()
366 lfetch(env); in fcd_lfetch()
379 lstore(env); in fcd_lstore()
392 xfetch(env); in fcd_xfetch()
405 xstore(env); in fcd_xstore()
[all …]
H A Dget_req.c112 parse_word(env); in set_my_args()
257 my_unit(env); in find_fcode()
266 env->ds = dp; in find_fcode()
267 my_unit(env); in find_fcode()
276 env->ds = dp; in find_fcode()
284 env->ds = dp; in find_fcode()
285 my_unit(env); in find_fcode()
294 env->ds = dp; in find_fcode()
295 my_unit(env); in find_fcode()
375 if ((path = get_path(env, env->attachment_pt)) == NULL) { in process_request()
[all …]
/illumos-gate/usr/src/cmd/pools/poold/libjlgrp/
H A Djlgrp.c59 clazz = (*env)->FindClass(env, class); in throwException()
61 (*env)->ThrowNew(env, clazz, msg); in throwException()
96 clazz = (*env)->GetObjectClass(env, obj); in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1fini()
113 clazz = (*env)->GetObjectClass(env, obj); in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1root()
145 clazz = (*env)->GetObjectClass(env, obj); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1children()
150 cookie = getCookie(env, (*env)->GetObjectClass(env, domain), domain); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1children()
152 id = (*env)->GetLongField(env, obj, fid); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1children()
201 clazz = (*env)->GetObjectClass(env, obj); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1cpus()
206 cookie = getCookie(env, (*env)->GetObjectClass(env, domain), domain); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1cpus()
209 id = (*env)->GetLongField(env, obj, fid); in Java_com_sun_solaris_service_locality_LocalityGroup_jl_1cpus()
[all …]
/illumos-gate/usr/src/lib/libadt_jni/common/
H A Dadt_jni.c60 strclass = (*env)->FindClass(env, "java/lang/String"); in local_throw()
64 jbarray = (*env)->NewByteArray(env, (jsize)(strlen(why))); in local_throw()
65 (*env)->SetByteArrayRegion(env, jbarray, (jsize)0, in local_throw()
69 jmsg = (*env)->NewObject(env, strclass, jstrnew, jbarray); in local_throw()
70 exceptionclass = (*env)->FindClass(env, exception); in local_throw()
71 jexceptionnew = (*env)->GetMethodID(env, exceptionclass, in local_throw()
76 (*env)->Throw(env, jexception); in local_throw()
113 jpointer_length = (*env)->GetArrayLength(env, jpointer); in j2c_pointer()
143 *jpointer = (*env)->NewByteArray(env, sizeof (uint64_t)); in c2j_pointer()
166 import_size = (*env)->GetArrayLength(env, jimport); in Java_com_sun_audit_AuditSession_startSession()
[all …]
/illumos-gate/usr/src/lib/efcode/packages/
H A Dpopulate.c95 byte_load(env); in do_builtin_dropin()
111 load_file(env); in do_builtin_file()
117 byte_load(env); in do_builtin_file()
162 dollar_find(env); in builtin_driver_method_hook()
190 new_device(env); in make_a_node()
192 device_name(env); in make_a_node()
200 MYSELF = open_instance_chain(env, env->root_node, 0); in install_package_nodes()
210 device_end(env); in install_package_nodes()
230 two_drop(env); in find_builtin_driver()
254 load_file(env); in exec_builtin_driver()
[all …]
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_jni_support.c56 jclass class = (*env)->FindClass(env, name); in JNU_ThrowByName()
67 (*env)->ThrowNew(env, class, msg); in JNU_ThrowByName()
68 (*env)->DeleteLocalRef(env, class); in JNU_ThrowByName()
97 if ((*env)->EnsureLocalCapacity(env, 3) < 0) { in JNU_GetStringNativeChars()
99 env, in JNU_GetStringNativeChars()
118 env, in JNU_GetStringNativeChars()
133 bytes = (*env)->CallObjectMethod(env, jstr, method); in JNU_GetStringNativeChars()
136 if ((*env)->ExceptionCheck(env) == JNI_FALSE) { in JNU_GetStringNativeChars()
138 len = (*env)->GetArrayLength(env, bytes); in JNU_GetStringNativeChars()
172 (*env)->DeleteLocalRef(env, bytes); in JNU_GetStringNativeChars()
[all …]

12345678910>>...12