From 043e1c143f7d67adef14c2872c50d167bb42ef49 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 8 Jul 2005 01:11:42 +0000 Subject: [PATCH] generate ResourceLimit class --- bindings/java/src/jni/generate.pl | 61 ++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/bindings/java/src/jni/generate.pl b/bindings/java/src/jni/generate.pl index 61a0dd9f..d93f1c6a 100644 --- a/bindings/java/src/jni/generate.pl +++ b/bindings/java/src/jni/generate.pl @@ -775,6 +775,65 @@ my %classes = ( plat => 'LFS' }, ], + ResourceLimit => [ + { + name => 'unlimited', + }, + { + name => 'cpu_cur', + }, + { + name => 'cpu_max', + }, + { + name => 'file_size_cur', + }, + { + name => 'file_size_max', + }, + { + name => 'data_cur', + }, + { + name => 'data_max', + }, + { + name => 'stack_cur', + }, + { + name => 'stack_max', + }, + { + name => 'core_cur', + }, + { + name => 'core_max', + }, + { + name => 'memory_cur', + }, + { + name => 'memory_max', + }, + { + name => 'processes_cur', + }, + { + name => 'processes_max', + }, + { + name => 'open_files_cur', + }, + { + name => 'open_files_max', + }, + { + name => 'virtual_memory_cur', + }, + { + name => 'virtual_memory_max', + }, + ], Who => [ { name => 'user', type => 'String', @@ -1291,7 +1350,7 @@ DESTROY(obj) EOF for my $field (@$fields) { - my $type = $field->{type}; + my $type = $field->{type} || 'Long'; my $name = $field->{name}; my $desc = $field->{desc} || $name; (my $jname = $name) =~ s/_(\w)/\u$1/g;