1138 1139 typedef int (*canonicalize_fn_t)(JNIEnv *env, char *orig, char *out, int len); 1140 1141 /************************************************************************* 1142 PART 3: I/O and Network Support 1143 ************************************************************************/ 1144 1145 /* 1146 * Convert a pathname into native format. This function does syntactic 1147 * cleanup, such as removing redundant separator characters. It modifies 1148 * the given pathname string in place. 1149 */ 1150 JNIEXPORT char * JNICALL 1151 JVM_NativePath(char *); 1152 1153 /* 1154 * The standard printing functions supported by the Java VM. (Should they 1155 * be renamed to JVM_* in the future? 1156 */ 1157 1158 /* 1159 * BE CAREFUL! The following functions do not implement the 1160 * full feature set of standard C printf formats. 1161 */ 1162 int 1163 jio_vsnprintf(char *str, size_t count, const char *fmt, va_list args); 1164 1165 int 1166 jio_snprintf(char *str, size_t count, const char *fmt, ...); 1167 1168 int 1169 jio_fprintf(FILE *, const char *fmt, ...); 1170 1171 int 1172 jio_vfprintf(FILE *, const char *fmt, va_list args); 1173 1174 1175 JNIEXPORT void * JNICALL 1176 JVM_RawMonitorCreate(void); 1177 1178 JNIEXPORT void JNICALL 1179 JVM_RawMonitorDestroy(void *mon); 1180 1181 JNIEXPORT jint JNICALL 1182 JVM_RawMonitorEnter(void *mon); 1183 1184 JNIEXPORT void JNICALL 1185 JVM_RawMonitorExit(void *mon); 1186 1187 /* 1188 * java.lang.management support 1189 */ 1190 JNIEXPORT void* JNICALL 1191 JVM_GetManagement(jint version); | 1138 1139 typedef int (*canonicalize_fn_t)(JNIEnv *env, char *orig, char *out, int len); 1140 1141 /************************************************************************* 1142 PART 3: I/O and Network Support 1143 ************************************************************************/ 1144 1145 /* 1146 * Convert a pathname into native format. This function does syntactic 1147 * cleanup, such as removing redundant separator characters. It modifies 1148 * the given pathname string in place. 1149 */ 1150 JNIEXPORT char * JNICALL 1151 JVM_NativePath(char *); 1152 1153 /* 1154 * The standard printing functions supported by the Java VM. (Should they 1155 * be renamed to JVM_* in the future? 1156 */ 1157 1158 /* jio_snprintf() and jio_vsnprintf() behave like snprintf(3) and vsnprintf(3), 1159 * respectively, with the following differences: 1160 * - The string written to str is always zero-terminated, also in case of 1161 * truncation (count is too small to hold the result string), unless count 1162 * is 0. In case of truncation count-1 characters are written and '\0' 1163 * appendend. 1164 * - If count is too small to hold the whole string, -1 is returned across 1165 * all platforms. */ 1166 1167 JNIEXPORT int 1168 jio_vsnprintf(char *str, size_t count, const char *fmt, va_list args); 1169 1170 JNIEXPORT int 1171 jio_snprintf(char *str, size_t count, const char *fmt, ...); 1172 1173 JNIEXPORT int 1174 jio_fprintf(FILE *, const char *fmt, ...); 1175 1176 JNIEXPORT int 1177 jio_vfprintf(FILE *, const char *fmt, va_list args); 1178 1179 1180 JNIEXPORT void * JNICALL 1181 JVM_RawMonitorCreate(void); 1182 1183 JNIEXPORT void JNICALL 1184 JVM_RawMonitorDestroy(void *mon); 1185 1186 JNIEXPORT jint JNICALL 1187 JVM_RawMonitorEnter(void *mon); 1188 1189 JNIEXPORT void JNICALL 1190 JVM_RawMonitorExit(void *mon); 1191 1192 /* 1193 * java.lang.management support 1194 */ 1195 JNIEXPORT void* JNICALL 1196 JVM_GetManagement(jint version); |