File: Fcntl.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 (43 lines) | stat: -rw-r--r-- 811 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
require 'gen/ConstGenerator'
def gen_fcntl_java(options)
  ConstGenerator.new 'platform.fcntl', options do |cg|
    cg.include "fcntl.h"
    cg.include "string.h"
    cg.unknown_range=[20000, 20999]
    consts = %w[
      F_DUPFD
      F_GETFD
      F_SETFD
      F_GETFL
      F_SETFL
      F_GETOWN
      F_SETOWN
      F_GETLK
      F_SETLK
      F_SETLKW
      F_CHKCLEAN
      F_PREALLOCATE
      F_SETSIZE
      F_RDADVISE
      F_RDAHEAD
      F_READBOOTSTRAP
      F_WRITEBOOTSTRAP
      F_NOCACHE
      F_LOG2PHYS
      F_GETPATH
      F_FULLFSYNC
      F_PATHPKG_CHECK
      F_FREEZE_FS
      F_THAW_FS
      F_GLOBAL_NOCACHE
      F_ADDSIGS
      F_MARKDEPENDENCY
      F_RDLCK
      F_UNLCK
      F_WRLCK
      F_ALLOCATECONTIG
      F_ALLOCATEALL
    ]
    consts.each { |c| cg.const c }
  end
end