/titanic_41/usr/src/lib/efcode/engine/ |
H A D | print.c | 37 to_digit(fcode_env_t *env) in to_digit() argument 39 CHECK_DEPTH(env, 1, ">digit"); in to_digit() 44 pic_hold(fcode_env_t *env) in pic_hold() argument 46 CHECK_DEPTH(env, 1, "hold"); in pic_hold() 47 *(--env->picturebufpos) = (char) POP(DS); in pic_hold() 51 pic_start(fcode_env_t *env) in pic_start() argument 53 env->picturebufpos = env->picturebuf + env->picturebuflen - 1; in pic_start() 54 *env->picturebufpos = 0; in pic_start() 58 pic_ustop(fcode_env_t *env) in pic_ustop() argument 60 CHECK_DEPTH(env, 1, "u#>"); in pic_ustop() [all …]
|
H A D | forth.c | 37 void (*semi_ptr)(fcode_env_t *env) = do_semi; 38 void (*does_ptr)(fcode_env_t *env) = install_does; 39 void (*quote_ptr)(fcode_env_t *env) = do_quote; 40 void (*blit_ptr)(fcode_env_t *env) = do_literal; 41 void (*tlit_ptr)(fcode_env_t *env) = do_literal; 42 void (*do_bdo_ptr)(fcode_env_t *env) = do_bdo; 43 void (*do_bqdo_ptr)(fcode_env_t *env) = do_bqdo; 44 void (*create_ptr)(fcode_env_t *env) = do_creator; 45 void (*do_leave_ptr)(fcode_env_t *env) = do_bleave; 46 void (*do_loop_ptr)(fcode_env_t *env) = do_bloop; [all …]
|
H A D | fcode.c | 39 void (*crash_ptr)(fcode_env_t *env) = do_crash; 42 next_bytecode(fcode_env_t *env) in next_bytecode() argument 46 byte = *env->fcode_ptr; in next_bytecode() 47 env->fcode_ptr += env->fcode_incr; in next_bytecode() 52 get_next_token(fcode_env_t *env) in get_next_token() argument 54 ushort_t token = next_bytecode(env); in get_next_token() 56 token = (token << 8) | next_bytecode(env); in get_next_token() 58 env->last_fcode = token; in get_next_token() 63 get_short(fcode_env_t *env) in get_short() argument 70 u = next_bytecode(env) << 8; in get_short() [all …]
|
H A D | package.c | 41 check_my_self(fcode_env_t *env, char *fn) in check_my_self() argument 44 forth_abort(env, "%s: MYSELF is NULL", fn); in check_my_self() 48 get_number_of_parent_address_cells(fcode_env_t *env) in get_number_of_parent_address_cells() argument 59 ncells = get_default_intprop(env, "#address-cells", d->parent, in get_number_of_parent_address_cells() 64 get_path(env, d->parent), ncells, MAX_MY_ADDR); in get_number_of_parent_address_cells() 73 create_ihandle(fcode_env_t *env, device_t *phandle, instance_t *parent) in create_ihandle() argument 96 create_phandle(fcode_env_t *env, device_t *parent) in create_phandle() argument 110 do_push_package(fcode_env_t *env, device_t *d) in do_push_package() argument 112 do_previous(env); in do_push_package() 113 do_also(env); in do_push_package() [all …]
|
H A D | properties.c | 37 create_prop(fcode_env_t *env, char *name) in create_prop() argument 39 push_a_string(env, name); in create_prop() 40 property(env); in create_prop() 44 create_int_prop(fcode_env_t *env, char *name, int val) in create_int_prop() argument 47 encode_int(env); in create_int_prop() 48 create_prop(env, name); in create_int_prop() 52 create_string_prop(fcode_env_t *env, char *name, char *val) in create_string_prop() argument 54 push_a_string(env, val); in create_string_prop() 55 encode_string(env); in create_string_prop() 56 create_prop(env, name); in create_string_prop() [all …]
|
H A D | interactive.c | 40 void (*to_ptr)(fcode_env_t *env) = do_set_action; 44 parse_a_string(fcode_env_t *env, int *lenp) in parse_a_string() argument 46 parse_word(env); in parse_a_string() 47 return (pop_a_string(env, lenp)); in parse_a_string() 51 constant(fcode_env_t *env) in constant() argument 56 name = parse_a_string(env, &len); in constant() 57 env->instance_mode = 0; in constant() 58 make_common_access(env, name, len, 1, 0, in constant() 63 buffer_colon(fcode_env_t *env) in buffer_colon() argument 69 name = parse_a_string(env, &len); in buffer_colon() [all …]
|
H A D | actions.c | 42 value_fetch(fcode_env_t *env) in value_fetch() argument 46 CHECK_DEPTH(env, 1, "value_fetch"); in value_fetch() 52 value_store(fcode_env_t *env) in value_store() argument 56 CHECK_DEPTH(env, 1, "value_store"); in value_store() 62 get_internal_address(fcode_env_t *env) in get_internal_address() argument 66 CHECK_DEPTH(env, 1, "get_internal_address"); in get_internal_address() 69 return ((uchar_t *)env + *ptr); in get_internal_address() 74 internal_env_fetch(fcode_env_t *env) in internal_env_fetch() argument 78 CHECK_DEPTH(env, 1, "internal_env_fetch"); in internal_env_fetch() 79 iptr = (instance_t **)get_internal_address(env); in internal_env_fetch() [all …]
|
H A D | prims64.c | 43 pop_xforth(fcode_env_t *env) in pop_xforth() argument 47 return ((xforth_t)pop_double(env)); in pop_xforth() 51 peek_xforth(fcode_env_t *env) in peek_xforth() argument 55 d = pop_xforth(env); in peek_xforth() 56 push_xforth(env, d); in peek_xforth() 61 push_xforth(fcode_env_t *env, xforth_t a) in push_xforth() argument 66 push_double(env, (dforth_t)a); in push_xforth() 73 bxjoin(fcode_env_t *env) in bxjoin() argument 81 CHECK_DEPTH(env, sizeof (xforth_t), "bxjoin"); in bxjoin() 84 push_xforth(env, b.b_xf); in bxjoin() [all …]
|
H A D | interface.c | 41 push_ds(fcode_env_t *env, fstack_t d) in push_ds() argument 47 pop_ds(fcode_env_t *env) in pop_ds() argument 53 push_rs(fcode_env_t *env, fstack_t d) in push_rs() argument 59 pop_rs(fcode_env_t *env) in pop_rs() argument 68 push_a_string(fcode_env_t *env, char *str) in push_a_string() argument 83 pop_a_string(fcode_env_t *env, int *lenp) in pop_a_string() argument 103 pop_a_duped_string(fcode_env_t *env, int *lenp) in pop_a_duped_string() argument 107 str = pop_a_string(env, lenp); in pop_a_duped_string() 117 push_double(fcode_env_t *env, dforth_t d) in push_double() argument 131 pop_double(fcode_env_t *env) in pop_double() argument [all …]
|
/titanic_41/usr/src/lib/libast/common/regex/ |
H A D | regcomp.c | 142 node(Cenv_t* env, int type, int lo, int hi, size_t extra) in node() argument 146 if (e = (Rex_t*)alloc(env->disc, 0, sizeof(Rex_t) + extra)) in node() 153 e->flags = env->flags; in node() 154 e->map = (e->flags & REG_ICASE) ? env->MAP : env->map; in node() 155 e->explicit = env->explicit; in node() 262 serialize(Cenv_t* env, Rex_t* e, int n) in serialize() argument 272 n = serialize(env, e->re.group.expr.binary.left, n); in serialize() 275 n = serialize(env, e->re.group.expr.binary.right, n); in serialize() 278 n = serialize(env, e->re.group.expr.binary.left, n); in serialize() 279 n = serialize(env, e->re.group.expr.binary.right, n); in serialize() [all …]
|
/titanic_41/usr/src/cmd/pools/poold/libjkstat/ |
H A D | jkstat.c | 70 makeUnsignedInt64(JNIEnv *env, uint64_t value) in makeUnsignedInt64() argument 77 if (!(byteArray = (*env)->NewByteArray(env, 9))) in makeUnsignedInt64() 79 if (!(bytes = (*env)->GetByteArrayElements(env, byteArray, NULL))) in makeUnsignedInt64() 91 (*env)->ReleaseByteArrayElements(env, byteArray, bytes, 0); in makeUnsignedInt64() 93 if (!(valueObj = (*env)->NewObject(env, ui64class, ui64cons_mid, in makeUnsignedInt64() 104 makeLong(JNIEnv *env, jlong value) in makeLong() argument 108 if (!(valueObj = (*env)->NewObject(env, longclass, longcons_mid, in makeLong() 119 makeDouble(JNIEnv *env, jdouble value) in makeDouble() argument 123 if (!(valueObj = (*env)->NewObject(env, doubleclass, doublecons_mid, in makeDouble() 135 Java_com_sun_solaris_service_kstat_KstatCtl_open(JNIEnv *env, jobject obj) in Java_com_sun_solaris_service_kstat_KstatCtl_open() argument [all …]
|
/titanic_41/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/ |
H A D | DoPrinterNS.c | 41 void set_stderr(JNIEnv *env); 42 void set_stdout(JNIEnv *env); 71 JNIEnv *env, in Java_com_sun_admin_pm_server_DoPrinterNS_dorexec() argument 86 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() 91 user = (*env)->GetStringUTFChars(env, juser, 0); in Java_com_sun_admin_pm_server_DoPrinterNS_dorexec() 92 passwd = (*env)->GetStringUTFChars(env, jpasswd, 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() [all …]
|
/titanic_41/usr/src/cmd/krb5/kadmin/gui/native/ |
H A D | Kadmin.c | 80 Java_Kadmin_sessionInit(JNIEnv *env, jobject obj, jstring name, in Java_Kadmin_sessionInit() argument 104 cname = (*env)->GetStringUTFChars(env, name, NULL); in Java_Kadmin_sessionInit() 109 cpasswd = (*env)->GetStringUTFChars(env, passwd, NULL); in Java_Kadmin_sessionInit() 114 crealm = (*env)->GetStringUTFChars(env, realm, NULL); in Java_Kadmin_sessionInit() 122 cserver = (*env)->GetStringUTFChars(env, server, NULL); in Java_Kadmin_sessionInit() 168 (*env)->ReleaseStringUTFChars(env, name, cname); in Java_Kadmin_sessionInit() 170 (*env)->ReleaseStringUTFChars(env, passwd, cpasswd); in Java_Kadmin_sessionInit() 172 (*env)->ReleaseStringUTFChars(env, realm, crealm); in Java_Kadmin_sessionInit() 174 (*env)->ReleaseStringUTFChars(env, server, cserver); in Java_Kadmin_sessionInit() 182 handle_error(env, ret); in Java_Kadmin_sessionInit() [all …]
|
/titanic_41/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_util.c | 52 zjni_throw_exception(JNIEnv *env, const char *fmt, ...) in zjni_throw_exception() argument 63 (*env)->FindClass(env, "java/lang/UnsupportedOperationException"); in zjni_throw_exception() 65 (*env)->ThrowNew(env, class_UnsupportedOperationException, error); in zjni_throw_exception() 69 zjni_get_matched_string(JNIEnv *env, char *name, regmatch_t *match) in zjni_get_matched_string() argument 76 stringUTF = (*env)->NewStringUTF(env, name + match->rm_so); in zjni_get_matched_string() 96 zjni_Collection_to_array(JNIEnv *env, zjni_Collection_t *list, char *class) in zjni_Collection_to_array() argument 99 jint length = (*env)->CallIntMethod( in zjni_Collection_to_array() 100 env, ((zjni_Object_t *)list)->object, in zjni_Collection_to_array() 104 jobjectArray array = (*env)->NewObjectArray( in zjni_Collection_to_array() 105 env, length, (*env)->FindClass(env, class), NULL); in zjni_Collection_to_array() [all …]
|
H A D | libzfs_jni_dataset.c | 121 new_DatasetBean(JNIEnv *env, DatasetBean_t *bean) in new_DatasetBean() argument 127 (*env)->FindClass(env, ZFSJNI_PACKAGE_DATA "DatasetBean"); in new_DatasetBean() 130 (*env)->GetMethodID(env, object->class, "<init>", "()V"); in new_DatasetBean() 133 (*env)->NewObject(env, object->class, object->constructor); in new_DatasetBean() 136 bean->method_setPoolName = (*env)->GetMethodID( in new_DatasetBean() 137 env, object->class, "setPoolName", "(Ljava/lang/String;)V"); in new_DatasetBean() 139 bean->method_setParentName = (*env)->GetMethodID( in new_DatasetBean() 140 env, object->class, "setParentName", "(Ljava/lang/String;)V"); in new_DatasetBean() 142 bean->method_setBaseName = (*env)->GetMethodID( in new_DatasetBean() 143 env, object->class, "setBaseName", "(Ljava/lang/String;)V"); in new_DatasetBean() [all …]
|
H A D | libzfs_jni_pool.c | 191 new_ImportablePoolBean(JNIEnv *env, ImportablePoolBean_t *bean) in new_ImportablePoolBean() argument 197 (*env)->FindClass(env, in new_ImportablePoolBean() 201 (*env)->GetMethodID(env, object->class, "<init>", "()V"); in new_ImportablePoolBean() 204 (*env)->NewObject(env, object->class, object->constructor); in new_ImportablePoolBean() 207 new_PoolStats(env, &(bean->interface_PoolStats), object); in new_ImportablePoolBean() 209 bean->method_setName = (*env)->GetMethodID( in new_ImportablePoolBean() 210 env, object->class, "setName", "(Ljava/lang/String;)V"); in new_ImportablePoolBean() 212 bean->method_setId = (*env)->GetMethodID( in new_ImportablePoolBean() 213 env, object->class, "setId", "(J)V"); in new_ImportablePoolBean() 218 new_VirtualDevice(JNIEnv *env, VirtualDeviceBean_t *bean) in new_VirtualDevice() argument [all …]
|
H A D | libzfs_jni_main.c | 88 JNIEnv *env, jobject obj, jobjectArray dirs) { in Java_com_sun_zfs_common_model_SystemDataModel_getImportablePools() argument 98 zjni_throw_exception(env, in Java_com_sun_zfs_common_model_SystemDataModel_getImportablePools() 104 argv = zjni_java_string_array_to_c(env, dirs); in Java_com_sun_zfs_common_model_SystemDataModel_getImportablePools() 106 zjni_throw_exception(env, "out of memory"); in Java_com_sun_zfs_common_model_SystemDataModel_getImportablePools() 115 zjni_new_ArrayList(env, list); in Java_com_sun_zfs_common_model_SystemDataModel_getImportablePools() 117 data.env = env; in Java_com_sun_zfs_common_model_SystemDataModel_getImportablePools() 130 return (zjni_Collection_to_array(env, (zjni_Collection_t *)list, in Java_com_sun_zfs_common_model_SystemDataModel_getImportablePools() 141 Java_com_sun_zfs_common_model_SystemDataModel_getPools(JNIEnv *env, jobject obj) in Java_com_sun_zfs_common_model_SystemDataModel_getPools() argument 149 zjni_new_ArrayList(env, list); in Java_com_sun_zfs_common_model_SystemDataModel_getPools() 151 data.env = env; in Java_com_sun_zfs_common_model_SystemDataModel_getPools() [all …]
|
H A D | libzfs_jni_disk.c | 37 static jobject create_SliceUsage(JNIEnv *env, dmgt_slice_t *sp); 38 static jobject create_SliceDeviceBean(JNIEnv *env, dmgt_slice_t *sp); 46 create_DiskDeviceBean(JNIEnv *env, dmgt_disk_t *dp) in create_DiskDeviceBean() argument 52 env, dp->aliases, naliases); in create_DiskDeviceBean() 54 jobjectArray slices = create_SliceDeviceBean_array(env, in create_DiskDeviceBean() 57 jstring nameUTF = (*env)->NewStringUTF(env, dp->name); in create_DiskDeviceBean() 61 jclass class_DiskDeviceBean = (*env)->FindClass( in create_DiskDeviceBean() 62 env, ZFSJNI_PACKAGE_DATA "DiskDeviceBean"); in create_DiskDeviceBean() 65 (*env)->GetMethodID(env, class_DiskDeviceBean, in create_DiskDeviceBean() 70 disk = (*env)->NewObject(env, class_DiskDeviceBean, in create_DiskDeviceBean() [all …]
|
H A D | libzfs_jni_property.c | 167 create_BasicProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop, in create_BasicProperty() argument 182 propValue = convert_str(env, propbuf); in create_BasicProperty() 189 propValue = convert_uint64(env, value); in create_BasicProperty() 196 jclass class = (*env)->FindClass(env, propClass); in create_BasicProperty() 198 jstring propName = (*env)->NewStringUTF( in create_BasicProperty() 199 env, zfs_prop_to_name(prop)); in create_BasicProperty() 206 jstring propSource = (*env)->NewStringUTF(env, source); in create_BasicProperty() 212 constructor = (*env)->GetMethodID( in create_BasicProperty() 213 env, class, "<init>", signature); in create_BasicProperty() 215 propertyObject = (*env)->NewObject( in create_BasicProperty() [all …]
|
/titanic_41/usr/src/lib/efcode/fcdriver/ |
H A D | misc.c | 39 fc_reg_read(fcode_env_t *env, char *service, fstack_t virt, int *errp) in fc_reg_read() argument 45 forth_abort(env, "fc_reg_read: bad mcookie: 0x%x\n", virt); in fc_reg_read() 52 error = fc_run_priv(env->private, service, nin, 1, virtaddr, &data); in fc_reg_read() 57 forth_abort(env, "fc_read_reg: ERROR: cookie: %llx" in fc_reg_read() 64 fc_reg_write(fcode_env_t *env, char *service, fstack_t virt, fc_cell_t data, in fc_reg_write() argument 71 forth_abort(env, "fc_reg_write: bad mcookie: 0x%x\n", virt); in fc_reg_write() 78 error = fc_run_priv(env->private, service, nin, 0, virtaddr, data); in fc_reg_write() 83 forth_abort(env, "fc_write_reg: ERROR: cookie: %llx" in fc_reg_write() 89 check_address_abuse(fcode_env_t *env, fstack_t addr, char *type, in check_address_abuse() argument 96 (*alt)(env); in check_address_abuse() [all …]
|
H A D | get_req.c | 50 dot_request(fcode_env_t *env) in dot_request() argument 52 common_data_t *cdp = env->private; in dot_request() 91 get_my_args(fcode_env_t *env) in get_my_args() argument 93 common_data_t *cdp = env->private; in get_my_args() 109 set_my_args(fcode_env_t *env) in set_my_args() argument 114 parse_word(env); in set_my_args() 115 pkg_my_args = pop_a_duped_string(env, NULL); in set_my_args() 119 dot_my_args(fcode_env_t *env) in dot_my_args() argument 128 push_my_args(fcode_env_t *env) in push_my_args() argument 130 push_a_string(env, pkg_my_args); in push_my_args() [all …]
|
/titanic_41/usr/src/cmd/pools/poold/libjlgrp/ |
H A D | jlgrp.c | 43 getCookie(JNIEnv *env, jclass clazz, jobject obj) in getCookie() argument 47 fid = (*env)->GetFieldID(env, clazz, "cookie", "J"); in getCookie() 48 return ((lgrp_cookie_t)(*env)->GetLongField(env, obj, fid)); in getCookie() 55 throwException(JNIEnv *env, const char *class, const char *msg) in throwException() argument 59 clazz = (*env)->FindClass(env, class); in throwException() 61 (*env)->ThrowNew(env, clazz, msg); in throwException() 73 Java_com_sun_solaris_service_locality_LocalityDomain_jl_1init(JNIEnv *env, in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1init() argument 79 throwException(env, "java/lang/Exception", in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1init() 91 Java_com_sun_solaris_service_locality_LocalityDomain_jl_1fini(JNIEnv *env, in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1fini() argument 96 clazz = (*env)->GetObjectClass(env, obj); in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1fini() [all …]
|
/titanic_41/usr/src/lib/libadt_jni/common/ |
H A D | adt_jni.c | 48 local_throw(JNIEnv *env, const char *exception, const char *why) { in local_throw() argument 60 strclass = (*env)->FindClass(env, "java/lang/String"); in local_throw() 61 jstrnew = (*env)->GetMethodID(env, strclass, "<init>", "([B)V"); 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() 74 jexception = (*env)->NewObject(env, exceptionclass, jexceptionnew, in local_throw() 76 (*env)->Throw(env, jexception); in local_throw() [all …]
|
/titanic_41/usr/src/lib/efcode/packages/ |
H A D | populate.c | 42 is_device_builtin_package(fcode_env_t *env, device_t *d) in is_device_builtin_package() argument 56 do_builtin_dropin(fcode_env_t *env) in do_builtin_dropin() argument 69 error = fc_run_priv(env->private, "sunos,get-fcode-size", 1, 1, in do_builtin_dropin() 79 error = fc_run_priv(env->private, "sunos,get-fcode", 3, 1, in do_builtin_dropin() 95 byte_load(env); in do_builtin_dropin() 99 do_builtin_file(fcode_env_t *env) in do_builtin_file() argument 110 push_a_string(env, dropin_name); in do_builtin_file() 111 load_file(env); in do_builtin_file() 117 byte_load(env); in do_builtin_file() 131 builtin_driver_method_hook(fcode_env_t *env) in builtin_driver_method_hook() argument [all …]
|
/titanic_41/usr/src/lib/libslp/clib/ |
H A D | slp_jni_support.c | 54 JNU_ThrowByName(JNIEnv *env, const char *name, const char *msg) in JNU_ThrowByName() argument 56 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() 85 *JNU_GetStringNativeChars(JNIEnv *env, jstring jstr) in JNU_GetStringNativeChars() argument 97 if ((*env)->EnsureLocalCapacity(env, 3) < 0) { in JNU_GetStringNativeChars() 99 env, in JNU_GetStringNativeChars() 106 class = (*env)->FindClass(env, CLASS_JAVA_LANG_STRING); in JNU_GetStringNativeChars() 117 method = (*env)->GetMethodID( in JNU_GetStringNativeChars() 118 env, in JNU_GetStringNativeChars() [all …]
|