File: RLIMIT.rb

package info (click to toggle)
libconstantine-java 0.7-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 860 kB
  • ctags: 4,468
  • sloc: java: 5,562; ruby: 976; xml: 683; makefile: 41
file content (28 lines) | stat: -rw-r--r-- 594 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'gen/ConstGenerator'
def gen_rlimit_java(options)
  ConstGenerator.new 'platform.rlimit', options do |cg|
    cg.include "stdint.h"
    cg.include "sys/resource.h"
    cg.include "sys/types.h"
    %w[
      RLIMIT_AS
      RLIMIT_CORE
      RLIMIT_CPU
      RLIMIT_DATA
      RLIMIT_FSIZE
      RLIMIT_LOCKS
      RLIMIT_MEMLOCK
      RLIMIT_MSGQUEUE
      RLIMIT_NICE
      RLIMIT_NLIMITS
      RLIMIT_NOFILE
      RLIMIT_NPROC
      RLIMIT_OFILE
      RLIMIT_RSS
      RLIMIT_RTPRIO
      RLIMIT_RTTIME
      RLIMIT_SIGPENDING
      RLIMIT_STACK
    ].each {|c| cg.const c }
  end
end