libconstantine-java-0.7/0000755000175000017500000000000011316212262013751 5ustar niconicolibconstantine-java-0.7/gen/0000755000175000017500000000000011316212262014522 5ustar niconicolibconstantine-java-0.7/gen/ConstGenerator.rb0000644000175000017500000000011211316212262017776 0ustar niconicorequire 'gen/const_generator' ConstGenerator = Constantine::ConstGeneratorlibconstantine-java-0.7/gen/const/0000755000175000017500000000000011316212262015650 5ustar niconicolibconstantine-java-0.7/gen/const/Signal.rb0000644000175000017500000000074411316212262017417 0ustar niconicorequire 'gen/ConstGenerator' def gen_signal_java(options) ConstGenerator.new 'platform.signal', options do |cg| cg.include "signal.h" %w[ SIGHUP SIGINT SIGQUIT SIGILL SIGTRAP SIGABRT SIGIOT SIGBUS SIGFPE SIGKILL SIGUSR1 SIGSEGV SIGUSR2 SIGPIPE SIGALRM SIGTERM SIGSTKFLT SIGCLD SIGCHLD SIGCONT SIGSTOP SIGTSTP SIGTTIN SIGTTOU SIGURG SIGXCPU SIGXFSZ SIGVTALRM SIGPROF SIGWINCH SIGPOLL SIGIO SIGPWR SIGSYS SIGUNUSED SIGRTMIN SIGRTMAX NSIG ].each {|c| cg.const c} end end libconstantine-java-0.7/gen/const/OpenFlags.rb0000644000175000017500000000112611316212262020053 0ustar niconicorequire 'gen/ConstGenerator' def gen_openflags_java(options) ConstGenerator.new 'platform.openflags', options do |cg| cg.include "fcntl.h" cg.include "string.h" cg.type = :bitmask cg.unknown_range=[20000, 20999] consts = %w[ O_RDONLY O_WRONLY O_RDWR O_ACCMODE O_NONBLOCK O_APPEND O_SYNC O_SHLOCK O_EXLOCK O_ASYNC O_FSYNC O_NOFOLLOW O_CREAT O_TRUNC O_EXCL O_EVTONLY O_DIRECTORY O_SYMLINK O_BINARY O_NOCTTY ] consts.each { |c| cg.const c } end end libconstantine-java-0.7/gen/const/RLIMIT.rb0000644000175000017500000000112211316212262017171 0ustar niconicorequire '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 endlibconstantine-java-0.7/gen/const/INAddr.rb0000644000175000017500000000070111316212262017274 0ustar niconicorequire 'gen/ConstGenerator' def gen_inaddr_java(options) ConstGenerator.new 'platform.inaddr', options do |cg| cg.include "sys/types.h" cg.include "netinet/in.h" %w[ INADDR_ANY INADDR_BROADCAST INADDR_NONE INADDR_LOOPBACK INADDR_UNSPEC_GROUP INADDR_ALLHOSTS_GROUP INADDR_ALLRTRS_GROUP INADDR_MAX_LOCAL_GROUP ].each {|c| cg.const(c, "%#x", "(unsigned int)") { |v| v.hex} } end end libconstantine-java-0.7/gen/const/NameInfo.rb0000644000175000017500000000055411316212262017675 0ustar niconicorequire 'gen/ConstGenerator' def gen_nameinfo_java(options) ConstGenerator.new 'platform.nameinfo', options do |cg| cg.include "sys/socket.h" cg.include "netdb.h" %w[ NI_MAXHOST NI_MAXSERV NI_NOFQDN NI_NUMERICHOST NI_NAMEREQD NI_NUMERICSERV NI_DGRAM NI_WITHSCOPEID ].each {|c| cg.const c} end endlibconstantine-java-0.7/gen/const/SocketOption.rb0000644000175000017500000000206011316212262020614 0ustar niconicorequire 'gen/ConstGenerator' def gen_socketoption_java(options) ConstGenerator.new 'platform.socket_option', options do |cg| cg.include "sys/socket.h" %w[ SO_DEBUG SO_ACCEPTCONN SO_REUSEADDR SO_KEEPALIVE SO_DONTROUTE SO_BROADCAST SO_USELOOPBACK SO_LINGER SO_OOBINLINE SO_REUSEPORT SO_TIMESTAMP SO_ACCEPTFILTER SO_DONTTRUNC SO_WANTMORE SO_WANTOOBFLAG SO_SNDBUF SO_RCVBUF SO_SNDLOWAT SO_RCVLOWAT SO_SNDTIMEO SO_RCVTIMEO SO_ERROR SO_TYPE SO_NREAD SO_NKE SO_NOSIGPIPE SO_NOADDRERR SO_NWRITE SO_REUSESHAREUID SO_LABEL SO_PEERLABEL SO_ATTACH_FILTER SO_BINDTODEVICE SO_DETACH_FILTER SO_NO_CHECK SO_PASSCRED SO_PEERCRED SO_PEERNAME SO_PRIORITY SO_SECURITY_AUTHENTICATION SO_SECURITY_ENCRYPTION_NETWORK SO_SECURITY_ENCRYPTION_TRANSPORT ].each {|c| cg.const(c, "%#x", "(unsigned int)") { |v| v.hex} } end end libconstantine-java-0.7/gen/const/Sock.rb0000644000175000017500000000044511316212262017077 0ustar niconicorequire 'gen/ConstGenerator' def gen_sock_java(options) ConstGenerator.new 'platform.sock', options do |cg| cg.include "sys/socket.h" %w[ SOCK_STREAM SOCK_DGRAM SOCK_RAW SOCK_RDM SOCK_SEQPACKET SOCK_MAXADDRLEN ].each {|c| cg.const c} end endlibconstantine-java-0.7/gen/const/RLIM.rb0000644000175000017500000000055711316212262016747 0ustar niconicorequire 'gen/ConstGenerator' def gen_rlim_java(options) ConstGenerator.new 'platform.rlimit', options do |cg| cg.include "stdint.h" cg.include "sys/resource.h" cg.include "sys/types.h" %w[ RLIM_NLIMITS RLIM_INFINITY RLIM_SAVED_MAX RLIM_SAVED_CUR ].each {|c| cg.const(c, "%#lx", "(unsigned long)") { |v| v.hex} } end endlibconstantine-java-0.7/gen/const/ProtocolFamily.rb0000644000175000017500000000137611316212262021147 0ustar niconicorequire 'gen/ConstGenerator' def gen_protocolfamily_java(options) ConstGenerator.new 'platform.protocol_family', options do |cg| cg.include "sys/socket.h" %w[ PF_UNSPEC PF_LOCAL PF_UNIX PF_INET PF_IMPLINK PF_PUP PF_CHAOS PF_NS PF_ISO PF_OSI PF_ECMA PF_DATAKIT PF_CCITT PF_SNA PF_DECnet PF_DLI PF_LAT PF_HYLINK PF_APPLETALK PF_ROUTE PF_LINK PF_XTP PF_COIP PF_CNT PF_SIP PF_IPX PF_RTIP PF_PIP PF_NDRV PF_ISDN PF_KEY PF_INET6 PF_NATM PF_SYSTEM PF_NETBIOS PF_PPP PF_ATM PF_NETGRAPH PF_MAX ].each {|c| cg.const c} end endlibconstantine-java-0.7/gen/const/IPProto.rb0000644000175000017500000000132311316212262017530 0ustar niconicorequire 'gen/ConstGenerator' def gen_ipproto_java(options) ConstGenerator.new 'platform.ipproto', options do |cg| cg.include "netinet/in.h" %w[ IPPROTO_IP IPPROTO_HOPOPTS IPPROTO_ICMP IPPROTO_IGMP IPPROTO_IPIP IPPROTO_TCP IPPROTO_EGP IPPROTO_PUP IPPROTO_UDP IPPROTO_IDP IPPROTO_TP IPPROTO_IPV6 IPPROTO_ROUTING IPPROTO_FRAGMENT IPPROTO_RSVP IPPROTO_GRE IPPROTO_ESP IPPROTO_AH IPPROTO_ICMPV6 IPPROTO_NONE IPPROTO_DSTOPTS IPPROTO_MTP IPPROTO_ENCAP IPPROTO_PIM IPPROTO_COMP IPPROTO_SCTP IPPROTO_RAW IPPROTO_MAX ].each {|c| cg.const c} end end libconstantine-java-0.7/gen/const/WaitFlags.rb0000644000175000017500000000046711316212262020065 0ustar niconicorequire 'gen/ConstGenerator' def gen_waitflags_java(options) ConstGenerator.new 'platform.waitflags', options do |cg| cg.include "sys/wait.h" cg.type = :bitmask %w[ WNOHANG WUNTRACED WSTOPPED WEXITED WCONTINUED WNOWAIT ].each {|c| cg.const(c, "%#x", "(unsigned int)") { |v| v.hex} } end end libconstantine-java-0.7/gen/const/AddressFamily.rb0000644000175000017500000000151711316212262020730 0ustar niconicorequire 'gen/ConstGenerator' def gen_addressfamily_java(options) ConstGenerator.new 'platform.address_family', options do |cg| cg.include "sys/socket.h" %w[ AF_UNSPEC AF_LOCAL AF_UNIX AF_INET AF_IMPLINK AF_PUP AF_CHAOS AF_NS AF_ISO AF_OSI AF_ECMA AF_DATAKIT AF_CCITT AF_SNA AF_DECnet AF_DLI AF_LAT AF_HYLINK AF_APPLETALK AF_ROUTE AF_LINK pseudo_AF_XTP AF_COIP AF_CNT pseudo_AF_RTIP AF_IPX AF_SIP pseudo_AF_PIP AF_NDRV AF_ISDN AF_E164 pseudo_AF_KEY AF_INET6 AF_NATM AF_SYSTEM AF_NETBIOS AF_PPP AF_ATM pseudo_AF_HDRCMPLT AF_NETGRAPH AF_AX25 AF_MAX ].each {|c| cg.const c } end end libconstantine-java-0.7/gen/const/SocketLevel.rb0000644000175000017500000000040111316212262020410 0ustar niconicorequire 'gen/ConstGenerator' def gen_socketlevel_java(options) ConstGenerator.new 'platform.socketlevel', options do |cg| cg.include "sys/socket.h" %w[ SOL_SOCKET SOL_IP SOL_TCP SOL_UDP ].each {|c| cg.const c} end endlibconstantine-java-0.7/gen/const/TCP.rb0000644000175000017500000000106511316212262016625 0ustar niconicorequire 'gen/ConstGenerator' def gen_tcp_java(options) ConstGenerator.new 'platform.tcp', options do |cg| cg.include "sys/socket.h" cg.include "sys/types.h" cg.include "netinet/tcp.h" %w[ TCP_MAX_SACK TCP_MSS TCP_MINMSS TCP_MINMSSOVERLOAD TCP_MAXWIN TCP_MAX_WINSHIFT TCP_MAXBURST TCP_MAXHLEN TCP_MAXOLEN TCP_NODELAY TCP_MAXSEG TCP_NOPUSH TCP_NOOPT TCP_KEEPALIVE TCP_NSTATES TCP_RETRANSHZ ].each {|c| cg.const c, "%lu", "(unsigned long)"} end endlibconstantine-java-0.7/gen/const/LastError.rb0000644000175000017500000000557711316212262020130 0ustar niconicorequire 'gen/ConstGenerator' def gen_lasterror_java(options) options[:LastError] = true ConstGenerator.new 'platform.lasterror', options do |cg| cg.include "Winerror.h" cg.include "string.h" cg.include "windows.h" cg.unknown_range=[20000, 20999] consts = %w[ ERROR_INVALID_FUNCTION ERROR_INVALID_FUNCTION ERROR_FILE_NOT_FOUND ERROR_PATH_NOT_FOUND ERROR_TOO_MANY_OPEN_FILES ERROR_ACCESS_DENIED ERROR_INVALID_HANDLE ERROR_ARENA_TRASHED ERROR_NOT_ENOUGH_MEMORY ERROR_INVALID_BLOCK ERROR_BAD_ENVIRONMENT ERROR_BAD_FORMAT ERROR_INVALID_ACCESS ERROR_INVALID_DATA ERROR_INVALID_DRIVE ERROR_CURRENT_DIRECTORY ERROR_NOT_SAME_DEVICE ERROR_NO_MORE_FILES ERROR_WRITE_PROTECT ERROR_BAD_UNIT ERROR_NOT_READY ERROR_BAD_COMMAND ERROR_CRC ERROR_BAD_LENGTH ERROR_SEEK ERROR_NOT_DOS_DISK ERROR_SECTOR_NOT_FOUND ERROR_OUT_OF_PAPER ERROR_WRITE_FAULT ERROR_READ_FAULT ERROR_GEN_FAILURE ERROR_LOCK_VIOLATION ERROR_SHARING_VIOLATION ERROR_WRONG_DISK ERROR_SHARING_BUFFER_EXCEEDED ERROR_BAD_NETPATH ERROR_NETWORK_ACCESS_DENIED ERROR_BAD_NET_NAME ERROR_FILE_EXISTS ERROR_CANNOT_MAKE ERROR_FAIL_I24 ERROR_INVALID_PARAMETER ERROR_NO_PROC_SLOTS ERROR_DRIVE_LOCKED ERROR_BROKEN_PIPE ERROR_DISK_FULL ERROR_INVALID_TARGET_HANDLE ERROR_INVALID_HANDLE ERROR_WAIT_NO_CHILDREN ERROR_CHILD_NOT_COMPLETE ERROR_DIRECT_ACCESS_HANDLE ERROR_NEGATIVE_SEEK ERROR_SEEK_ON_DEVICE ERROR_DIR_NOT_EMPTY ERROR_DIRECTORY ERROR_NOT_LOCKED ERROR_BAD_PATHNAME ERROR_MAX_THRDS_REACHED ERROR_LOCK_FAILED ERROR_ALREADY_EXISTS ERROR_INVALID_STARTING_CODESEG ERROR_INVALID_STACKSEG ERROR_INVALID_MODULETYPE ERROR_INVALID_EXE_SIGNATURE ERROR_EXE_MARKED_INVALID ERROR_BAD_EXE_FORMAT ERROR_ITERATED_DATA_EXCEEDS_64k ERROR_INVALID_MINALLOCSIZE ERROR_DYNLINK_FROM_INVALID_RING ERROR_IOPL_NOT_ENABLED ERROR_INVALID_SEGDPL ERROR_AUTODATASEG_EXCEEDS_64k ERROR_RING2SEG_MUST_BE_MOVABLE ERROR_RELOC_CHAIN_XEEDS_SEGLIM ERROR_INFLOOP_IN_RELOC_CHAIN ERROR_FILENAME_EXCED_RANGE ERROR_NESTING_NOT_ALLOWED ERROR_PIPE_LOCAL ERROR_PIPE_LOCAL ERROR_BAD_PIPE ERROR_PIPE_BUSY ERROR_NO_DATA ERROR_PIPE_NOT_CONNECTED ERROR_OPERATION_ABORTED ERROR_NOT_ENOUGH_QUOTA ERROR_MOD_NOT_FOUND WSAENAMETOOLONG WSAENOTEMPTY WSAEINTR WSAEBADF WSAEACCES WSAEFAULT WSAEINVAL WSAEMFILE ] consts.each { |c| cg.const(c, '%ld') } end end libconstantine-java-0.7/gen/const/Sysconf.rb0000644000175000017500000000626611316212262017633 0ustar niconicorequire 'gen/ConstGenerator' def gen_sysconf_java(options) ConstGenerator.new 'platform.sysconf', options do |cg| cg.include "sys/types.h" cg.include "unistd.h" %w[ _SC_ARG_MAX _SC_CHILD_MAX _SC_CLK_TCK _SC_NGROUPS_MAX _SC_OPEN_MAX _SC_JOB_CONTROL _SC_SAVED_IDS _SC_VERSION _SC_BC_BASE_MAX _SC_BC_DIM_MAX _SC_BC_SCALE_MAX _SC_BC_STRING_MAX _SC_COLL_WEIGHTS_MAX _SC_EXPR_NEST_MAX _SC_LINE_MAX _SC_RE_DUP_MAX _SC_2_VERSION _SC_2_C_BIND _SC_2_C_DEV _SC_2_CHAR_TERM _SC_2_FORT_DEV _SC_2_FORT_RUN _SC_2_LOCALEDEF _SC_2_SW_DEV _SC_2_UPE _SC_STREAM_MAX _SC_TZNAME_MAX _SC_ASYNCHRONOUS_IO _SC_PAGESIZE _SC_MEMLOCK _SC_MEMLOCK_RANGE _SC_MEMORY_PROTECTION _SC_MESSAGE_PASSING _SC_PRIORITIZED_IO _SC_PRIORITY_SCHEDULING _SC_REALTIME_SIGNALS _SC_SEMAPHORES _SC_FSYNC _SC_SHARED_MEMORY_OBJECTS _SC_SYNCHRONIZED_IO _SC_TIMERS _SC_AIO_LISTIO_MAX _SC_AIO_MAX _SC_AIO_PRIO_DELTA_MAX _SC_DELAYTIMER_MAX _SC_MQ_OPEN_MAX _SC_MAPPED_FILES _SC_RTSIG_MAX _SC_SEM_NSEMS_MAX _SC_SEM_VALUE_MAX _SC_SIGQUEUE_MAX _SC_TIMER_MAX _SC_NPROCESSORS_CONF _SC_NPROCESSORS_ONLN _SC_2_PBS _SC_2_PBS_ACCOUNTING _SC_2_PBS_CHECKPOINT _SC_2_PBS_LOCATE _SC_2_PBS_MESSAGE _SC_2_PBS_TRACK _SC_ADVISORY_INFO _SC_BARRIERS _SC_CLOCK_SELECTION _SC_CPUTIME _SC_FILE_LOCKING _SC_GETGR_R_SIZE_MAX _SC_GETPW_R_SIZE_MAX _SC_HOST_NAME_MAX _SC_LOGIN_NAME_MAX _SC_MONOTONIC_CLOCK _SC_MQ_PRIO_MAX _SC_READER_WRITER_LOCKS _SC_REGEXP _SC_SHELL _SC_SPAWN _SC_SPIN_LOCKS _SC_SPORADIC_SERVER _SC_THREAD_ATTR_STACKADDR _SC_THREAD_ATTR_STACKSIZE _SC_THREAD_CPUTIME _SC_THREAD_DESTRUCTOR_ITERATIONS _SC_THREAD_KEYS_MAX _SC_THREAD_PRIO_INHERIT _SC_THREAD_PRIO_PROTECT _SC_THREAD_PRIORITY_SCHEDULING _SC_THREAD_PROCESS_SHARED _SC_THREAD_SAFE_FUNCTIONS _SC_THREAD_SPORADIC_SERVER _SC_THREAD_STACK_MIN _SC_THREAD_THREADS_MAX _SC_TIMEOUTS _SC_THREADS _SC_TRACE _SC_TRACE_EVENT_FILTER _SC_TRACE_INHERIT _SC_TRACE_LOG _SC_TTY_NAME_MAX _SC_TYPED_MEMORY_OBJECTS _SC_V6_ILP32_OFF32 _SC_V6_ILP32_OFFBIG _SC_V6_LP64_OFF64 _SC_V6_LPBIG_OFFBIG _SC_IPV6 _SC_RAW_SOCKETS _SC_SYMLOOP_MAX _SC_ATEXIT_MAX _SC_IOV_MAX _SC_PAGE_SIZE _SC_XOPEN_CRYPT _SC_XOPEN_ENH_I18N _SC_XOPEN_LEGACY _SC_XOPEN_REALTIME _SC_XOPEN_REALTIME_THREADS _SC_XOPEN_SHM _SC_XOPEN_STREAMS _SC_XOPEN_UNIX _SC_XOPEN_VERSION _SC_XOPEN_XCU_VERSION _SC_XBS5_ILP32_OFF32 _SC_XBS5_ILP32_OFFBIG _SC_XBS5_LP64_OFF64 _SC_XBS5_LPBIG_OFFBIG _SC_SS_REPL_MAX _SC_TRACE_EVENT_NAME_MAX _SC_TRACE_NAME_MAX _SC_TRACE_SYS_MAX _SC_TRACE_USER_EVENT_MAX _SC_PASS_MAX ].each {|c| cg.const(c) } end end libconstantine-java-0.7/gen/const/Fcntl.rb0000644000175000017500000000145311316212262017246 0ustar niconicorequire '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 libconstantine-java-0.7/gen/const/Shutdown.rb0000644000175000017500000000040411316212262020006 0ustar niconicorequire 'gen/ConstGenerator' def gen_shutdown_java(options) ConstGenerator.new 'platform.shutdown', options do |cg| cg.include "sys/socket.h" cg.type = :bitmask %w[ SHUT_RD SHUT_WR SHUT_RDWR ].each {|c| cg.const c} end endlibconstantine-java-0.7/gen/const/PRIO.rb0000644000175000017500000000041611316212262016747 0ustar niconicorequire 'gen/ConstGenerator' def gen_prio_java(options) ConstGenerator.new 'platform.prio', options do |cg| cg.include "sys/resource.h" %w[ PRIO_MIN PRIO_PROCESS PRIO_PGRP PRIO_USER PRIO_MAX ].each {|c| cg.const c } end end libconstantine-java-0.7/gen/const/Errno.rb0000644000175000017500000000277311316212262017273 0ustar niconicorequire 'gen/ConstGenerator' def gen_errno_java(options) ConstGenerator.new 'platform.errno', options do |cg| cg.include "errno.h" cg.include "string.h" cg.strfunc = "strerror" cg.unknown_range=[20000, 20999] consts = %w[ EPERM ENOENT ESRCH EINTR EIO ENXIO E2BIG ENOEXEC EBADF ECHILD EDEADLK ENOMEM EACCES EFAULT ENOTBLK EBUSY EEXIST EXDEV ENODEV ENOTDIR EISDIR EINVAL ENFILE EMFILE ENOTTY ETXTBSY EFBIG ENOSPC ESPIPE EROFS EMLINK EPIPE EDOM ERANGE EWOULDBLOCK EAGAIN EINPROGRESS EALREADY ENOTSOCK EDESTADDRREQ EMSGSIZE EPROTOTYPE ENOPROTOOPT EPROTONOSUPPORT ESOCKTNOSUPPORT EOPNOTSUPP EPFNOSUPPORT EAFNOSUPPORT EADDRINUSE EADDRNOTAVAIL ENETDOWN ENETUNREACH ENETRESET ECONNABORTED ECONNRESET ENOBUFS EISCONN ENOTCONN ESHUTDOWN ETOOMANYREFS ETIMEDOUT ECONNREFUSED ELOOP ENAMETOOLONG EHOSTDOWN EHOSTUNREACH ENOTEMPTY EUSERS EDQUOT ESTALE EREMOTE ENOLCK ENOSYS EOVERFLOW EIDRM ENOMSG EILSEQ EBADMSG EMULTIHOP ENODATA ENOLINK ENOSR ENOSTR EPROTO ETIME ] consts.each { |c| cg.const c } end end libconstantine-java-0.7/gen/const_generator.rb0000644000175000017500000001336111316212262020247 0ustar niconicorequire 'tempfile' require 'open3' module Constantine ## # ConstGenerator turns C constants into ruby values. class ConstGenerator @options = {} attr_reader :constants attr_reader :names attr_reader :type ## # Creates a new constant generator that uses +prefix+ as a name, and an # options hash. # # The only option is :required, which if set to true raises an error if a # constant you have requested was not found. # # When passed a block, #calculate is automatically called at the end of # the block, otherwise you must call it yourself. def initialize(prefix = nil, options = {}) @includes = [] @constants = {} @names = [] @prefix = prefix @unknown_range = { :first => 20000, :last => 29999 } @required = options[:required] @options = options if block_given? then yield self calculate self.class.options.merge(options) end end def self.options=(options) @options = options end def self.options @options end def [](name) @constants[name].value end ## # Request the value for C constant +name+. +format+ is a printf format # string to print the value out, and +cast+ is a C cast for the value. # +ruby_name+ allows you to give the constant an alternate ruby name for # #to_ruby. +converter+ or +converter_proc+ allow you to convert the # value from a string to the appropriate type for #to_ruby. def const(name, format = nil, cast = '', ruby_name = nil, converter = nil, &converter_proc) format ||= '%d' cast ||= '' if converter_proc and converter then raise ArgumentError, "Supply only converter or converter block" end converter = converter_proc if converter.nil? const = Constant.new name, format, cast, ruby_name, converter @constants[name.to_s] = const @names << name.to_s return const end def strfunc=(strfunc) @options[:to_str] = strfunc.to_s end def unknown_range=(range) @unknown_range = { :first => range[0], :last => range[1] } end def unknown_range @unknown_range end def type=(t) if t == :bitmask @type = t else raise "Invalid constant type #{t}" end end def calculate(options = {}) binary = File.join Dir.tmpdir, "rb_const_gen_bin_#{Process.pid}" Tempfile.open("#{@prefix}.const_generator") do |f| f.puts "#include " @includes.each do |inc| f.puts "#include <#{inc}>" end f.puts "#include \n\n" f.puts "int main(int argc, char **argv)\n{" process_lastError = options.has_key?(:LastError) if (process_lastError) f.puts "char buffer[1001];\n" end @constants.each_value do |const| str = options.has_key?(:to_str) ? "#{options[:to_str]}(#{const.name})" : "\"\"" if (process_lastError) f.puts <<-EOF #ifdef #{const.name} memset(buffer, 0, sizeof buffer); FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, #{const.name}, 0, buffer, 1000, NULL); printf("#{const.name} #{const.format} %s\\n", #{const.cast}#{const.name}, buffer); #endif EOF else f.puts <<-EOF #ifdef #{const.name} printf("#{const.name} #{const.format} %s\\n", #{const.cast}#{const.name}, #{str}); #endif EOF end end f.puts "\n\treturn 0;\n}" f.flush output = `gcc #{options[:cppflags]} -D_DARWIN_USE_64_BIT_INODE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -x c -Wall -Werror #{f.path} -o #{binary} 2>&1` unless $?.success? then output = output.split("\n").map { |l| "\t#{l}" }.join "\n" raise "Compilation error generating constants #{@prefix}:\n#{output}" end end output = `#{binary}` File.unlink(binary + (FFI::Platform.windows? ? ".exe" : "")) output.each_line do |line| line.strip! next if line.empty? line =~ /^(\S+)\s(\S+)\s?(.*?)\.?$/ const = @constants[$1] const.value = $2 const.description = $3 unless $3.strip.empty? end missing_constants = @constants.select do |name, constant| constant.value.nil? end.map { |name,| name } if @required and not missing_constants.empty? then raise "Missing required constants for #{@prefix}: #{missing_constants.join ', '}" end end def dump_constants(io) @constants.each do |name, constant| name = [@prefix, name].join '.' io.puts "#{name} = #{constant.converted_value}" end end ## # Outputs values for discovered constants. If the constant's value was # not discovered it is not omitted. def to_ruby @constants.sort_by { |name,| name }.map do |name, constant| if constant.value.nil? then "# #{name} not available" else constant.to_ruby end end.join "\n" end def include(i) @includes << i end end class ConstGenerator::Constant attr_reader :name, :format, :cast attr_accessor :value attr_accessor :description def initialize(name, format, cast, ruby_name = nil, converter=nil) @name = name @format = format @cast = cast @ruby_name = ruby_name @converter = converter @value = nil @description = nil end def converted_value if @converter @converter.call(@value) else @value end end def <=>(c) converted_value.to_i <=> c.converted_value.to_i end def ruby_name @ruby_name || @name end def to_ruby "#{ruby_name} = #{converted_value}" end end end libconstantine-java-0.7/Rakefile0000644000175000017500000001514311316212262015422 0ustar niconico$VERBOSE = true $verbose = Rake.application.options.trace require 'rubygems' require 'ffi' require 'fileutils' ICONSTANT = "com.kenai.constantine.Constant" PLATFORM_PREFIX = "com.kenai.constantine.platform" PLATFORM_DIR = "src/com/kenai/constantine/platform" OS = FFI::Platform::OS ARCH = FFI::Platform::ARCH IS_WINDOWS = OS =~ /^win/ if (IS_WINDOWS) CONSTANTS = ['LastError', 'Errno', 'OpenFlags', 'Signal'] else CONSTANTS = Dir["gen/const/*.rb"].map {|c| File.basename(c, ".rb") } CONSTANTS.delete('LastError') # this is Windows-specific end def gen_platform_constants(name, pkg, file_name, options = {}) meth = "gen_#{name.downcase}_java".to_sym FileUtils.makedirs(File.dirname(file_name)) File.open(file_name, "w") do |f| constants = send(meth, options).constants raise ArgumentError, "No constants generated for #{name}" if constants.empty? f.puts "// WARNING: This file is autogenerated. DO NOT EDIT!" f.puts "// Generated #{Time.now}" f.puts "package #{pkg};" f.puts "public enum #{name} implements #{ICONSTANT} {"; sep = nil comments = [] sorted = constants.values.reject { |c| c.value.nil? }.sort min_value, max_value = sorted.first.value, sorted.last.value constants.values.each_with_index do |c, i| if c.value.nil? comments << "// #{c.name} not defined" else if sep f.puts sep comments.each {|comm| f.puts "#{comm}" } comments.clear else sep = "," end f.print "#{c.name}(#{c.value})" end end f.puts ";" comments.each {|comm| f.puts "#{comm}" } f.puts "private final int value;" f.puts "private #{name}(int value) { this.value = value; }" f.puts "public static final long MIN_VALUE = #{min_value};" f.puts "public static final long MAX_VALUE = #{max_value};" f.puts "" # Generate the string description table unless constants.values.reject {|c| c.description.nil? }.empty? f.puts "static final class StringTable {" f.puts " public static final java.util.Map<#{name}, String> descriptions = generateTable();" f.puts " public static final java.util.Map<#{name}, String> generateTable() {" f.puts " java.util.Map<#{name}, String> map = new java.util.EnumMap<#{name}, String>(#{name}.class);" constants.values.each do |c| if !c.value.nil? f.puts " map.put(#{c.name}, \"#{c.description.nil? ? c.name : c.description}\");" end end f.puts " return map;" f.puts " }" f.puts "}" f.puts "public final String toString() { return StringTable.descriptions.get(this); }" end f.puts "public final int value() { return value; }" f.puts "}" end end def gen_fake_constants(name, pkg, file_name, options = {}) meth = "gen_#{name.downcase}_java".to_sym FileUtils.makedirs(File.dirname(file_name)) File.open(file_name, "w") do |f| cg = send(meth, options) names = cg.names f.puts "// WARNING: This file is autogenerated. DO NOT EDIT!" f.puts "// Generated #{Time.now}" f.puts "package #{pkg};" f.puts "public enum #{name} implements #{ICONSTANT} {"; max_value = 0 names.each_with_index do |c, i| max_value = cg.type ==:bitmask ? "0x#{(1 << i).to_s(16)}" : i + 1 f.puts "#{c}(#{max_value})#{i < (names.length - 1) ? ',' : ';'}" end f.puts "private final int value;" f.puts "private #{name}(int value) { this.value = value; }" f.puts "public static final long MIN_VALUE = 1;" f.puts "public static final long MAX_VALUE = #{max_value};" f.puts "public final int value() { return value; }" f.puts "}" end end def gen_xplatform_constants(name, pkg, file_name, options = {}) meth = "gen_#{name.downcase}_java".to_sym FileUtils.makedirs(File.dirname(file_name)) File.open(file_name, "w") do |f| cg = send(meth, options) names = cg.names f.puts "// WARNING: This file is autogenerated. DO NOT EDIT!" f.puts "// Generated #{Time.now}" f.puts "package #{pkg};" f.puts "public enum #{name} implements #{ICONSTANT} {"; names.each { |n| f.puts "#{n}," } f.puts "__UNKNOWN_CONSTANT__;" unknown_range = cg.unknown_range f.puts "private static final ConstantResolver<#{name}> resolver = " if cg.type == :bitmask f.puts "ConstantResolver.getBitmaskResolver(#{name}.class);" elsif !unknown_range.empty? f.puts "ConstantResolver.getResolver(#{name}.class, #{unknown_range[:first]}, #{unknown_range[:last]});" else f.puts "ConstantResolver.getResolver(#{name}.class);" end f.puts "public final int value() { return resolver.intValue(this); }" f.puts "public final String description() { return resolver.description(this); }" f.puts "public final String toString() { return description(); }" f.puts "public final static #{name} valueOf(int value) { " f.puts " return resolver.valueOf(value);" f.puts "}" f.puts "}" end end xplatform_files = [] platform_files = [] fake_files = [] CONSTANTS.each do |name| load File.join(File.dirname(__FILE__), "gen", "const", "#{name}.rb") platform_files << File.join(PLATFORM_DIR, OS, "#{name}.java") file File.join(PLATFORM_DIR, OS, "#{name}.java") do |t| gen_platform_constants(name, "#{PLATFORM_PREFIX}.#{OS}", t.name) end xplatform_files << File.join(PLATFORM_DIR, "#{name}.java") file File.join(PLATFORM_DIR, "#{name}.java") do |t| gen_xplatform_constants(name, PLATFORM_PREFIX, t.name) end fake_files << File.join(PLATFORM_DIR, "fake", "#{name}.java") file File.join(PLATFORM_DIR, "fake", "#{name}.java") do |t| gen_fake_constants(name, "#{PLATFORM_PREFIX}.fake", t.name) end end task :default => :generate task :generate => platform_files + xplatform_files + fake_files task :regen => [ :clean, :generate ] task :clean => [ "clean:platform", "clean:xplatform", "clean:fake" ] namespace :clean do task :platform do FileUtils.rm_f(platform_files) end task :xplatform do FileUtils.rm_f(xplatform_files) end task :fake do FileUtils.rm_f(fake_files) end end namespace :generate do desc "Generate missing architecture constants" task :platform => platform_files desc "Generate missing platform-independent constants" task :xplatform => xplatform_files desc "Generate missing fake constants" task :fake => fake_files end namespace :regen do desc "Force regeneration of architecture constants" task :platform => [ "clean:platform" ] + platform_files desc "Force regeneration of platform-independent constants" task :xplatform => [ "clean:xplatform" ] + xplatform_files desc "Force regeneration of fake constants" task :fake => [ "clean:fake" ] + fake_files end libconstantine-java-0.7/test/0000755000175000017500000000000011316212262014730 5ustar niconicolibconstantine-java-0.7/test/constantine/0000755000175000017500000000000011316212262017255 5ustar niconicolibconstantine-java-0.7/test/constantine/platform/0000755000175000017500000000000011316212262021101 5ustar niconicolibconstantine-java-0.7/test/constantine/platform/ErrnoTest.java0000644000175000017500000000540211316212262023672 0ustar niconico/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package constantine.platform; import com.kenai.constantine.platform.Errno; import com.kenai.constantine.ConstantSet; import java.util.EnumSet; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import static org.junit.Assert.*; /** * * @author wayne */ public class ErrnoTest { private ConstantSet constants; public ErrnoTest() { } @BeforeClass public static void setUpClass() throws Exception { } @AfterClass public static void tearDownClass() throws Exception { } @Before public void setUp() { constants = ConstantSet.getConstantSet("Errno"); } @After public void tearDown() { } // TODO add test methods here. // The methods must be annotated with annotation @Test. For example: // // @Test // public void hello() {} @Test public void intValue() { for (Errno errno : EnumSet.allOf(Errno.class)) { if (errno == Errno.__UNKNOWN_CONSTANT__) { continue; } int val = constants.getValue(errno.name()); assertEquals("Incorrect integer value for " + errno.name() + ",", val, errno.value()); } } @Test public void valueOf() { for (Errno errno : EnumSet.allOf(Errno.class)) { if (errno == Errno.__UNKNOWN_CONSTANT__) { continue; } Errno e = Errno.valueOf(errno.value()); assertEquals("Incorrect integer value for " + errno.name() + ",", errno.value(), e.value()); } } @Test public void description() { for (Errno errno : Errno.values()) { if (errno == Errno.__UNKNOWN_CONSTANT__) { continue; } assertNotSame("Lack of description for " + errno.name(), errno.name(), errno.toString()); } } @Test public void expected() { for (Errno e : new Errno[] {Errno.ENOENT, Errno.EINVAL, Errno.EISDIR}) { assertNotSame(e.name() + " is unknown", Errno.__UNKNOWN_CONSTANT__, e); } } @Test public void unknownConstant() { Errno none = Errno.valueOf(~0); assertEquals("Incorrect errno for unknown value", Errno.__UNKNOWN_CONSTANT__, none); } @Test public void reverseLookupCache() { for (Errno errno : EnumSet.allOf(Errno.class)) { if (errno == Errno.__UNKNOWN_CONSTANT__) { continue; } Errno e1 = Errno.valueOf(errno.value()); Errno e2 = Errno.valueOf(errno.value()); assertEquals("Cached Enum values differ for " + errno.name() + ",", e1, e2); } } }libconstantine-java-0.7/test/constantine/platform/BitmaskTest.java0000644000175000017500000000163211316212262024200 0ustar niconico package constantine.platform; import com.kenai.constantine.platform.OpenFlags; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import static org.junit.Assert.*; public class BitmaskTest { public BitmaskTest() { } @BeforeClass public static void setUpClass() throws Exception { } @AfterClass public static void tearDownClass() throws Exception { } @Before public void setUp() { } @After public void tearDown() { } @Test public void openflags() { int mask = 0; for (OpenFlags f : OpenFlags.values()) { if (f != OpenFlags.O_ACCMODE && f != OpenFlags.O_FSYNC) { assertFalse("OpenFlag " + f.name() + " already found", (mask & f.value()) != 0); } mask |= f.value(); } } }libconstantine-java-0.7/pom.xml0000644000175000017500000000623411316212262015273 0ustar niconico 4.0.0 org.jruby.extras constantine jar 0.7 constantine A set of platform constants (e.g. errno values) http://constantine.kenai.com The MIT License http://www.opensource.org/licenses/mit-license.php repo scm:hg:https://kenai.com/hg/constantine~mercurial https://kenai.com/hg/constantine~mercurial codehaus-jruby-repository JRuby Central Repository dav:https://dav.codehaus.org/repository/jruby codehaus-jruby-snapshot-repository JRuby Central Development Repository dav:https://dav.codehaus.org/snapshots.repository/jruby maven2-repository.dev.java.net Java.net Repository for Maven http://download.java.net/maven/2/ codehaus Codehaus Repository true false http://repository.codehaus.org wmeissner Wayne Meissner wmeissner@gmail.com junit junit 4.5 test build build/classes build/test/classes src test org.apache.maven.plugins maven-compiler-plugin 2.0.2 1.5 1.5 org.jvnet.wagon-svn wagon-svn 1.8 org.apache.maven.wagon wagon-webdav build/report libconstantine-java-0.7/LICENSE0000644000175000017500000000204611316212262014760 0ustar niconicoCopyright (c) 2008 The JRuby project. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. libconstantine-java-0.7/src/0000755000175000017500000000000011316212262014540 5ustar niconicolibconstantine-java-0.7/src/com/0000755000175000017500000000000011316212262015316 5ustar niconicolibconstantine-java-0.7/src/com/kenai/0000755000175000017500000000000011316212262016405 5ustar niconicolibconstantine-java-0.7/src/com/kenai/constantine/0000755000175000017500000000000011316212262020732 5ustar niconicolibconstantine-java-0.7/src/com/kenai/constantine/Constant.java0000644000175000017500000000233011316212262023364 0ustar niconico/* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package com.kenai.constantine; /** * A class that represents a native platform constant */ public interface Constant { int value(); String name(); } libconstantine-java-0.7/src/com/kenai/constantine/ConstantSet.java0000644000175000017500000002051711316212262024047 0ustar niconico/* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package com.kenai.constantine; import java.lang.reflect.Field; import java.util.AbstractSet; import java.util.Collection; import java.util.EnumSet; import java.util.Iterator; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.logging.Level; import java.util.logging.Logger; /** * Provides forward and reverse lookup for platform constants */ public class ConstantSet extends AbstractSet { private final ConcurrentMap nameToConstant; private final ConcurrentMap valueToConstant; private final Set constants; private final Class enumClass; private volatile Long minValue; private volatile Long maxValue; private static final ConcurrentMap constantSets = new ConcurrentHashMap(); private static final Object lock = new Object(); /** * Gets a ConstantSet * * @param name The name of the constant set to get. * @return A ConstantSet. */ public static ConstantSet getConstantSet(String name) { ConstantSet constants = constantSets.get(name); if (constants == null) { synchronized (lock) { if (!constantSets.containsKey(name)) { Class enumClass = getEnumClass(name); if (enumClass == null) { return null; } if (!Constant.class.isAssignableFrom(enumClass)) { throw new ClassCastException("class for " + name + " does not implement Constant interface"); } constants = new ConstantSet(enumClass); constantSets.put(name, constants); } } } return constants; } /** * Gets the {@link Enum} class for the constant name space. * * @param name The name of the constants to locate. * @return A Class. */ @SuppressWarnings("unchecked") private static final Class getEnumClass(String name) { String[] prefixes = { Platform.getPlatform().getPackageName(), Platform.getPlatform().getOSPackageName(), Platform.class.getPackage().getName() + ".platform.fake", }; for (String prefix : prefixes) { try { return (Class) Class.forName(prefix + "." + name).asSubclass(Enum.class); } catch (ClassNotFoundException ex) { } } return null; } /** * Creates a new instance of ConstantSet * * @param enumClass The Enum subclass to load constants from. */ @SuppressWarnings("unchecked") private ConstantSet(Class enumClass) { this.enumClass = enumClass; nameToConstant = new ConcurrentHashMap(); valueToConstant = new ConcurrentHashMap(); constants = (Set) EnumSet.allOf(enumClass); } /** * Gets the constant for a name. * * @param name The name of the system constant (e.g. "EINVAL"). * @return A {@link Constant} instance. */ @SuppressWarnings("unchecked") public Constant getConstant(String name) { Constant c = nameToConstant.get(name); if (c == null) { try { nameToConstant.put(name, c = Constant.class.cast(Enum.valueOf(enumClass, name))); } catch (IllegalArgumentException ex) { return null; } } return c; } /** * Gets the constant for a name. * * @param name The name of the system constant (e.g. "EINVAL"). * @return A {@link Constant} instance. */ @SuppressWarnings("unchecked") public Constant getConstant(int value) { Constant c = valueToConstant.get(value); if (c == null) { if (c == null) { for (Constant c2 : constants) { if (c2.value() == value) { c = c2; break; } } if (c != null) { valueToConstant.put(value, c); } } } return c; } /** * Gets the integer value of a platform constant. * * @param name The name of the platform constant to look up (e.g. "EINVAL"). * @return The integer value of the constant. */ public int getValue(String name) { Constant c = getConstant(name); return c != null ? c.value() : 0; } /** * Gets the name of a platform constant value. * * @param value The integer value to look up. * @return The name of the constant. */ public String getName(int value) { Constant c = getConstant(value); return c != null ? c.name() : "unknown"; } private Long getLongField(String name, long defaultValue) { try { Field f = enumClass.getField("MIN_VALUE"); return (Long) f.get(enumClass); } catch (NoSuchFieldException ex) { return defaultValue; } catch (RuntimeException ex) { throw ex; } catch (Exception ex) { throw new RuntimeException(ex); } } public long minValue() { if (minValue == null) { minValue = getLongField("MIN_VALUE", Integer.MIN_VALUE); } return minValue.intValue(); } public long maxValue() { if (maxValue == null) { maxValue = getLongField("MAX_VALUE", Integer.MAX_VALUE); } return maxValue.intValue(); } private final class ConstantIterator implements Iterator { private final Iterator it; ConstantIterator(Collection constants) { this.it = constants.iterator(); } public boolean hasNext() { return it.hasNext(); } public void remove() { throw new UnsupportedOperationException(); } public Constant next() { return it.next(); } } @Override public Iterator iterator() { return new ConstantIterator(constants); } @Override public int size() { return constants.size(); } @Override public boolean contains(Object o) { return o != null && o.getClass().equals(enumClass); } public static void main(String[] args) { ConstantSet errnos = ConstantSet.getConstantSet("Errno"); for (Constant c : errnos) { System.out.println(c.name() + "=" + c.value()); } com.kenai.constantine.platform.Errno errno = com.kenai.constantine.platform.Errno.valueOf(22); System.out.println("errno for 22=" + errno); System.out.println("errno for 101=" + com.kenai.constantine.platform.Errno.valueOf(101)); System.out.println("errno for 22=" + com.kenai.constantine.platform.Errno.valueOf(22)); System.out.println("EINVAL.value() = " + com.kenai.constantine.platform.Errno.EINVAL.value()); System.out.println("E2BIG.value() = " + com.kenai.constantine.platform.Errno.E2BIG.value()); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/0000755000175000017500000000000011316212262022556 5ustar niconicolibconstantine-java-0.7/src/com/kenai/constantine/platform/Errno.java0000644000175000017500000000262111316212262024507 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:29 +1000 2009 package com.kenai.constantine.platform; public enum Errno implements com.kenai.constantine.Constant { EPERM, ENOENT, ESRCH, EINTR, EIO, ENXIO, E2BIG, ENOEXEC, EBADF, ECHILD, EDEADLK, ENOMEM, EACCES, EFAULT, ENOTBLK, EBUSY, EEXIST, EXDEV, ENODEV, ENOTDIR, EISDIR, EINVAL, ENFILE, EMFILE, ENOTTY, ETXTBSY, EFBIG, ENOSPC, ESPIPE, EROFS, EMLINK, EPIPE, EDOM, ERANGE, EWOULDBLOCK, EAGAIN, EINPROGRESS, EALREADY, ENOTSOCK, EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT, ESOCKTNOSUPPORT, EOPNOTSUPP, EPFNOSUPPORT, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN, ENETUNREACH, ENETRESET, ECONNABORTED, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ESHUTDOWN, ETOOMANYREFS, ETIMEDOUT, ECONNREFUSED, ELOOP, ENAMETOOLONG, EHOSTDOWN, EHOSTUNREACH, ENOTEMPTY, EUSERS, EDQUOT, ESTALE, EREMOTE, ENOLCK, ENOSYS, EOVERFLOW, EIDRM, ENOMSG, EILSEQ, EBADMSG, EMULTIHOP, ENODATA, ENOLINK, ENOSR, ENOSTR, EPROTO, ETIME, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getResolver(Errno.class, 20000, 20999); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static Errno valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/ProtocolFamily.java0000644000175000017500000000176711316212262026377 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:30 +1000 2009 package com.kenai.constantine.platform; public enum ProtocolFamily implements com.kenai.constantine.Constant { PF_UNSPEC, PF_LOCAL, PF_UNIX, PF_INET, PF_IMPLINK, PF_PUP, PF_CHAOS, PF_NS, PF_ISO, PF_OSI, PF_ECMA, PF_DATAKIT, PF_CCITT, PF_SNA, PF_DECnet, PF_DLI, PF_LAT, PF_HYLINK, PF_APPLETALK, PF_ROUTE, PF_LINK, PF_XTP, PF_COIP, PF_CNT, PF_SIP, PF_IPX, PF_RTIP, PF_PIP, PF_NDRV, PF_ISDN, PF_KEY, PF_INET6, PF_NATM, PF_SYSTEM, PF_NETBIOS, PF_PPP, PF_ATM, PF_NETGRAPH, PF_MAX, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getResolver(ProtocolFamily.class, 20000, 29999); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static ProtocolFamily valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/Shutdown.java0000644000175000017500000000121011316212262025226 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:30 +1000 2009 package com.kenai.constantine.platform; public enum Shutdown implements com.kenai.constantine.Constant { SHUT_RD, SHUT_WR, SHUT_RDWR, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getBitmaskResolver(Shutdown.class); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static Shutdown valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/Fcntl.java0000644000175000017500000000174611316212262024477 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:30 +1000 2009 package com.kenai.constantine.platform; public enum Fcntl implements com.kenai.constantine.Constant { 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, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getResolver(Fcntl.class, 20000, 20999); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static Fcntl valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/PRIO.java0000644000175000017500000000123211316212262024170 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:31 +1000 2009 package com.kenai.constantine.platform; public enum PRIO implements com.kenai.constantine.Constant { PRIO_MIN, PRIO_PROCESS, PRIO_PGRP, PRIO_USER, PRIO_MAX, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getResolver(PRIO.class, 20000, 29999); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static PRIO valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/ConstantResolver.java0000644000175000017500000001603611316212262026742 0ustar niconico/* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package com.kenai.constantine.platform; import com.kenai.constantine.Constant; import com.kenai.constantine.ConstantSet; import java.lang.reflect.Array; import java.util.EnumSet; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicInteger; /** * Provides forward and reverse lookup utilities to cross-platform enums */ class ConstantResolver> { public static final String __UNKNOWN_CONSTANT__ = "__UNKNOWN_CONSTANT__"; private final Object modLock = new Object(); private final Class enumType; private final Map reverseLookupMap = new ConcurrentHashMap(); private final AtomicInteger nextUnknown;; private final int lastUnknown; private final boolean bitmask; private Constant[] cache = null; private volatile E[] valueCache = null; private volatile int cacheGuard = 0; private volatile ConstantSet constants; private ConstantResolver(Class enumType) { this(enumType, Integer.MIN_VALUE, Integer.MIN_VALUE + 1000, false); } private ConstantResolver(Class enumType, int firstUnknown, int lastUnknown, boolean bitmask) { this.enumType = enumType; this.nextUnknown = new AtomicInteger(firstUnknown); this.lastUnknown = lastUnknown; this.bitmask = bitmask; } static final > ConstantResolver getResolver(Class enumType) { return new ConstantResolver(enumType); } static final > ConstantResolver getResolver(Class enumType, int first, int last) { return new ConstantResolver(enumType, first, last, false); } static final > ConstantResolver getBitmaskResolver(Class enumType) { return new ConstantResolver(enumType, 0, 0x80000000, true); } private static final class UnknownConstant implements Constant { private final int value; private final String name; UnknownConstant(int value, String name) { this.value = value; this.name = name; } public int value() { return value; } public String name() { return name; } @Override public String toString() { return name; } } private Constant getConstant(E e) { Constant c; if (cacheGuard != 0 && (c = cache[e.ordinal()]) != null) { // read volatile guard return c; } // fallthru to slow lookup+add synchronized (modLock) { // Recheck, in case another thread loaded the table if (cacheGuard != 0 && (c = cache[e.ordinal()]) != null) { return c; } EnumSet enums = EnumSet.allOf(enumType); ConstantSet cset = getConstants(); if (cache == null) { cache = new Constant[enums.size()]; } long known = 0, unknown = 0; for (Enum v : enums) { c = cset.getConstant(v.name()); if (c == null) { if (bitmask) { // Flag the value as unknown - real values will be // inserted once all values are resolved, so there are // no collisions unknown |= (1L << v.ordinal()); c = new UnknownConstant(0, v.name()); } else { c = new UnknownConstant(nextUnknown.getAndAdd(1), v.name()); } } else if (bitmask) { known |= c.value(); } cache[v.ordinal()] = c; } // // For bitmask constant sets, we generate bitmask values for missing // constants by utilising unused bits // if (bitmask) { long mask = 0; while ((mask = Long.lowestOneBit(unknown)) != 0) { int index = Long.numberOfTrailingZeros(mask); int sparebit = Long.numberOfTrailingZeros(Long.lowestOneBit(~known)); int value = 1 << sparebit; cache[index] = new UnknownConstant(value, cache[index].name()); known |= value; unknown &= ~(1L << index); } } cacheGuard = 1; // write volatile guard } return cache[e.ordinal()]; } final int intValue(E e) { return getConstant(e).value(); } final String description(E e) { return getConstant(e).toString(); } @SuppressWarnings("unchecked") final E valueOf(int value) { E e; if (value >= 0 && value < 256 && valueCache != null && (e = valueCache[value]) != null) { return e; } e = reverseLookupMap.get(value); if (e != null) { return e; } Constant c = getConstants().getConstant(value); if (c != null) { try { e = Enum.valueOf(enumType, c.name()); reverseLookupMap.put(value, e); if (c.value() >= 0 && c.value() < 256) { E[] values = valueCache; if (values == null) { values = (E[]) Array.newInstance(enumType, 256); } values[c.value()] = e; valueCache = values; } return e; } catch (IllegalArgumentException ex) {} } return Enum.valueOf(enumType, __UNKNOWN_CONSTANT__); } private final ConstantSet getConstants() { if (constants == null) { constants = ConstantSet.getConstantSet(enumType.getSimpleName()); if (constants == null) { throw new RuntimeException("Could not load platform constants for " + enumType.getSimpleName()); } } return constants; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/0000755000175000017500000000000011316212262024170 5ustar niconicolibconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/Errno.java0000644000175000017500000001317111316212262026123 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:25:10 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum Errno implements com.kenai.constantine.Constant { EPERM(1), ENOENT(2), ESRCH(3), EINTR(4), EIO(5), ENXIO(6), E2BIG(7), ENOEXEC(8), EBADF(9), ECHILD(10), EDEADLK(11), ENOMEM(12), EACCES(13), EFAULT(14), ENOTBLK(15), EBUSY(16), EEXIST(17), EXDEV(18), ENODEV(19), ENOTDIR(20), EISDIR(21), EINVAL(22), ENFILE(23), EMFILE(24), ENOTTY(25), ETXTBSY(26), EFBIG(27), ENOSPC(28), ESPIPE(29), EROFS(30), EMLINK(31), EPIPE(32), EDOM(33), ERANGE(34), EWOULDBLOCK(35), EAGAIN(35), EINPROGRESS(36), EALREADY(37), ENOTSOCK(38), EDESTADDRREQ(39), EMSGSIZE(40), EPROTOTYPE(41), ENOPROTOOPT(42), EPROTONOSUPPORT(43), ESOCKTNOSUPPORT(44), EOPNOTSUPP(45), EPFNOSUPPORT(46), EAFNOSUPPORT(47), EADDRINUSE(48), EADDRNOTAVAIL(49), ENETDOWN(50), ENETUNREACH(51), ENETRESET(52), ECONNABORTED(53), ECONNRESET(54), ENOBUFS(55), EISCONN(56), ENOTCONN(57), ESHUTDOWN(58), ETOOMANYREFS(59), ETIMEDOUT(60), ECONNREFUSED(61), ELOOP(62), ENAMETOOLONG(63), EHOSTDOWN(64), EHOSTUNREACH(65), ENOTEMPTY(66), EUSERS(68), EDQUOT(69), ESTALE(70), EREMOTE(71), ENOLCK(77), ENOSYS(78), EOVERFLOW(84), EIDRM(82), ENOMSG(83), EILSEQ(86), EBADMSG(89), EMULTIHOP(90), // ENODATA not defined ENOLINK(91), // ENOSR not defined // ENOSTR not defined EPROTO(92); // ETIME not defined private final int value; private Errno(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 92; static final class StringTable { public static final java.util.Map descriptions = generateTable(); public static final java.util.Map generateTable() { java.util.Map map = new java.util.EnumMap(Errno.class); map.put(EPERM, "Operation not permitted"); map.put(ENOENT, "No such file or directory"); map.put(ESRCH, "No such process"); map.put(EINTR, "Interrupted system call"); map.put(EIO, "Input/output error"); map.put(ENXIO, "Device not configured"); map.put(E2BIG, "Argument list too long"); map.put(ENOEXEC, "Exec format error"); map.put(EBADF, "Bad file descriptor"); map.put(ECHILD, "No child processes"); map.put(EDEADLK, "Resource deadlock avoided"); map.put(ENOMEM, "Cannot allocate memory"); map.put(EACCES, "Permission denied"); map.put(EFAULT, "Bad address"); map.put(ENOTBLK, "Block device required"); map.put(EBUSY, "Device busy"); map.put(EEXIST, "File exists"); map.put(EXDEV, "Cross-device link"); map.put(ENODEV, "Operation not supported by device"); map.put(ENOTDIR, "Not a directory"); map.put(EISDIR, "Is a directory"); map.put(EINVAL, "Invalid argument"); map.put(ENFILE, "Too many open files in system"); map.put(EMFILE, "Too many open files"); map.put(ENOTTY, "Inappropriate ioctl for device"); map.put(ETXTBSY, "Text file busy"); map.put(EFBIG, "File too large"); map.put(ENOSPC, "No space left on device"); map.put(ESPIPE, "Illegal seek"); map.put(EROFS, "Read-only file system"); map.put(EMLINK, "Too many links"); map.put(EPIPE, "Broken pipe"); map.put(EDOM, "Numerical argument out of domain"); map.put(ERANGE, "Result too large"); map.put(EWOULDBLOCK, "Resource temporarily unavailable"); map.put(EAGAIN, "Resource temporarily unavailable"); map.put(EINPROGRESS, "Operation now in progress"); map.put(EALREADY, "Operation already in progress"); map.put(ENOTSOCK, "Socket operation on non-socket"); map.put(EDESTADDRREQ, "Destination address required"); map.put(EMSGSIZE, "Message too long"); map.put(EPROTOTYPE, "Protocol wrong type for socket"); map.put(ENOPROTOOPT, "Protocol not available"); map.put(EPROTONOSUPPORT, "Protocol not supported"); map.put(ESOCKTNOSUPPORT, "Socket type not supported"); map.put(EOPNOTSUPP, "Operation not supported"); map.put(EPFNOSUPPORT, "Protocol family not supported"); map.put(EAFNOSUPPORT, "Address family not supported by protocol family"); map.put(EADDRINUSE, "Address already in use"); map.put(EADDRNOTAVAIL, "Can't assign requested address"); map.put(ENETDOWN, "Network is down"); map.put(ENETUNREACH, "Network is unreachable"); map.put(ENETRESET, "Network dropped connection on reset"); map.put(ECONNABORTED, "Software caused connection abort"); map.put(ECONNRESET, "Connection reset by peer"); map.put(ENOBUFS, "No buffer space available"); map.put(EISCONN, "Socket is already connected"); map.put(ENOTCONN, "Socket is not connected"); map.put(ESHUTDOWN, "Can't send after socket shutdown"); map.put(ETOOMANYREFS, "Too many references: can't splice"); map.put(ETIMEDOUT, "Operation timed out"); map.put(ECONNREFUSED, "Connection refused"); map.put(ELOOP, "Too many levels of symbolic links"); map.put(ENAMETOOLONG, "File name too long"); map.put(EHOSTDOWN, "Host is down"); map.put(EHOSTUNREACH, "No route to host"); map.put(ENOTEMPTY, "Directory not empty"); map.put(EUSERS, "Too many users"); map.put(EDQUOT, "Disc quota exceeded"); map.put(ESTALE, "Stale NFS file handle"); map.put(EREMOTE, "Too many levels of remote in path"); map.put(ENOLCK, "No locks available"); map.put(ENOSYS, "Function not implemented"); map.put(EOVERFLOW, "Value too large to be stored in data type"); map.put(EIDRM, "Identifier removed"); map.put(ENOMSG, "No message of desired type"); map.put(EILSEQ, "Illegal byte sequence"); map.put(EBADMSG, "Bad message"); map.put(EMULTIHOP, "Multihop attempted"); map.put(ENOLINK, "Link has been severed"); map.put(EPROTO, "Protocol error"); return map; } } public final String toString() { return StringTable.descriptions.get(this); } public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/ProtocolFamily.java0000644000175000017500000000171711316212262030004 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:25:11 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum ProtocolFamily implements com.kenai.constantine.Constant { PF_UNSPEC(0), PF_LOCAL(1), PF_UNIX(1), PF_INET(2), PF_IMPLINK(3), PF_PUP(4), PF_CHAOS(5), // PF_NS not defined PF_ISO(7), PF_OSI(7), PF_ECMA(8), PF_DATAKIT(9), PF_CCITT(10), PF_SNA(11), PF_DECnet(12), PF_DLI(13), PF_LAT(14), PF_HYLINK(15), PF_APPLETALK(16), PF_ROUTE(17), PF_LINK(18), PF_XTP(19), PF_COIP(20), PF_CNT(21), PF_SIP(24), PF_IPX(23), PF_RTIP(22), PF_PIP(25), // PF_NDRV not defined PF_ISDN(26), PF_KEY(27), PF_INET6(28), PF_NATM(29), // PF_SYSTEM not defined PF_NETBIOS(6), // PF_PPP not defined PF_ATM(30), PF_NETGRAPH(32), PF_MAX(37); private final int value; private ProtocolFamily(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 37; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/Shutdown.java0000644000175000017500000000070311316212262026646 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:25:11 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum Shutdown implements com.kenai.constantine.Constant { SHUT_RD(0), SHUT_WR(1), SHUT_RDWR(2); private final int value; private Shutdown(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 2; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/Fcntl.java0000644000175000017500000000223611316212262026104 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:55:17 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum Fcntl implements com.kenai.constantine.Constant { FREAD(1), FWRITE(2), FAPPEND(8), FASYNC(64), FFSYNC(128), FNONBLOCK(4), FNDELAY(4), F_DUPFD(0), F_GETFD(1), F_SETFD(2), F_GETFL(3), F_SETFL(4), F_GETOWN(5), F_SETOWN(6), F_GETLK(7), F_SETLK(8), F_SETLKW(9), // F_CHKCLEAN not defined // F_PREALLOCATE not defined // F_SETSIZE not defined // F_RDADVISE not defined // F_RDAHEAD not defined // F_READBOOTSTRAP not defined // F_WRITEBOOTSTRAP not defined // F_NOCACHE not defined // F_LOG2PHYS not defined // F_GETPATH not defined // F_FULLFSYNC not defined // F_PATHPKG_CHECK not defined // F_FREEZE_FS not defined // F_THAW_FS not defined // F_GLOBAL_NOCACHE not defined // F_ADDSIGS not defined // F_MARKDEPENDENCY not defined F_RDLCK(1), F_UNLCK(2), F_WRLCK(3); // F_ALLOCATECONTIG not defined // F_ALLOCATEALL not defined private final int value; private Fcntl(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 128; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/PRIO.java0000644000175000017500000000074211316212262025607 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:25:12 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum PRIO implements com.kenai.constantine.Constant { PRIO_MIN(-20), PRIO_PROCESS(0), PRIO_PGRP(1), PRIO_USER(2), PRIO_MAX(20); private final int value; private PRIO(int value) { this.value = value; } public static final long MIN_VALUE = -20; public static final long MAX_VALUE = 20; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/SocketLevel.java0000644000175000017500000000100211316212262027244 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:25:13 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum SocketLevel implements com.kenai.constantine.Constant { SOL_SOCKET(65535); // SOL_IP not defined // SOL_TCP not defined // SOL_UDP not defined private final int value; private SocketLevel(int value) { this.value = value; } public static final long MIN_VALUE = 65535; public static final long MAX_VALUE = 65535; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/AddressFamily.java0000644000175000017500000000204511316212262027563 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:25:10 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum AddressFamily implements com.kenai.constantine.Constant { AF_UNSPEC(0), AF_LOCAL(1), AF_UNIX(1), AF_INET(2), AF_IMPLINK(3), AF_PUP(4), AF_CHAOS(5), // AF_NS not defined AF_ISO(7), AF_OSI(7), AF_ECMA(8), AF_DATAKIT(9), AF_CCITT(10), AF_SNA(11), AF_DECnet(12), AF_DLI(13), AF_LAT(14), AF_HYLINK(15), AF_APPLETALK(16), AF_ROUTE(17), AF_LINK(18), pseudo_AF_XTP(19), AF_COIP(20), AF_CNT(21), pseudo_AF_RTIP(22), AF_IPX(23), AF_SIP(24), pseudo_AF_PIP(25), // AF_NDRV not defined AF_ISDN(26), AF_E164(26), pseudo_AF_KEY(27), AF_INET6(28), AF_NATM(29), // AF_SYSTEM not defined AF_NETBIOS(6), // AF_PPP not defined AF_ATM(30), pseudo_AF_HDRCMPLT(31), AF_NETGRAPH(32), // AF_AX25 not defined AF_MAX(37); private final int value; private AddressFamily(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 37; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/RLIM.java0000644000175000017500000000101211316212262025570 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:25:12 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum RLIM implements com.kenai.constantine.Constant { RLIM_NLIMITS(0xb), RLIM_INFINITY(0xffffffff); // RLIM_SAVED_MAX not defined // RLIM_SAVED_CUR not defined private final int value; private RLIM(int value) { this.value = value; } public static final long MIN_VALUE = 0xb; public static final long MAX_VALUE = 0xffffffff; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/NameInfo.java0000644000175000017500000000106211316212262026526 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:25:12 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum NameInfo implements com.kenai.constantine.Constant { NI_MAXHOST(1025), NI_MAXSERV(32), NI_NOFQDN(1), NI_NUMERICHOST(2), NI_NAMEREQD(4), NI_NUMERICSERV(8), NI_DGRAM(16); // NI_WITHSCOPEID not defined private final int value; private NameInfo(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 1025; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/Sock.java0000644000175000017500000000077111316212262025737 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:25:12 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum Sock implements com.kenai.constantine.Constant { SOCK_STREAM(1), SOCK_DGRAM(2), SOCK_RAW(3), SOCK_RDM(4), SOCK_SEQPACKET(5), SOCK_MAXADDRLEN(255); private final int value; private Sock(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 255; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/SocketOption.java0000644000175000017500000000267411316212262027465 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:25:11 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum SocketOption implements com.kenai.constantine.Constant { SO_DEBUG(0x1), SO_ACCEPTCONN(0x2), SO_REUSEADDR(0x4), SO_KEEPALIVE(0x8), SO_DONTROUTE(0x10), SO_BROADCAST(0x20), SO_USELOOPBACK(0x40), SO_LINGER(0x80), SO_OOBINLINE(0x100), SO_REUSEPORT(0x200), SO_TIMESTAMP(0x400), SO_ACCEPTFILTER(0x1000), // SO_DONTTRUNC not defined // SO_WANTMORE not defined // SO_WANTOOBFLAG not defined SO_SNDBUF(0x1001), SO_RCVBUF(0x1002), SO_SNDLOWAT(0x1003), SO_RCVLOWAT(0x1004), SO_SNDTIMEO(0x1005), SO_RCVTIMEO(0x1006), SO_ERROR(0x1007), SO_TYPE(0x1008), // SO_NREAD not defined // SO_NKE not defined SO_NOSIGPIPE(0x800), // SO_NOADDRERR not defined // SO_NWRITE not defined // SO_REUSESHAREUID not defined SO_LABEL(0x1009), SO_PEERLABEL(0x1010); // SO_ATTACH_FILTER not defined // SO_BINDTODEVICE not defined // SO_DETACH_FILTER not defined // SO_NO_CHECK not defined // SO_PASSCRED not defined // SO_PEERCRED not defined // SO_PEERNAME not defined // SO_PRIORITY not defined // SO_SECURITY_AUTHENTICATION not defined // SO_SECURITY_ENCRYPTION_NETWORK not defined // SO_SECURITY_ENCRYPTION_TRANSPORT not defined private final int value; private SocketOption(int value) { this.value = value; } public static final long MIN_VALUE = 0x1; public static final long MAX_VALUE = 0x1010; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/RLIMIT.java0000644000175000017500000000145211316212262026035 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:25:12 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum RLIMIT implements com.kenai.constantine.Constant { RLIMIT_AS(10), RLIMIT_CORE(4), RLIMIT_CPU(0), RLIMIT_DATA(2), RLIMIT_FSIZE(1), // RLIMIT_LOCKS not defined RLIMIT_MEMLOCK(6), // RLIMIT_MSGQUEUE not defined // RLIMIT_NICE not defined // RLIMIT_NLIMITS not defined RLIMIT_NOFILE(8), RLIMIT_NPROC(7), // RLIMIT_OFILE not defined RLIMIT_RSS(5), // RLIMIT_RTPRIO not defined // RLIMIT_RTTIME not defined // RLIMIT_SIGPENDING not defined RLIMIT_STACK(3); private final int value; private RLIMIT(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 10; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/OpenFlags.java0000644000175000017500000000127611316212262026717 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:55:17 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum OpenFlags implements com.kenai.constantine.Constant { O_RDONLY(0), O_WRONLY(1), O_RDWR(2), O_ACCMODE(3), O_NONBLOCK(4), O_APPEND(8), O_SYNC(128), O_SHLOCK(16), O_EXLOCK(32), O_ASYNC(64), O_FSYNC(128), O_NOFOLLOW(256), O_CREAT(512), O_TRUNC(1024), O_EXCL(2048); // O_EVTONLY not defined // O_DIRECTORY not defined // O_SYMLINK not defined private final int value; private OpenFlags(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 2048; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/Sysconf.java0000644000175000017500000000655011316212262026465 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:25:11 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum Sysconf implements com.kenai.constantine.Constant { _SC_ARG_MAX(1), _SC_CHILD_MAX(2), _SC_CLK_TCK(3), _SC_NGROUPS_MAX(4), _SC_OPEN_MAX(5), _SC_JOB_CONTROL(6), _SC_SAVED_IDS(7), _SC_VERSION(8), _SC_BC_BASE_MAX(9), _SC_BC_DIM_MAX(10), _SC_BC_SCALE_MAX(11), _SC_BC_STRING_MAX(12), _SC_COLL_WEIGHTS_MAX(13), _SC_EXPR_NEST_MAX(14), _SC_LINE_MAX(15), _SC_RE_DUP_MAX(16), _SC_2_VERSION(17), _SC_2_C_BIND(18), _SC_2_C_DEV(19), _SC_2_CHAR_TERM(20), _SC_2_FORT_DEV(21), _SC_2_FORT_RUN(22), _SC_2_LOCALEDEF(23), _SC_2_SW_DEV(24), _SC_2_UPE(25), _SC_STREAM_MAX(26), _SC_TZNAME_MAX(27), _SC_ASYNCHRONOUS_IO(28), _SC_PAGESIZE(47), _SC_MEMLOCK(30), _SC_MEMLOCK_RANGE(31), _SC_MEMORY_PROTECTION(32), _SC_MESSAGE_PASSING(33), _SC_PRIORITIZED_IO(34), _SC_PRIORITY_SCHEDULING(35), _SC_REALTIME_SIGNALS(36), _SC_SEMAPHORES(37), _SC_FSYNC(38), _SC_SHARED_MEMORY_OBJECTS(39), _SC_SYNCHRONIZED_IO(40), _SC_TIMERS(41), _SC_AIO_LISTIO_MAX(42), _SC_AIO_MAX(43), _SC_AIO_PRIO_DELTA_MAX(44), _SC_DELAYTIMER_MAX(45), _SC_MQ_OPEN_MAX(46), _SC_MAPPED_FILES(29), _SC_RTSIG_MAX(48), _SC_SEM_NSEMS_MAX(49), _SC_SEM_VALUE_MAX(50), _SC_SIGQUEUE_MAX(51), _SC_TIMER_MAX(52), _SC_NPROCESSORS_CONF(57), _SC_NPROCESSORS_ONLN(58), _SC_2_PBS(59), _SC_2_PBS_ACCOUNTING(60), _SC_2_PBS_CHECKPOINT(61), _SC_2_PBS_LOCATE(62), _SC_2_PBS_MESSAGE(63), _SC_2_PBS_TRACK(64), _SC_ADVISORY_INFO(65), _SC_BARRIERS(66), _SC_CLOCK_SELECTION(67), _SC_CPUTIME(68), _SC_FILE_LOCKING(69), _SC_GETGR_R_SIZE_MAX(70), _SC_GETPW_R_SIZE_MAX(71), _SC_HOST_NAME_MAX(72), _SC_LOGIN_NAME_MAX(73), _SC_MONOTONIC_CLOCK(74), _SC_MQ_PRIO_MAX(75), _SC_READER_WRITER_LOCKS(76), _SC_REGEXP(77), _SC_SHELL(78), _SC_SPAWN(79), _SC_SPIN_LOCKS(80), _SC_SPORADIC_SERVER(81), _SC_THREAD_ATTR_STACKADDR(82), _SC_THREAD_ATTR_STACKSIZE(83), _SC_THREAD_CPUTIME(84), _SC_THREAD_DESTRUCTOR_ITERATIONS(85), _SC_THREAD_KEYS_MAX(86), _SC_THREAD_PRIO_INHERIT(87), _SC_THREAD_PRIO_PROTECT(88), _SC_THREAD_PRIORITY_SCHEDULING(89), _SC_THREAD_PROCESS_SHARED(90), _SC_THREAD_SAFE_FUNCTIONS(91), _SC_THREAD_SPORADIC_SERVER(92), _SC_THREAD_STACK_MIN(93), _SC_THREAD_THREADS_MAX(94), _SC_TIMEOUTS(95), _SC_THREADS(96), _SC_TRACE(97), _SC_TRACE_EVENT_FILTER(98), _SC_TRACE_INHERIT(99), _SC_TRACE_LOG(100), _SC_TTY_NAME_MAX(101), _SC_TYPED_MEMORY_OBJECTS(102), _SC_V6_ILP32_OFF32(103), _SC_V6_ILP32_OFFBIG(104), _SC_V6_LP64_OFF64(105), _SC_V6_LPBIG_OFFBIG(106), _SC_IPV6(118), _SC_RAW_SOCKETS(119), _SC_SYMLOOP_MAX(120), _SC_ATEXIT_MAX(107), _SC_IOV_MAX(56), _SC_PAGE_SIZE(47), _SC_XOPEN_CRYPT(108), _SC_XOPEN_ENH_I18N(109), _SC_XOPEN_LEGACY(110), _SC_XOPEN_REALTIME(111), _SC_XOPEN_REALTIME_THREADS(112), _SC_XOPEN_SHM(113), _SC_XOPEN_STREAMS(114), _SC_XOPEN_UNIX(115), _SC_XOPEN_VERSION(116), _SC_XOPEN_XCU_VERSION(117); // _SC_XBS5_ILP32_OFF32 not defined // _SC_XBS5_ILP32_OFFBIG not defined // _SC_XBS5_LP64_OFF64 not defined // _SC_XBS5_LPBIG_OFFBIG not defined // _SC_SS_REPL_MAX not defined // _SC_TRACE_EVENT_NAME_MAX not defined // _SC_TRACE_NAME_MAX not defined // _SC_TRACE_SYS_MAX not defined // _SC_TRACE_USER_EVENT_MAX not defined // _SC_PASS_MAX not defined private final int value; private Sysconf(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 120; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/Signal.java0000644000175000017500000000167711316212262026263 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:25:13 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum Signal implements com.kenai.constantine.Constant { SIGHUP(1), SIGINT(2), SIGQUIT(3), SIGILL(4), SIGTRAP(5), SIGABRT(6), SIGIOT(6), SIGBUS(10), SIGFPE(8), SIGKILL(9), SIGUSR1(30), SIGSEGV(11), SIGUSR2(31), SIGPIPE(13), SIGALRM(14), SIGTERM(15), // SIGSTKFLT not defined // SIGCLD not defined SIGCHLD(20), SIGCONT(19), SIGSTOP(17), SIGTSTP(18), SIGTTIN(21), SIGTTOU(22), SIGURG(16), SIGXCPU(24), SIGXFSZ(25), SIGVTALRM(26), SIGPROF(27), SIGWINCH(28), // SIGPOLL not defined SIGIO(23), // SIGPWR not defined SIGSYS(12), // SIGUNUSED not defined // SIGRTMIN not defined // SIGRTMAX not defined NSIG(32); private final int value; private Signal(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 32; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/TCP.java0000644000175000017500000000131311316212262025457 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:25:13 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum TCP implements com.kenai.constantine.Constant { TCP_MAX_SACK(4), TCP_MSS(512), TCP_MINMSS(216), TCP_MINMSSOVERLOAD(0), TCP_MAXWIN(65535), TCP_MAX_WINSHIFT(14), TCP_MAXBURST(4), TCP_MAXHLEN(60), TCP_MAXOLEN(40), TCP_NODELAY(1), TCP_MAXSEG(2), TCP_NOPUSH(4), TCP_NOOPT(8); // TCP_KEEPALIVE not defined // TCP_NSTATES not defined // TCP_RETRANSHZ not defined private final int value; private TCP(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 65535; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/IPProto.java0000644000175000017500000000163311316212262026372 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:25:11 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum IPProto implements com.kenai.constantine.Constant { IPPROTO_IP(0), IPPROTO_HOPOPTS(0), IPPROTO_ICMP(1), IPPROTO_IGMP(2), IPPROTO_IPIP(4), IPPROTO_TCP(6), IPPROTO_EGP(8), IPPROTO_PUP(12), IPPROTO_UDP(17), IPPROTO_IDP(22), IPPROTO_TP(29), IPPROTO_IPV6(41), IPPROTO_ROUTING(43), IPPROTO_FRAGMENT(44), IPPROTO_RSVP(46), IPPROTO_GRE(47), IPPROTO_ESP(50), IPPROTO_AH(51), IPPROTO_ICMPV6(58), IPPROTO_NONE(59), IPPROTO_DSTOPTS(60), IPPROTO_MTP(92), IPPROTO_ENCAP(98), IPPROTO_PIM(103), // IPPROTO_COMP not defined IPPROTO_SCTP(132), IPPROTO_RAW(255), IPPROTO_MAX(256); private final int value; private IPProto(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 256; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/INAddr.java0000644000175000017500000000121711316212262026135 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:25:10 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum INAddr implements com.kenai.constantine.Constant { INADDR_ANY(0), INADDR_BROADCAST(0xffffffff), INADDR_NONE(0xffffffff), INADDR_LOOPBACK(0x7f000001), INADDR_UNSPEC_GROUP(0xe0000000), INADDR_ALLHOSTS_GROUP(0xe0000001), INADDR_ALLRTRS_GROUP(0xe0000002), INADDR_MAX_LOCAL_GROUP(0xe00000ff); private final int value; private INAddr(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 0xffffffff; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/freebsd/WaitFlags.java0000644000175000017500000000103011316212262026706 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 15:25:14 -0800 2009 package com.kenai.constantine.platform.freebsd; public enum WaitFlags implements com.kenai.constantine.Constant { WNOHANG(0x1), WUNTRACED(0x2), // WSTOPPED not defined // WEXITED not defined WCONTINUED(0x4); // WNOWAIT not defined private final int value; private WaitFlags(int value) { this.value = value; } public static final long MIN_VALUE = 0x1; public static final long MAX_VALUE = 0x4; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/SocketLevel.java0000644000175000017500000000124411316212262025642 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:31 +1000 2009 package com.kenai.constantine.platform; public enum SocketLevel implements com.kenai.constantine.Constant { SOL_SOCKET, SOL_IP, SOL_TCP, SOL_UDP, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getResolver(SocketLevel.class, 20000, 29999); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static SocketLevel valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/AddressFamily.java0000644000175000017500000000206511316212262026153 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:28 +1000 2009 package com.kenai.constantine.platform; public enum AddressFamily implements com.kenai.constantine.Constant { AF_UNSPEC, AF_LOCAL, AF_UNIX, AF_INET, AF_IMPLINK, AF_PUP, AF_CHAOS, AF_NS, AF_ISO, AF_OSI, AF_ECMA, AF_DATAKIT, AF_CCITT, AF_SNA, AF_DECnet, AF_DLI, AF_LAT, AF_HYLINK, AF_APPLETALK, AF_ROUTE, AF_LINK, pseudo_AF_XTP, AF_COIP, AF_CNT, pseudo_AF_RTIP, AF_IPX, AF_SIP, pseudo_AF_PIP, AF_NDRV, AF_ISDN, AF_E164, pseudo_AF_KEY, AF_INET6, AF_NATM, AF_SYSTEM, AF_NETBIOS, AF_PPP, AF_ATM, pseudo_AF_HDRCMPLT, AF_NETGRAPH, AF_AX25, AF_MAX, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getResolver(AddressFamily.class, 20000, 29999); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static AddressFamily valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/RLIM.java0000644000175000017500000000123711316212262024167 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:29 +1000 2009 package com.kenai.constantine.platform; public enum RLIM implements com.kenai.constantine.Constant { RLIM_NLIMITS, RLIM_INFINITY, RLIM_SAVED_MAX, RLIM_SAVED_CUR, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getResolver(RLIM.class, 20000, 29999); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static RLIM valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/NameInfo.java0000644000175000017500000000133411316212262025116 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:32 +1000 2009 package com.kenai.constantine.platform; public enum NameInfo implements com.kenai.constantine.Constant { NI_MAXHOST, NI_MAXSERV, NI_NOFQDN, NI_NUMERICHOST, NI_NAMEREQD, NI_NUMERICSERV, NI_DGRAM, NI_WITHSCOPEID, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getResolver(NameInfo.class, 20000, 29999); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static NameInfo valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/0000755000175000017500000000000011316212262023725 5ustar niconicolibconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/Errno.java0000644000175000017500000001347311316212262025665 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:19:31 +0000 2009 package com.kenai.constantine.platform.sunos; public enum Errno implements com.kenai.constantine.Constant { EPERM(1), ENOENT(2), ESRCH(3), EINTR(4), EIO(5), ENXIO(6), E2BIG(7), ENOEXEC(8), EBADF(9), ECHILD(10), EDEADLK(45), ENOMEM(12), EACCES(13), EFAULT(14), ENOTBLK(15), EBUSY(16), EEXIST(17), EXDEV(18), ENODEV(19), ENOTDIR(20), EISDIR(21), EINVAL(22), ENFILE(23), EMFILE(24), ENOTTY(25), ETXTBSY(26), EFBIG(27), ENOSPC(28), ESPIPE(29), EROFS(30), EMLINK(31), EPIPE(32), EDOM(33), ERANGE(34), EWOULDBLOCK(11), EAGAIN(11), EINPROGRESS(150), EALREADY(149), ENOTSOCK(95), EDESTADDRREQ(96), EMSGSIZE(97), EPROTOTYPE(98), ENOPROTOOPT(99), EPROTONOSUPPORT(120), ESOCKTNOSUPPORT(121), EOPNOTSUPP(122), EPFNOSUPPORT(123), EAFNOSUPPORT(124), EADDRINUSE(125), EADDRNOTAVAIL(126), ENETDOWN(127), ENETUNREACH(128), ENETRESET(129), ECONNABORTED(130), ECONNRESET(131), ENOBUFS(132), EISCONN(133), ENOTCONN(134), ESHUTDOWN(143), ETOOMANYREFS(144), ETIMEDOUT(145), ECONNREFUSED(146), ELOOP(90), ENAMETOOLONG(78), EHOSTDOWN(147), EHOSTUNREACH(148), ENOTEMPTY(93), EUSERS(94), EDQUOT(49), ESTALE(151), EREMOTE(66), ENOLCK(46), ENOSYS(89), EOVERFLOW(79), EIDRM(36), ENOMSG(35), EILSEQ(88), EBADMSG(77), EMULTIHOP(74), ENODATA(61), ENOLINK(67), ENOSR(63), ENOSTR(60), EPROTO(71), ETIME(62); private final int value; private Errno(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 151; static final class StringTable { public static final java.util.Map descriptions = generateTable(); public static final java.util.Map generateTable() { java.util.Map map = new java.util.EnumMap(Errno.class); map.put(EPERM, "Not owner"); map.put(ENOENT, "No such file or directory"); map.put(ESRCH, "No such process"); map.put(EINTR, "Interrupted system call"); map.put(EIO, "I/O error"); map.put(ENXIO, "No such device or address"); map.put(E2BIG, "Arg list too long"); map.put(ENOEXEC, "Exec format error"); map.put(EBADF, "Bad file number"); map.put(ECHILD, "No child processes"); map.put(EDEADLK, "Deadlock situation detected/avoided"); map.put(ENOMEM, "Not enough space"); map.put(EACCES, "Permission denied"); map.put(EFAULT, "Bad address"); map.put(ENOTBLK, "Block device required"); map.put(EBUSY, "Device busy"); map.put(EEXIST, "File exists"); map.put(EXDEV, "Cross-device link"); map.put(ENODEV, "No such device"); map.put(ENOTDIR, "Not a directory"); map.put(EISDIR, "Is a directory"); map.put(EINVAL, "Invalid argument"); map.put(ENFILE, "File table overflow"); map.put(EMFILE, "Too many open files"); map.put(ENOTTY, "Inappropriate ioctl for device"); map.put(ETXTBSY, "Text file busy"); map.put(EFBIG, "File too large"); map.put(ENOSPC, "No space left on device"); map.put(ESPIPE, "Illegal seek"); map.put(EROFS, "Read-only file system"); map.put(EMLINK, "Too many links"); map.put(EPIPE, "Broken pipe"); map.put(EDOM, "Argument out of domain"); map.put(ERANGE, "Result too large"); map.put(EWOULDBLOCK, "Resource temporarily unavailable"); map.put(EAGAIN, "Resource temporarily unavailable"); map.put(EINPROGRESS, "Operation now in progress"); map.put(EALREADY, "Operation already in progress"); map.put(ENOTSOCK, "Socket operation on non-socket"); map.put(EDESTADDRREQ, "Destination address required"); map.put(EMSGSIZE, "Message too long"); map.put(EPROTOTYPE, "Protocol wrong type for socket"); map.put(ENOPROTOOPT, "Option not supported by protocol"); map.put(EPROTONOSUPPORT, "Protocol not supported"); map.put(ESOCKTNOSUPPORT, "Socket type not supported"); map.put(EOPNOTSUPP, "Operation not supported on transport endpoint"); map.put(EPFNOSUPPORT, "Protocol family not supported"); map.put(EAFNOSUPPORT, "Address family not supported by protocol family"); map.put(EADDRINUSE, "Address already in use"); map.put(EADDRNOTAVAIL, "Cannot assign requested address"); map.put(ENETDOWN, "Network is down"); map.put(ENETUNREACH, "Network is unreachable"); map.put(ENETRESET, "Network dropped connection because of reset"); map.put(ECONNABORTED, "Software caused connection abort"); map.put(ECONNRESET, "Connection reset by peer"); map.put(ENOBUFS, "No buffer space available"); map.put(EISCONN, "Transport endpoint is already connected"); map.put(ENOTCONN, "Transport endpoint is not connected"); map.put(ESHUTDOWN, "Cannot send after socket shutdown"); map.put(ETOOMANYREFS, "Too many references: cannot splice"); map.put(ETIMEDOUT, "Connection timed out"); map.put(ECONNREFUSED, "Connection refused"); map.put(ELOOP, "Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS"); map.put(ENAMETOOLONG, "File name too long"); map.put(EHOSTDOWN, "Host is down"); map.put(EHOSTUNREACH, "No route to host"); map.put(ENOTEMPTY, "Directory not empty"); map.put(EUSERS, "Too many users"); map.put(EDQUOT, "Disc quota exceeded"); map.put(ESTALE, "Stale NFS file handle"); map.put(EREMOTE, "Object is remote"); map.put(ENOLCK, "No record locks available"); map.put(ENOSYS, "Operation not applicable"); map.put(EOVERFLOW, "Value too large for defined data type"); map.put(EIDRM, "Identifier removed"); map.put(ENOMSG, "No message of desired type"); map.put(EILSEQ, "Illegal byte sequence"); map.put(EBADMSG, "Not a data message"); map.put(EMULTIHOP, "Multihop attempted"); map.put(ENODATA, "No data available"); map.put(ENOLINK, "Link has been severed"); map.put(ENOSR, "Out of stream resources"); map.put(ENOSTR, "Not a stream device"); map.put(EPROTO, "Protocol error"); map.put(ETIME, "Timer expired"); return map; } } public final String toString() { return StringTable.descriptions.get(this); } public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/ProtocolFamily.java0000644000175000017500000000211011316212262027525 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:19:32 +0000 2009 package com.kenai.constantine.platform.sunos; public enum ProtocolFamily implements com.kenai.constantine.Constant { PF_UNSPEC(0), // PF_LOCAL not defined PF_UNIX(1), PF_INET(2), PF_IMPLINK(3), PF_PUP(4), PF_CHAOS(5), PF_NS(6), // PF_ISO not defined PF_OSI(19), PF_ECMA(8), PF_DATAKIT(9), PF_CCITT(10), PF_SNA(11), PF_DECnet(12), PF_DLI(13), PF_LAT(14), PF_HYLINK(15), PF_APPLETALK(16), PF_ROUTE(24), PF_LINK(25), // PF_XTP not defined // PF_COIP not defined // PF_CNT not defined // PF_SIP not defined PF_IPX(23), // PF_RTIP not defined // PF_PIP not defined // PF_NDRV not defined // PF_ISDN not defined PF_KEY(27), PF_INET6(26), // PF_NATM not defined // PF_SYSTEM not defined // PF_NETBIOS not defined // PF_PPP not defined // PF_ATM not defined // PF_NETGRAPH not defined PF_MAX(30); private final int value; private ProtocolFamily(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 30; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/Shutdown.java0000644000175000017500000000070111316212262026401 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:19:32 +0000 2009 package com.kenai.constantine.platform.sunos; public enum Shutdown implements com.kenai.constantine.Constant { SHUT_RD(0), SHUT_WR(1), SHUT_RDWR(2); private final int value; private Shutdown(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 2; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/Fcntl.java0000644000175000017500000000235211316212262025640 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:52:41 +0000 2009 package com.kenai.constantine.platform.sunos; public enum Fcntl implements com.kenai.constantine.Constant { F_DUPFD(0), // FREAD not defined // FWRITE not defined // FAPPEND not defined // FASYNC not defined // FFSYNC not defined // FNONBLOCK not defined // FNDELAY not defined F_GETFD(1), F_SETFD(2), F_GETFL(3), F_SETFL(4), F_GETOWN(23), F_SETOWN(24), F_GETLK(33), F_SETLK(34), F_SETLKW(35), // F_CHKCLEAN not defined // F_PREALLOCATE not defined // F_SETSIZE not defined // F_RDADVISE not defined // F_RDAHEAD not defined // F_READBOOTSTRAP not defined // F_WRITEBOOTSTRAP not defined // F_NOCACHE not defined // F_LOG2PHYS not defined // F_GETPATH not defined // F_FULLFSYNC not defined // F_PATHPKG_CHECK not defined // F_FREEZE_FS not defined // F_THAW_FS not defined // F_GLOBAL_NOCACHE not defined // F_ADDSIGS not defined // F_MARKDEPENDENCY not defined F_RDLCK(1), F_UNLCK(3), F_WRLCK(2); // F_ALLOCATECONTIG not defined // F_ALLOCATEALL not defined private final int value; private Fcntl(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 35; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/PRIO.java0000644000175000017500000000076011316212262025344 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:19:33 +0000 2009 package com.kenai.constantine.platform.sunos; public enum PRIO implements com.kenai.constantine.Constant { PRIO_PROCESS(0), // PRIO_MIN not defined PRIO_PGRP(1), PRIO_USER(2); // PRIO_MAX not defined private final int value; private PRIO(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 2; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/SocketLevel.java0000644000175000017500000000100011316212262026777 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:19:34 +0000 2009 package com.kenai.constantine.platform.sunos; public enum SocketLevel implements com.kenai.constantine.Constant { SOL_SOCKET(65535); // SOL_IP not defined // SOL_TCP not defined // SOL_UDP not defined private final int value; private SocketLevel(int value) { this.value = value; } public static final long MIN_VALUE = 65535; public static final long MAX_VALUE = 65535; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/AddressFamily.java0000644000175000017500000000227411316212262027324 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:19:30 +0000 2009 package com.kenai.constantine.platform.sunos; public enum AddressFamily implements com.kenai.constantine.Constant { AF_UNSPEC(0), // AF_LOCAL not defined AF_UNIX(1), AF_INET(2), AF_IMPLINK(3), AF_PUP(4), AF_CHAOS(5), AF_NS(6), // AF_ISO not defined AF_OSI(19), AF_ECMA(8), AF_DATAKIT(9), AF_CCITT(10), AF_SNA(11), AF_DECnet(12), AF_DLI(13), AF_LAT(14), AF_HYLINK(15), AF_APPLETALK(16), AF_ROUTE(24), AF_LINK(25), // pseudo_AF_XTP not defined // AF_COIP not defined // AF_CNT not defined // pseudo_AF_RTIP not defined AF_IPX(23), // AF_SIP not defined // pseudo_AF_PIP not defined // AF_NDRV not defined // AF_ISDN not defined // AF_E164 not defined // pseudo_AF_KEY not defined AF_INET6(26), // AF_NATM not defined // AF_SYSTEM not defined // AF_NETBIOS not defined // AF_PPP not defined // AF_ATM not defined // pseudo_AF_HDRCMPLT not defined // AF_NETGRAPH not defined // AF_AX25 not defined AF_MAX(30); private final int value; private AddressFamily(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 30; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/RLIM.java0000644000175000017500000000100411316212262025326 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:19:33 +0000 2009 package com.kenai.constantine.platform.sunos; public enum RLIM implements com.kenai.constantine.Constant { RLIM_NLIMITS(0x7), RLIM_INFINITY(0xfffffffd), RLIM_SAVED_MAX(0xfffffffe), RLIM_SAVED_CUR(0xffffffff); private final int value; private RLIM(int value) { this.value = value; } public static final long MIN_VALUE = 0x7; public static final long MAX_VALUE = 0xffffffff; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/NameInfo.java0000644000175000017500000000104611316212262026265 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:19:33 +0000 2009 package com.kenai.constantine.platform.sunos; public enum NameInfo implements com.kenai.constantine.Constant { NI_MAXHOST(1025), NI_MAXSERV(32), NI_NOFQDN(1), NI_NUMERICHOST(2), NI_NAMEREQD(4), NI_NUMERICSERV(8), NI_DGRAM(16), NI_WITHSCOPEID(32); private final int value; private NameInfo(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 1025; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/Sock.java0000644000175000017500000000077611316212262025501 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:19:34 +0000 2009 package com.kenai.constantine.platform.sunos; public enum Sock implements com.kenai.constantine.Constant { SOCK_STREAM(2), SOCK_DGRAM(1), SOCK_RAW(4), SOCK_RDM(5), SOCK_SEQPACKET(6); // SOCK_MAXADDRLEN not defined private final int value; private Sock(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 6; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/SocketOption.java0000644000175000017500000000274111316212262027215 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:19:33 +0000 2009 package com.kenai.constantine.platform.sunos; public enum SocketOption implements com.kenai.constantine.Constant { SO_DEBUG(0x1), SO_ACCEPTCONN(0x2), SO_REUSEADDR(0x4), SO_KEEPALIVE(0x8), SO_DONTROUTE(0x10), SO_BROADCAST(0x20), SO_USELOOPBACK(0x40), SO_LINGER(0x80), SO_OOBINLINE(0x100), // SO_REUSEPORT not defined // SO_TIMESTAMP not defined // SO_ACCEPTFILTER not defined // SO_DONTTRUNC not defined // SO_WANTMORE not defined // SO_WANTOOBFLAG not defined SO_SNDBUF(0x1001), SO_RCVBUF(0x1002), SO_SNDLOWAT(0x1003), SO_RCVLOWAT(0x1004), SO_SNDTIMEO(0x1005), SO_RCVTIMEO(0x1006), SO_ERROR(0x1007), SO_TYPE(0x1008); // SO_NREAD not defined // SO_NKE not defined // SO_NOSIGPIPE not defined // SO_NOADDRERR not defined // SO_NWRITE not defined // SO_REUSESHAREUID not defined // SO_LABEL not defined // SO_PEERLABEL not defined // SO_ATTACH_FILTER not defined // SO_BINDTODEVICE not defined // SO_DETACH_FILTER not defined // SO_NO_CHECK not defined // SO_PASSCRED not defined // SO_PEERCRED not defined // SO_PEERNAME not defined // SO_PRIORITY not defined // SO_SECURITY_AUTHENTICATION not defined // SO_SECURITY_ENCRYPTION_NETWORK not defined // SO_SECURITY_ENCRYPTION_TRANSPORT not defined private final int value; private SocketOption(int value) { this.value = value; } public static final long MIN_VALUE = 0x1; public static final long MAX_VALUE = 0x1008; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/RLIMIT.java0000644000175000017500000000150711316212262025573 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:19:34 +0000 2009 package com.kenai.constantine.platform.sunos; public enum RLIMIT implements com.kenai.constantine.Constant { RLIMIT_AS(6), RLIMIT_CORE(4), RLIMIT_CPU(0), RLIMIT_DATA(2), RLIMIT_FSIZE(1), // RLIMIT_LOCKS not defined // RLIMIT_MEMLOCK not defined // RLIMIT_MSGQUEUE not defined // RLIMIT_NICE not defined // RLIMIT_NLIMITS not defined RLIMIT_NOFILE(5), // RLIMIT_NPROC not defined // RLIMIT_OFILE not defined // RLIMIT_RSS not defined // RLIMIT_RTPRIO not defined // RLIMIT_RTTIME not defined // RLIMIT_SIGPENDING not defined RLIMIT_STACK(3); private final int value; private RLIMIT(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 6; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/OpenFlags.java0000644000175000017500000000135011316212262026445 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:52:42 +0000 2009 package com.kenai.constantine.platform.sunos; public enum OpenFlags implements com.kenai.constantine.Constant { O_RDONLY(0), O_WRONLY(1), O_RDWR(2), O_ACCMODE(3), O_NONBLOCK(128), O_APPEND(8), O_SYNC(16), // O_SHLOCK not defined // O_EXLOCK not defined // O_ASYNC not defined // O_FSYNC not defined O_NOFOLLOW(131072), O_CREAT(256), O_TRUNC(512), O_EXCL(1024); // O_EVTONLY not defined // O_DIRECTORY not defined // O_SYMLINK not defined private final int value; private OpenFlags(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 131072; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/Sysconf.java0000644000175000017500000000646511316212262026227 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:19:35 +0000 2009 package com.kenai.constantine.platform.sunos; public enum Sysconf implements com.kenai.constantine.Constant { _SC_ARG_MAX(1), _SC_CHILD_MAX(2), _SC_CLK_TCK(3), _SC_NGROUPS_MAX(4), _SC_OPEN_MAX(5), _SC_JOB_CONTROL(6), _SC_SAVED_IDS(7), _SC_VERSION(8), _SC_BC_BASE_MAX(54), _SC_BC_DIM_MAX(55), _SC_BC_SCALE_MAX(56), _SC_BC_STRING_MAX(57), _SC_COLL_WEIGHTS_MAX(58), _SC_EXPR_NEST_MAX(59), _SC_LINE_MAX(60), _SC_RE_DUP_MAX(61), _SC_2_VERSION(53), _SC_2_C_BIND(45), _SC_2_C_DEV(46), _SC_2_CHAR_TERM(66), _SC_2_FORT_DEV(48), _SC_2_FORT_RUN(49), _SC_2_LOCALEDEF(50), _SC_2_SW_DEV(51), _SC_2_UPE(52), _SC_STREAM_MAX(16), _SC_TZNAME_MAX(17), _SC_ASYNCHRONOUS_IO(21), _SC_PAGESIZE(11), _SC_MEMLOCK(25), _SC_MEMLOCK_RANGE(26), _SC_MEMORY_PROTECTION(27), _SC_MESSAGE_PASSING(28), _SC_PRIORITIZED_IO(31), _SC_PRIORITY_SCHEDULING(32), _SC_REALTIME_SIGNALS(33), _SC_SEMAPHORES(35), _SC_FSYNC(23), _SC_SHARED_MEMORY_OBJECTS(38), _SC_SYNCHRONIZED_IO(42), _SC_TIMERS(43), _SC_AIO_LISTIO_MAX(18), _SC_AIO_MAX(19), _SC_AIO_PRIO_DELTA_MAX(20), _SC_DELAYTIMER_MAX(22), _SC_MQ_OPEN_MAX(29), _SC_MAPPED_FILES(24), _SC_RTSIG_MAX(34), _SC_SEM_NSEMS_MAX(36), _SC_SEM_VALUE_MAX(37), _SC_SIGQUEUE_MAX(39), _SC_TIMER_MAX(44), _SC_NPROCESSORS_CONF(14), _SC_NPROCESSORS_ONLN(15), _SC_2_PBS(724), _SC_2_PBS_ACCOUNTING(725), _SC_2_PBS_CHECKPOINT(726), _SC_2_PBS_LOCATE(728), _SC_2_PBS_MESSAGE(729), _SC_2_PBS_TRACK(730), _SC_ADVISORY_INFO(731), _SC_BARRIERS(732), _SC_CLOCK_SELECTION(733), _SC_CPUTIME(734), // _SC_FILE_LOCKING not defined _SC_GETGR_R_SIZE_MAX(569), _SC_GETPW_R_SIZE_MAX(570), _SC_HOST_NAME_MAX(735), _SC_LOGIN_NAME_MAX(571), _SC_MONOTONIC_CLOCK(736), _SC_MQ_PRIO_MAX(30), _SC_READER_WRITER_LOCKS(737), _SC_REGEXP(738), _SC_SHELL(739), _SC_SPAWN(740), _SC_SPIN_LOCKS(741), _SC_SPORADIC_SERVER(742), _SC_THREAD_ATTR_STACKADDR(577), _SC_THREAD_ATTR_STACKSIZE(578), _SC_THREAD_CPUTIME(745), _SC_THREAD_DESTRUCTOR_ITERATIONS(568), _SC_THREAD_KEYS_MAX(572), _SC_THREAD_PRIO_INHERIT(580), _SC_THREAD_PRIO_PROTECT(581), _SC_THREAD_PRIORITY_SCHEDULING(579), _SC_THREAD_PROCESS_SHARED(582), _SC_THREAD_SAFE_FUNCTIONS(583), _SC_THREAD_SPORADIC_SERVER(746), _SC_THREAD_STACK_MIN(573), _SC_THREAD_THREADS_MAX(574), _SC_TIMEOUTS(747), _SC_THREADS(576), _SC_TRACE(748), _SC_TRACE_EVENT_FILTER(749), _SC_TRACE_INHERIT(751), _SC_TRACE_LOG(752), _SC_TTY_NAME_MAX(575), _SC_TYPED_MEMORY_OBJECTS(756), _SC_V6_ILP32_OFF32(757), _SC_V6_ILP32_OFFBIG(758), _SC_V6_LP64_OFF64(759), _SC_V6_LPBIG_OFFBIG(760), _SC_IPV6(762), _SC_RAW_SOCKETS(763), _SC_SYMLOOP_MAX(744), _SC_ATEXIT_MAX(76), _SC_IOV_MAX(77), _SC_PAGE_SIZE(11), _SC_XOPEN_CRYPT(62), _SC_XOPEN_ENH_I18N(63), _SC_XOPEN_LEGACY(717), _SC_XOPEN_REALTIME(718), _SC_XOPEN_REALTIME_THREADS(719), _SC_XOPEN_SHM(64), _SC_XOPEN_STREAMS(761), _SC_XOPEN_UNIX(78), _SC_XOPEN_VERSION(12), _SC_XOPEN_XCU_VERSION(67), _SC_XBS5_ILP32_OFF32(720), _SC_XBS5_ILP32_OFFBIG(721), _SC_XBS5_LP64_OFF64(722), _SC_XBS5_LPBIG_OFFBIG(723), _SC_SS_REPL_MAX(743), _SC_TRACE_EVENT_NAME_MAX(750), _SC_TRACE_NAME_MAX(753), _SC_TRACE_SYS_MAX(754), _SC_TRACE_USER_EVENT_MAX(755), _SC_PASS_MAX(9); private final int value; private Sysconf(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 763; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/Signal.java0000644000175000017500000000161311316212262026006 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:19:36 +0000 2009 package com.kenai.constantine.platform.sunos; public enum Signal implements com.kenai.constantine.Constant { SIGHUP(1), SIGINT(2), SIGQUIT(3), SIGILL(4), SIGTRAP(5), SIGABRT(6), SIGIOT(6), SIGBUS(10), SIGFPE(8), SIGKILL(9), SIGUSR1(16), SIGSEGV(11), SIGUSR2(17), SIGPIPE(13), SIGALRM(14), SIGTERM(15), // SIGSTKFLT not defined SIGCLD(18), SIGCHLD(18), SIGCONT(25), SIGSTOP(23), SIGTSTP(24), SIGTTIN(26), SIGTTOU(27), SIGURG(21), SIGXCPU(30), SIGXFSZ(31), SIGVTALRM(28), SIGPROF(29), SIGWINCH(20), SIGPOLL(22), SIGIO(22), SIGPWR(19), SIGSYS(12), // SIGUNUSED not defined SIGRTMIN(41), SIGRTMAX(48), NSIG(49); private final int value; private Signal(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 49; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/TCP.java0000644000175000017500000000144111316212262025216 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:19:35 +0000 2009 package com.kenai.constantine.platform.sunos; public enum TCP implements com.kenai.constantine.Constant { TCP_MSS(536), // TCP_MAX_SACK not defined // TCP_MINMSS not defined // TCP_MINMSSOVERLOAD not defined // TCP_MAXWIN not defined // TCP_MAX_WINSHIFT not defined // TCP_MAXBURST not defined // TCP_MAXHLEN not defined // TCP_MAXOLEN not defined TCP_NODELAY(1), TCP_MAXSEG(2), // TCP_NOPUSH not defined // TCP_NOOPT not defined TCP_KEEPALIVE(8); // TCP_NSTATES not defined // TCP_RETRANSHZ not defined private final int value; private TCP(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 536; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/IPProto.java0000644000175000017500000000170111316212262026123 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:19:31 +0000 2009 package com.kenai.constantine.platform.sunos; public enum IPProto implements com.kenai.constantine.Constant { IPPROTO_IP(0), IPPROTO_HOPOPTS(0), IPPROTO_ICMP(1), IPPROTO_IGMP(2), // IPPROTO_IPIP not defined IPPROTO_TCP(6), IPPROTO_EGP(8), IPPROTO_PUP(12), IPPROTO_UDP(17), IPPROTO_IDP(22), // IPPROTO_TP not defined IPPROTO_IPV6(41), IPPROTO_ROUTING(43), IPPROTO_FRAGMENT(44), IPPROTO_RSVP(46), // IPPROTO_GRE not defined IPPROTO_ESP(50), IPPROTO_AH(51), IPPROTO_ICMPV6(58), IPPROTO_NONE(59), IPPROTO_DSTOPTS(60), // IPPROTO_MTP not defined IPPROTO_ENCAP(4), IPPROTO_PIM(103), // IPPROTO_COMP not defined IPPROTO_SCTP(132), IPPROTO_RAW(255), IPPROTO_MAX(256); private final int value; private IPProto(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 256; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/INAddr.java0000644000175000017500000000121511316212262025670 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:19:31 +0000 2009 package com.kenai.constantine.platform.sunos; public enum INAddr implements com.kenai.constantine.Constant { INADDR_ANY(0), INADDR_BROADCAST(0xffffffff), INADDR_NONE(0xffffffff), INADDR_LOOPBACK(0x7f000001), INADDR_UNSPEC_GROUP(0xe0000000), INADDR_ALLHOSTS_GROUP(0xe0000001), INADDR_ALLRTRS_GROUP(0xe0000002), INADDR_MAX_LOCAL_GROUP(0xe00000ff); private final int value; private INAddr(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 0xffffffff; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/sunos/WaitFlags.java0000644000175000017500000000077611316212262026463 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 23:19:36 +0000 2009 package com.kenai.constantine.platform.sunos; public enum WaitFlags implements com.kenai.constantine.Constant { WNOHANG(0x40), WUNTRACED(0x4), WSTOPPED(0x4), WEXITED(0x1), WCONTINUED(0x8), WNOWAIT(0x80); private final int value; private WaitFlags(int value) { this.value = value; } public static final long MIN_VALUE = 0x1; public static final long MAX_VALUE = 0x80; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/Sock.java0000644000175000017500000000126011316212262024317 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:31 +1000 2009 package com.kenai.constantine.platform; public enum Sock implements com.kenai.constantine.Constant { SOCK_STREAM, SOCK_DGRAM, SOCK_RAW, SOCK_RDM, SOCK_SEQPACKET, SOCK_MAXADDRLEN, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getResolver(Sock.class, 20000, 29999); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static Sock valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/SocketOption.java0000644000175000017500000000235011316212262026042 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:31 +1000 2009 package com.kenai.constantine.platform; public enum SocketOption implements com.kenai.constantine.Constant { SO_DEBUG, SO_ACCEPTCONN, SO_REUSEADDR, SO_KEEPALIVE, SO_DONTROUTE, SO_BROADCAST, SO_USELOOPBACK, SO_LINGER, SO_OOBINLINE, SO_REUSEPORT, SO_TIMESTAMP, SO_ACCEPTFILTER, SO_DONTTRUNC, SO_WANTMORE, SO_WANTOOBFLAG, SO_SNDBUF, SO_RCVBUF, SO_SNDLOWAT, SO_RCVLOWAT, SO_SNDTIMEO, SO_RCVTIMEO, SO_ERROR, SO_TYPE, SO_NREAD, SO_NKE, SO_NOSIGPIPE, SO_NOADDRERR, SO_NWRITE, SO_REUSESHAREUID, SO_LABEL, SO_PEERLABEL, SO_ATTACH_FILTER, SO_BINDTODEVICE, SO_DETACH_FILTER, SO_NO_CHECK, SO_PASSCRED, SO_PEERCRED, SO_PEERNAME, SO_PRIORITY, SO_SECURITY_AUTHENTICATION, SO_SECURITY_ENCRYPTION_NETWORK, SO_SECURITY_ENCRYPTION_TRANSPORT, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getResolver(SocketOption.class, 20000, 29999); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static SocketOption valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/RLIMIT.java0000644000175000017500000000155311316212262024425 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:30 +1000 2009 package com.kenai.constantine.platform; public enum RLIMIT implements com.kenai.constantine.Constant { 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, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getResolver(RLIMIT.class, 20000, 29999); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static RLIMIT valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/OpenFlags.java0000644000175000017500000000146711316212262025307 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:29 +1000 2009 package com.kenai.constantine.platform; public enum OpenFlags implements com.kenai.constantine.Constant { O_RDONLY, O_WRONLY, O_RDWR, O_ACCMODE, O_NONBLOCK, O_APPEND, O_SYNC, O_SHLOCK, O_EXLOCK, O_ASYNC, O_FSYNC, O_NOFOLLOW, O_CREAT, O_TRUNC, O_EXCL, O_EVTONLY, O_DIRECTORY, O_SYMLINK, O_BINARY, O_NOCTTY, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getBitmaskResolver(OpenFlags.class); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static OpenFlags valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/Sysconf.java0000644000175000017500000000571111316212262025051 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:28 +1000 2009 package com.kenai.constantine.platform; public enum Sysconf implements com.kenai.constantine.Constant { _SC_ARG_MAX, _SC_CHILD_MAX, _SC_CLK_TCK, _SC_NGROUPS_MAX, _SC_OPEN_MAX, _SC_JOB_CONTROL, _SC_SAVED_IDS, _SC_VERSION, _SC_BC_BASE_MAX, _SC_BC_DIM_MAX, _SC_BC_SCALE_MAX, _SC_BC_STRING_MAX, _SC_COLL_WEIGHTS_MAX, _SC_EXPR_NEST_MAX, _SC_LINE_MAX, _SC_RE_DUP_MAX, _SC_2_VERSION, _SC_2_C_BIND, _SC_2_C_DEV, _SC_2_CHAR_TERM, _SC_2_FORT_DEV, _SC_2_FORT_RUN, _SC_2_LOCALEDEF, _SC_2_SW_DEV, _SC_2_UPE, _SC_STREAM_MAX, _SC_TZNAME_MAX, _SC_ASYNCHRONOUS_IO, _SC_PAGESIZE, _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_PRIORITIZED_IO, _SC_PRIORITY_SCHEDULING, _SC_REALTIME_SIGNALS, _SC_SEMAPHORES, _SC_FSYNC, _SC_SHARED_MEMORY_OBJECTS, _SC_SYNCHRONIZED_IO, _SC_TIMERS, _SC_AIO_LISTIO_MAX, _SC_AIO_MAX, _SC_AIO_PRIO_DELTA_MAX, _SC_DELAYTIMER_MAX, _SC_MQ_OPEN_MAX, _SC_MAPPED_FILES, _SC_RTSIG_MAX, _SC_SEM_NSEMS_MAX, _SC_SEM_VALUE_MAX, _SC_SIGQUEUE_MAX, _SC_TIMER_MAX, _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT, _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK, _SC_ADVISORY_INFO, _SC_BARRIERS, _SC_CLOCK_SELECTION, _SC_CPUTIME, _SC_FILE_LOCKING, _SC_GETGR_R_SIZE_MAX, _SC_GETPW_R_SIZE_MAX, _SC_HOST_NAME_MAX, _SC_LOGIN_NAME_MAX, _SC_MONOTONIC_CLOCK, _SC_MQ_PRIO_MAX, _SC_READER_WRITER_LOCKS, _SC_REGEXP, _SC_SHELL, _SC_SPAWN, _SC_SPIN_LOCKS, _SC_SPORADIC_SERVER, _SC_THREAD_ATTR_STACKADDR, _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_CPUTIME, _SC_THREAD_DESTRUCTOR_ITERATIONS, _SC_THREAD_KEYS_MAX, _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT, _SC_THREAD_PRIORITY_SCHEDULING, _SC_THREAD_PROCESS_SHARED, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_SPORADIC_SERVER, _SC_THREAD_STACK_MIN, _SC_THREAD_THREADS_MAX, _SC_TIMEOUTS, _SC_THREADS, _SC_TRACE, _SC_TRACE_EVENT_FILTER, _SC_TRACE_INHERIT, _SC_TRACE_LOG, _SC_TTY_NAME_MAX, _SC_TYPED_MEMORY_OBJECTS, _SC_V6_ILP32_OFF32, _SC_V6_ILP32_OFFBIG, _SC_V6_LP64_OFF64, _SC_V6_LPBIG_OFFBIG, _SC_IPV6, _SC_RAW_SOCKETS, _SC_SYMLOOP_MAX, _SC_ATEXIT_MAX, _SC_IOV_MAX, _SC_PAGE_SIZE, _SC_XOPEN_CRYPT, _SC_XOPEN_ENH_I18N, _SC_XOPEN_LEGACY, _SC_XOPEN_REALTIME, _SC_XOPEN_REALTIME_THREADS, _SC_XOPEN_SHM, _SC_XOPEN_STREAMS, _SC_XOPEN_UNIX, _SC_XOPEN_VERSION, _SC_XOPEN_XCU_VERSION, _SC_XBS5_ILP32_OFF32, _SC_XBS5_ILP32_OFFBIG, _SC_XBS5_LP64_OFF64, _SC_XBS5_LPBIG_OFFBIG, _SC_SS_REPL_MAX, _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_PASS_MAX, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getResolver(Sysconf.class, 20000, 29999); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static Sysconf valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/Signal.java0000644000175000017500000000167211316212262024644 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:29 +1000 2009 package com.kenai.constantine.platform; public enum Signal implements com.kenai.constantine.Constant { SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGTRAP, SIGABRT, SIGIOT, SIGBUS, SIGFPE, SIGKILL, SIGUSR1, SIGSEGV, SIGUSR2, SIGPIPE, SIGALRM, SIGTERM, SIGSTKFLT, SIGCLD, SIGCHLD, SIGCONT, SIGSTOP, SIGTSTP, SIGTTIN, SIGTTOU, SIGURG, SIGXCPU, SIGXFSZ, SIGVTALRM, SIGPROF, SIGWINCH, SIGPOLL, SIGIO, SIGPWR, SIGSYS, SIGUNUSED, SIGRTMIN, SIGRTMAX, NSIG, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getResolver(Signal.class, 20000, 29999); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static Signal valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/TCP.java0000644000175000017500000000146611316212262024056 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:31 +1000 2009 package com.kenai.constantine.platform; public enum TCP implements com.kenai.constantine.Constant { TCP_MAX_SACK, TCP_MSS, TCP_MINMSS, TCP_MINMSSOVERLOAD, TCP_MAXWIN, TCP_MAX_WINSHIFT, TCP_MAXBURST, TCP_MAXHLEN, TCP_MAXOLEN, TCP_NODELAY, TCP_MAXSEG, TCP_NOPUSH, TCP_NOOPT, TCP_KEEPALIVE, TCP_NSTATES, TCP_RETRANSHZ, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getResolver(TCP.class, 20000, 29999); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static TCP valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/0000755000175000017500000000000011316212262023464 5ustar niconicolibconstantine-java-0.7/src/com/kenai/constantine/platform/fake/Errno.java0000644000175000017500000000301211316212262025410 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:33 +1000 2009 package com.kenai.constantine.platform.fake; public enum Errno implements com.kenai.constantine.Constant { EPERM(1), ENOENT(2), ESRCH(3), EINTR(4), EIO(5), ENXIO(6), E2BIG(7), ENOEXEC(8), EBADF(9), ECHILD(10), EDEADLK(11), ENOMEM(12), EACCES(13), EFAULT(14), ENOTBLK(15), EBUSY(16), EEXIST(17), EXDEV(18), ENODEV(19), ENOTDIR(20), EISDIR(21), EINVAL(22), ENFILE(23), EMFILE(24), ENOTTY(25), ETXTBSY(26), EFBIG(27), ENOSPC(28), ESPIPE(29), EROFS(30), EMLINK(31), EPIPE(32), EDOM(33), ERANGE(34), EWOULDBLOCK(35), EAGAIN(36), EINPROGRESS(37), EALREADY(38), ENOTSOCK(39), EDESTADDRREQ(40), EMSGSIZE(41), EPROTOTYPE(42), ENOPROTOOPT(43), EPROTONOSUPPORT(44), ESOCKTNOSUPPORT(45), EOPNOTSUPP(46), EPFNOSUPPORT(47), EAFNOSUPPORT(48), EADDRINUSE(49), EADDRNOTAVAIL(50), ENETDOWN(51), ENETUNREACH(52), ENETRESET(53), ECONNABORTED(54), ECONNRESET(55), ENOBUFS(56), EISCONN(57), ENOTCONN(58), ESHUTDOWN(59), ETOOMANYREFS(60), ETIMEDOUT(61), ECONNREFUSED(62), ELOOP(63), ENAMETOOLONG(64), EHOSTDOWN(65), EHOSTUNREACH(66), ENOTEMPTY(67), EUSERS(68), EDQUOT(69), ESTALE(70), EREMOTE(71), ENOLCK(72), ENOSYS(73), EOVERFLOW(74), EIDRM(75), ENOMSG(76), EILSEQ(77), EBADMSG(78), EMULTIHOP(79), ENODATA(80), ENOLINK(81), ENOSR(82), ENOSTR(83), EPROTO(84), ETIME(85); private final int value; private Errno(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 85; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/ProtocolFamily.java0000644000175000017500000000164611316212262027301 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:34 +1000 2009 package com.kenai.constantine.platform.fake; public enum ProtocolFamily implements com.kenai.constantine.Constant { PF_UNSPEC(1), PF_LOCAL(2), PF_UNIX(3), PF_INET(4), PF_IMPLINK(5), PF_PUP(6), PF_CHAOS(7), PF_NS(8), PF_ISO(9), PF_OSI(10), PF_ECMA(11), PF_DATAKIT(12), PF_CCITT(13), PF_SNA(14), PF_DECnet(15), PF_DLI(16), PF_LAT(17), PF_HYLINK(18), PF_APPLETALK(19), PF_ROUTE(20), PF_LINK(21), PF_XTP(22), PF_COIP(23), PF_CNT(24), PF_SIP(25), PF_IPX(26), PF_RTIP(27), PF_PIP(28), PF_NDRV(29), PF_ISDN(30), PF_KEY(31), PF_INET6(32), PF_NATM(33), PF_SYSTEM(34), PF_NETBIOS(35), PF_PPP(36), PF_ATM(37), PF_NETGRAPH(38), PF_MAX(39); private final int value; private ProtocolFamily(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 39; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/Shutdown.java0000644000175000017500000000070711316212262026146 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:33 +1000 2009 package com.kenai.constantine.platform.fake; public enum Shutdown implements com.kenai.constantine.Constant { SHUT_RD(0x1), SHUT_WR(0x2), SHUT_RDWR(0x4); private final int value; private Shutdown(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 0x4; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/Fcntl.java0000644000175000017500000000161311316212262025376 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:34 +1000 2009 package com.kenai.constantine.platform.fake; public enum Fcntl implements com.kenai.constantine.Constant { F_DUPFD(1), F_GETFD(2), F_SETFD(3), F_GETFL(4), F_SETFL(5), F_GETOWN(6), F_SETOWN(7), F_GETLK(8), F_SETLK(9), F_SETLKW(10), F_CHKCLEAN(11), F_PREALLOCATE(12), F_SETSIZE(13), F_RDADVISE(14), F_RDAHEAD(15), F_READBOOTSTRAP(16), F_WRITEBOOTSTRAP(17), F_NOCACHE(18), F_LOG2PHYS(19), F_GETPATH(20), F_FULLFSYNC(21), F_PATHPKG_CHECK(22), F_FREEZE_FS(23), F_THAW_FS(24), F_GLOBAL_NOCACHE(25), F_ADDSIGS(26), F_MARKDEPENDENCY(27), F_RDLCK(28), F_UNLCK(29), F_WRLCK(30), F_ALLOCATECONTIG(31), F_ALLOCATEALL(32); private final int value; private Fcntl(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 32; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/PRIO.java0000644000175000017500000000073011316212262025100 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:34 +1000 2009 package com.kenai.constantine.platform.fake; public enum PRIO implements com.kenai.constantine.Constant { PRIO_MIN(1), PRIO_PROCESS(2), PRIO_PGRP(3), PRIO_USER(4), PRIO_MAX(5); private final int value; private PRIO(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 5; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/SocketLevel.java0000644000175000017500000000072111316212262026547 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:35 +1000 2009 package com.kenai.constantine.platform.fake; public enum SocketLevel implements com.kenai.constantine.Constant { SOL_SOCKET(1), SOL_IP(2), SOL_TCP(3), SOL_UDP(4); private final int value; private SocketLevel(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 4; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/AddressFamily.java0000644000175000017500000000176211316212262027064 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:32 +1000 2009 package com.kenai.constantine.platform.fake; public enum AddressFamily implements com.kenai.constantine.Constant { AF_UNSPEC(1), AF_LOCAL(2), AF_UNIX(3), AF_INET(4), AF_IMPLINK(5), AF_PUP(6), AF_CHAOS(7), AF_NS(8), AF_ISO(9), AF_OSI(10), AF_ECMA(11), AF_DATAKIT(12), AF_CCITT(13), AF_SNA(14), AF_DECnet(15), AF_DLI(16), AF_LAT(17), AF_HYLINK(18), AF_APPLETALK(19), AF_ROUTE(20), AF_LINK(21), pseudo_AF_XTP(22), AF_COIP(23), AF_CNT(24), pseudo_AF_RTIP(25), AF_IPX(26), AF_SIP(27), pseudo_AF_PIP(28), AF_NDRV(29), AF_ISDN(30), AF_E164(31), pseudo_AF_KEY(32), AF_INET6(33), AF_NATM(34), AF_SYSTEM(35), AF_NETBIOS(36), AF_PPP(37), AF_ATM(38), pseudo_AF_HDRCMPLT(39), AF_NETGRAPH(40), AF_AX25(41), AF_MAX(42); private final int value; private AddressFamily(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 42; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/RLIM.java0000644000175000017500000000073211316212262025074 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:33 +1000 2009 package com.kenai.constantine.platform.fake; public enum RLIM implements com.kenai.constantine.Constant { RLIM_NLIMITS(1), RLIM_INFINITY(2), RLIM_SAVED_MAX(3), RLIM_SAVED_CUR(4); private final int value; private RLIM(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 4; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/NameInfo.java0000644000175000017500000000103311316212262026020 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:35 +1000 2009 package com.kenai.constantine.platform.fake; public enum NameInfo implements com.kenai.constantine.Constant { NI_MAXHOST(1), NI_MAXSERV(2), NI_NOFQDN(3), NI_NUMERICHOST(4), NI_NAMEREQD(5), NI_NUMERICSERV(6), NI_DGRAM(7), NI_WITHSCOPEID(8); private final int value; private NameInfo(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 8; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/Sock.java0000644000175000017500000000076111316212262025232 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:35 +1000 2009 package com.kenai.constantine.platform.fake; public enum Sock implements com.kenai.constantine.Constant { SOCK_STREAM(1), SOCK_DGRAM(2), SOCK_RAW(3), SOCK_RDM(4), SOCK_SEQPACKET(5), SOCK_MAXADDRLEN(6); private final int value; private Sock(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 6; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/SocketOption.java0000644000175000017500000000224711316212262026755 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:34 +1000 2009 package com.kenai.constantine.platform.fake; public enum SocketOption implements com.kenai.constantine.Constant { SO_DEBUG(1), SO_ACCEPTCONN(2), SO_REUSEADDR(3), SO_KEEPALIVE(4), SO_DONTROUTE(5), SO_BROADCAST(6), SO_USELOOPBACK(7), SO_LINGER(8), SO_OOBINLINE(9), SO_REUSEPORT(10), SO_TIMESTAMP(11), SO_ACCEPTFILTER(12), SO_DONTTRUNC(13), SO_WANTMORE(14), SO_WANTOOBFLAG(15), SO_SNDBUF(16), SO_RCVBUF(17), SO_SNDLOWAT(18), SO_RCVLOWAT(19), SO_SNDTIMEO(20), SO_RCVTIMEO(21), SO_ERROR(22), SO_TYPE(23), SO_NREAD(24), SO_NKE(25), SO_NOSIGPIPE(26), SO_NOADDRERR(27), SO_NWRITE(28), SO_REUSESHAREUID(29), SO_LABEL(30), SO_PEERLABEL(31), SO_ATTACH_FILTER(32), SO_BINDTODEVICE(33), SO_DETACH_FILTER(34), SO_NO_CHECK(35), SO_PASSCRED(36), SO_PEERCRED(37), SO_PEERNAME(38), SO_PRIORITY(39), SO_SECURITY_AUTHENTICATION(40), SO_SECURITY_ENCRYPTION_NETWORK(41), SO_SECURITY_ENCRYPTION_TRANSPORT(42); private final int value; private SocketOption(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 42; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/RLIMIT.java0000644000175000017500000000132611316212262025331 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:34 +1000 2009 package com.kenai.constantine.platform.fake; public enum RLIMIT implements com.kenai.constantine.Constant { RLIMIT_AS(1), RLIMIT_CORE(2), RLIMIT_CPU(3), RLIMIT_DATA(4), RLIMIT_FSIZE(5), RLIMIT_LOCKS(6), RLIMIT_MEMLOCK(7), RLIMIT_MSGQUEUE(8), RLIMIT_NICE(9), RLIMIT_NLIMITS(10), RLIMIT_NOFILE(11), RLIMIT_NPROC(12), RLIMIT_OFILE(13), RLIMIT_RSS(14), RLIMIT_RTPRIO(15), RLIMIT_RTTIME(16), RLIMIT_SIGPENDING(17), RLIMIT_STACK(18); private final int value; private RLIMIT(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 18; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/OpenFlags.java0000644000175000017500000000136511316212262026212 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:33 +1000 2009 package com.kenai.constantine.platform.fake; public enum OpenFlags implements com.kenai.constantine.Constant { O_RDONLY(0x1), O_WRONLY(0x2), O_RDWR(0x4), O_ACCMODE(0x8), O_NONBLOCK(0x10), O_APPEND(0x20), O_SYNC(0x40), O_SHLOCK(0x80), O_EXLOCK(0x100), O_ASYNC(0x200), O_FSYNC(0x400), O_NOFOLLOW(0x800), O_CREAT(0x1000), O_TRUNC(0x2000), O_EXCL(0x4000), O_EVTONLY(0x8000), O_DIRECTORY(0x10000), O_SYMLINK(0x20000), O_BINARY(0x40000), O_NOCTTY(0x80000); private final int value; private OpenFlags(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 0x80000; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/Sysconf.java0000644000175000017500000000641011316212262025754 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:32 +1000 2009 package com.kenai.constantine.platform.fake; public enum Sysconf implements com.kenai.constantine.Constant { _SC_ARG_MAX(1), _SC_CHILD_MAX(2), _SC_CLK_TCK(3), _SC_NGROUPS_MAX(4), _SC_OPEN_MAX(5), _SC_JOB_CONTROL(6), _SC_SAVED_IDS(7), _SC_VERSION(8), _SC_BC_BASE_MAX(9), _SC_BC_DIM_MAX(10), _SC_BC_SCALE_MAX(11), _SC_BC_STRING_MAX(12), _SC_COLL_WEIGHTS_MAX(13), _SC_EXPR_NEST_MAX(14), _SC_LINE_MAX(15), _SC_RE_DUP_MAX(16), _SC_2_VERSION(17), _SC_2_C_BIND(18), _SC_2_C_DEV(19), _SC_2_CHAR_TERM(20), _SC_2_FORT_DEV(21), _SC_2_FORT_RUN(22), _SC_2_LOCALEDEF(23), _SC_2_SW_DEV(24), _SC_2_UPE(25), _SC_STREAM_MAX(26), _SC_TZNAME_MAX(27), _SC_ASYNCHRONOUS_IO(28), _SC_PAGESIZE(29), _SC_MEMLOCK(30), _SC_MEMLOCK_RANGE(31), _SC_MEMORY_PROTECTION(32), _SC_MESSAGE_PASSING(33), _SC_PRIORITIZED_IO(34), _SC_PRIORITY_SCHEDULING(35), _SC_REALTIME_SIGNALS(36), _SC_SEMAPHORES(37), _SC_FSYNC(38), _SC_SHARED_MEMORY_OBJECTS(39), _SC_SYNCHRONIZED_IO(40), _SC_TIMERS(41), _SC_AIO_LISTIO_MAX(42), _SC_AIO_MAX(43), _SC_AIO_PRIO_DELTA_MAX(44), _SC_DELAYTIMER_MAX(45), _SC_MQ_OPEN_MAX(46), _SC_MAPPED_FILES(47), _SC_RTSIG_MAX(48), _SC_SEM_NSEMS_MAX(49), _SC_SEM_VALUE_MAX(50), _SC_SIGQUEUE_MAX(51), _SC_TIMER_MAX(52), _SC_NPROCESSORS_CONF(53), _SC_NPROCESSORS_ONLN(54), _SC_2_PBS(55), _SC_2_PBS_ACCOUNTING(56), _SC_2_PBS_CHECKPOINT(57), _SC_2_PBS_LOCATE(58), _SC_2_PBS_MESSAGE(59), _SC_2_PBS_TRACK(60), _SC_ADVISORY_INFO(61), _SC_BARRIERS(62), _SC_CLOCK_SELECTION(63), _SC_CPUTIME(64), _SC_FILE_LOCKING(65), _SC_GETGR_R_SIZE_MAX(66), _SC_GETPW_R_SIZE_MAX(67), _SC_HOST_NAME_MAX(68), _SC_LOGIN_NAME_MAX(69), _SC_MONOTONIC_CLOCK(70), _SC_MQ_PRIO_MAX(71), _SC_READER_WRITER_LOCKS(72), _SC_REGEXP(73), _SC_SHELL(74), _SC_SPAWN(75), _SC_SPIN_LOCKS(76), _SC_SPORADIC_SERVER(77), _SC_THREAD_ATTR_STACKADDR(78), _SC_THREAD_ATTR_STACKSIZE(79), _SC_THREAD_CPUTIME(80), _SC_THREAD_DESTRUCTOR_ITERATIONS(81), _SC_THREAD_KEYS_MAX(82), _SC_THREAD_PRIO_INHERIT(83), _SC_THREAD_PRIO_PROTECT(84), _SC_THREAD_PRIORITY_SCHEDULING(85), _SC_THREAD_PROCESS_SHARED(86), _SC_THREAD_SAFE_FUNCTIONS(87), _SC_THREAD_SPORADIC_SERVER(88), _SC_THREAD_STACK_MIN(89), _SC_THREAD_THREADS_MAX(90), _SC_TIMEOUTS(91), _SC_THREADS(92), _SC_TRACE(93), _SC_TRACE_EVENT_FILTER(94), _SC_TRACE_INHERIT(95), _SC_TRACE_LOG(96), _SC_TTY_NAME_MAX(97), _SC_TYPED_MEMORY_OBJECTS(98), _SC_V6_ILP32_OFF32(99), _SC_V6_ILP32_OFFBIG(100), _SC_V6_LP64_OFF64(101), _SC_V6_LPBIG_OFFBIG(102), _SC_IPV6(103), _SC_RAW_SOCKETS(104), _SC_SYMLOOP_MAX(105), _SC_ATEXIT_MAX(106), _SC_IOV_MAX(107), _SC_PAGE_SIZE(108), _SC_XOPEN_CRYPT(109), _SC_XOPEN_ENH_I18N(110), _SC_XOPEN_LEGACY(111), _SC_XOPEN_REALTIME(112), _SC_XOPEN_REALTIME_THREADS(113), _SC_XOPEN_SHM(114), _SC_XOPEN_STREAMS(115), _SC_XOPEN_UNIX(116), _SC_XOPEN_VERSION(117), _SC_XOPEN_XCU_VERSION(118), _SC_XBS5_ILP32_OFF32(119), _SC_XBS5_ILP32_OFFBIG(120), _SC_XBS5_LP64_OFF64(121), _SC_XBS5_LPBIG_OFFBIG(122), _SC_SS_REPL_MAX(123), _SC_TRACE_EVENT_NAME_MAX(124), _SC_TRACE_NAME_MAX(125), _SC_TRACE_SYS_MAX(126), _SC_TRACE_USER_EVENT_MAX(127), _SC_PASS_MAX(128); private final int value; private Sysconf(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 128; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/Signal.java0000644000175000017500000000156511316212262025553 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:32 +1000 2009 package com.kenai.constantine.platform.fake; public enum Signal implements com.kenai.constantine.Constant { SIGHUP(1), SIGINT(2), SIGQUIT(3), SIGILL(4), SIGTRAP(5), SIGABRT(6), SIGIOT(7), SIGBUS(8), SIGFPE(9), SIGKILL(10), SIGUSR1(11), SIGSEGV(12), SIGUSR2(13), SIGPIPE(14), SIGALRM(15), SIGTERM(16), SIGSTKFLT(17), SIGCLD(18), SIGCHLD(19), SIGCONT(20), SIGSTOP(21), SIGTSTP(22), SIGTTIN(23), SIGTTOU(24), SIGURG(25), SIGXCPU(26), SIGXFSZ(27), SIGVTALRM(28), SIGPROF(29), SIGWINCH(30), SIGPOLL(31), SIGIO(32), SIGPWR(33), SIGSYS(34), SIGUNUSED(35), SIGRTMIN(36), SIGRTMAX(37), NSIG(38); private final int value; private Signal(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 38; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/TCP.java0000644000175000017500000000123711316212262024760 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:35 +1000 2009 package com.kenai.constantine.platform.fake; public enum TCP implements com.kenai.constantine.Constant { TCP_MAX_SACK(1), TCP_MSS(2), TCP_MINMSS(3), TCP_MINMSSOVERLOAD(4), TCP_MAXWIN(5), TCP_MAX_WINSHIFT(6), TCP_MAXBURST(7), TCP_MAXHLEN(8), TCP_MAXOLEN(9), TCP_NODELAY(10), TCP_MAXSEG(11), TCP_NOPUSH(12), TCP_NOOPT(13), TCP_KEEPALIVE(14), TCP_NSTATES(15), TCP_RETRANSHZ(16); private final int value; private TCP(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 16; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/IPProto.java0000644000175000017500000000160611316212262025666 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:34 +1000 2009 package com.kenai.constantine.platform.fake; public enum IPProto implements com.kenai.constantine.Constant { IPPROTO_IP(1), IPPROTO_HOPOPTS(2), IPPROTO_ICMP(3), IPPROTO_IGMP(4), IPPROTO_IPIP(5), IPPROTO_TCP(6), IPPROTO_EGP(7), IPPROTO_PUP(8), IPPROTO_UDP(9), IPPROTO_IDP(10), IPPROTO_TP(11), IPPROTO_IPV6(12), IPPROTO_ROUTING(13), IPPROTO_FRAGMENT(14), IPPROTO_RSVP(15), IPPROTO_GRE(16), IPPROTO_ESP(17), IPPROTO_AH(18), IPPROTO_ICMPV6(19), IPPROTO_NONE(20), IPPROTO_DSTOPTS(21), IPPROTO_MTP(22), IPPROTO_ENCAP(23), IPPROTO_PIM(24), IPPROTO_COMP(25), IPPROTO_SCTP(26), IPPROTO_RAW(27), IPPROTO_MAX(28); private final int value; private IPProto(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 28; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/INAddr.java0000644000175000017500000000110311316212262025423 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:33 +1000 2009 package com.kenai.constantine.platform.fake; public enum INAddr implements com.kenai.constantine.Constant { INADDR_ANY(1), INADDR_BROADCAST(2), INADDR_NONE(3), INADDR_LOOPBACK(4), INADDR_UNSPEC_GROUP(5), INADDR_ALLHOSTS_GROUP(6), INADDR_ALLRTRS_GROUP(7), INADDR_MAX_LOCAL_GROUP(8); private final int value; private INAddr(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 8; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/fake/WaitFlags.java0000644000175000017500000000077211316212262026216 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:32 +1000 2009 package com.kenai.constantine.platform.fake; public enum WaitFlags implements com.kenai.constantine.Constant { WNOHANG(0x1), WUNTRACED(0x2), WSTOPPED(0x4), WEXITED(0x8), WCONTINUED(0x10), WNOWAIT(0x20); private final int value; private WaitFlags(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 0x20; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/IPProto.java0000644000175000017500000000176511316212262024766 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:30 +1000 2009 package com.kenai.constantine.platform; public enum IPProto implements com.kenai.constantine.Constant { IPPROTO_IP, IPPROTO_HOPOPTS, IPPROTO_ICMP, IPPROTO_IGMP, IPPROTO_IPIP, IPPROTO_TCP, IPPROTO_EGP, IPPROTO_PUP, IPPROTO_UDP, IPPROTO_IDP, IPPROTO_TP, IPPROTO_IPV6, IPPROTO_ROUTING, IPPROTO_FRAGMENT, IPPROTO_RSVP, IPPROTO_GRE, IPPROTO_ESP, IPPROTO_AH, IPPROTO_ICMPV6, IPPROTO_NONE, IPPROTO_DSTOPTS, IPPROTO_MTP, IPPROTO_ENCAP, IPPROTO_PIM, IPPROTO_COMP, IPPROTO_SCTP, IPPROTO_RAW, IPPROTO_MAX, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getResolver(IPProto.class, 20000, 29999); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static IPProto valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/INAddr.java0000644000175000017500000000140011316212262024515 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:30 +1000 2009 package com.kenai.constantine.platform; public enum INAddr implements com.kenai.constantine.Constant { INADDR_ANY, INADDR_BROADCAST, INADDR_NONE, INADDR_LOOPBACK, INADDR_UNSPEC_GROUP, INADDR_ALLHOSTS_GROUP, INADDR_ALLRTRS_GROUP, INADDR_MAX_LOCAL_GROUP, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getResolver(INAddr.class, 20000, 29999); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static INAddr valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/windows/0000755000175000017500000000000011316212262024250 5ustar niconicolibconstantine-java-0.7/src/com/kenai/constantine/platform/windows/Errno.java0000644000175000017500000001002111316212262026172 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Dec 28 13:51:49 +0100 2009 package com.kenai.constantine.platform.windows; public enum Errno implements com.kenai.constantine.Constant { E2BIG(7), // ENOMSG not defined // ENETDOWN not defined // ECONNABORTED not defined ENFILE(23), // ESHUTDOWN not defined // ENETUNREACH not defined EPERM(1), EDEADLK(36), EBADF(9), EMFILE(24), // EADDRNOTAVAIL not defined // EREMOTE not defined // ETIMEDOUT not defined // EMSGSIZE not defined ENXIO(6), // EMULTIHOP not defined // EHOSTDOWN not defined // EOPNOTSUPP not defined ECHILD(10), ERANGE(34), // ELOOP not defined // ESTALE not defined EBUSY(16), // ENOBUFS not defined EAGAIN(11), // ETIME not defined // EALREADY not defined // ETXTBSY not defined ESPIPE(29), // EPROTONOSUPPORT not defined // EPROTO not defined EFBIG(27), EINVAL(22), // ENOTSOCK not defined // EHOSTUNREACH not defined // ENOSTR not defined // ETOOMANYREFS not defined // EAFNOSUPPORT not defined EXDEV(18), // EDESTADDRREQ not defined // ENOTCONN not defined EACCES(13), // ECONNRESET not defined EIO(5), // ENOSR not defined // ENODATA not defined EDOM(33), // ENOPROTOOPT not defined // EINPROGRESS not defined // EADDRINUSE not defined ENOTEMPTY(41), // EWOULDBLOCK not defined // ENOTBLK not defined ENOLCK(39), // EDQUOT not defined EINTR(4), ENOTDIR(20), EROFS(30), // ECONNREFUSED not defined // EBADMSG not defined EISDIR(21), ENOMEM(12), ENODEV(19), ENOSPC(28), // ENOLINK not defined // EISCONN not defined // ESOCKTNOSUPPORT not defined ENOEXEC(8), // ENETRESET not defined // EIDRM not defined ENOSYS(40), EEXIST(17), ENOTTY(25), ENAMETOOLONG(38), EPIPE(32), // EOVERFLOW not defined // EUSERS not defined // EPFNOSUPPORT not defined ESRCH(3), // EPROTOTYPE not defined EILSEQ(42), EFAULT(14), ENOENT(2), EMLINK(31); private final int value; private Errno(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 42; static final class StringTable { public static final java.util.Map descriptions = generateTable(); public static final java.util.Map generateTable() { java.util.Map map = new java.util.EnumMap(Errno.class); map.put(E2BIG, "Arg list too long"); map.put(ENFILE, "Too many open files in system"); map.put(EPERM, "Operation not permitted"); map.put(EDEADLK, "Resource deadlock avoided"); map.put(EBADF, "Bad file descriptor"); map.put(EMFILE, "Too many open files"); map.put(ENXIO, "No such device or address"); map.put(ECHILD, "No child processes"); map.put(ERANGE, "Result too large"); map.put(EBUSY, "Resource device"); map.put(EAGAIN, "Resource temporarily unavailable"); map.put(ESPIPE, "Invalid seek"); map.put(EFBIG, "File too large"); map.put(EINVAL, "Invalid argument"); map.put(EXDEV, "Improper link"); map.put(EACCES, "Permission denied"); map.put(EIO, "Input/output error"); map.put(EDOM, "Domain error"); map.put(ENOTEMPTY, "Directory not empty"); map.put(ENOLCK, "No locks available"); map.put(EINTR, "Interrupted function call"); map.put(ENOTDIR, "Not a directory"); map.put(EROFS, "Read-only file system"); map.put(EISDIR, "Is a directory"); map.put(ENOMEM, "Not enough space"); map.put(ENODEV, "No such device"); map.put(ENOSPC, "No space left on device"); map.put(ENOEXEC, "Exec format error"); map.put(ENOSYS, "Function not implemented"); map.put(EEXIST, "File exists"); map.put(ENOTTY, "Inappropriate I/O control operation"); map.put(ENAMETOOLONG, "Filename too long"); map.put(EPIPE, "Broken pipe"); map.put(ESRCH, "No such process"); map.put(EILSEQ, "Illegal byte sequence"); map.put(EFAULT, "Bad address"); map.put(ENOENT, "No such file or directory"); map.put(EMLINK, "Too many links"); return map; } } public final String toString() { return StringTable.descriptions.get(this); } public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/windows/LastError.java0000644000175000017500000002410011316212262027025 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Dec 28 13:23:33 +0100 2009 package com.kenai.constantine.platform.windows; public enum LastError implements com.kenai.constantine.Constant { ERROR_INFLOOP_IN_RELOC_CHAIN(202), ERROR_IOPL_NOT_ENABLED(197), ERROR_FILE_EXISTS(80), ERROR_FAIL_I24(83), ERROR_NEGATIVE_SEEK(131), WSAEACCES(10013), ERROR_NESTING_NOT_ALLOWED(215), ERROR_FILENAME_EXCED_RANGE(206), ERROR_BAD_PATHNAME(161), ERROR_ACCESS_DENIED(5), ERROR_SHARING_BUFFER_EXCEEDED(36), ERROR_NO_PROC_SLOTS(89), ERROR_EXE_MARKED_INVALID(192), ERROR_INVALID_BLOCK(9), ERROR_ITERATED_DATA_EXCEEDS_64k(194), WSAEBADF(10009), ERROR_RING2SEG_MUST_BE_MOVABLE(200), ERROR_LOCK_VIOLATION(33), ERROR_INVALID_DATA(13), ERROR_BAD_COMMAND(22), ERROR_MAX_THRDS_REACHED(164), ERROR_NO_MORE_FILES(18), ERROR_FILE_NOT_FOUND(2), ERROR_CRC(23), ERROR_READ_FAULT(30), ERROR_LOCK_FAILED(167), ERROR_TOO_MANY_OPEN_FILES(4), ERROR_INVALID_ACCESS(12), ERROR_CHILD_NOT_COMPLETE(129), ERROR_RELOC_CHAIN_XEEDS_SEGLIM(201), ERROR_INVALID_SEGDPL(198), ERROR_BAD_FORMAT(11), ERROR_NOT_DOS_DISK(26), ERROR_GEN_FAILURE(31), ERROR_WRONG_DISK(34), ERROR_SEEK_ON_DEVICE(132), ERROR_SEEK(25), ERROR_WRITE_PROTECT(19), ERROR_BAD_LENGTH(24), ERROR_DYNLINK_FROM_INVALID_RING(196), ERROR_INVALID_HANDLE(6), ERROR_INVALID_DRIVE(15), ERROR_DRIVE_LOCKED(108), ERROR_NOT_SAME_DEVICE(17), ERROR_BAD_NET_NAME(67), ERROR_BAD_EXE_FORMAT(193), ERROR_NO_DATA(232), ERROR_BAD_PIPE(230), ERROR_NETWORK_ACCESS_DENIED(65), ERROR_OUT_OF_PAPER(28), ERROR_NOT_READY(21), ERROR_BAD_UNIT(20), ERROR_BROKEN_PIPE(109), ERROR_SHARING_VIOLATION(32), ERROR_ALREADY_EXISTS(183), ERROR_INVALID_STACKSEG(189), ERROR_INVALID_PARAMETER(87), WSAEFAULT(10014), ERROR_PIPE_BUSY(231), // ERROR_PIPE_LOCAL not defined WSAEMFILE(10024), ERROR_MOD_NOT_FOUND(126), ERROR_NOT_ENOUGH_QUOTA(1816), ERROR_PIPE_NOT_CONNECTED(233), ERROR_PATH_NOT_FOUND(3), WSAEINTR(10004), ERROR_DIRECT_ACCESS_HANDLE(130), ERROR_INVALID_TARGET_HANDLE(114), ERROR_INVALID_MINALLOCSIZE(195), ERROR_WRITE_FAULT(29), ERROR_CURRENT_DIRECTORY(16), ERROR_NOT_ENOUGH_MEMORY(8), ERROR_INVALID_EXE_SIGNATURE(191), ERROR_DIRECTORY(267), ERROR_INVALID_MODULETYPE(190), WSAENAMETOOLONG(10063), ERROR_OPERATION_ABORTED(995), ERROR_INVALID_STARTING_CODESEG(188), ERROR_SECTOR_NOT_FOUND(27), ERROR_DISK_FULL(112), ERROR_DIR_NOT_EMPTY(145), WSAEINVAL(10022), ERROR_AUTODATASEG_EXCEEDS_64k(199), ERROR_BAD_ENVIRONMENT(10), ERROR_WAIT_NO_CHILDREN(128), ERROR_NOT_LOCKED(158), ERROR_CANNOT_MAKE(82), WSAENOTEMPTY(10066), ERROR_ARENA_TRASHED(7), ERROR_BAD_NETPATH(53), ERROR_INVALID_FUNCTION(1); private final int value; private LastError(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 10066; static final class StringTable { public static final java.util.Map descriptions = generateTable(); public static final java.util.Map generateTable() { java.util.Map map = new java.util.EnumMap(LastError.class); map.put(ERROR_INFLOOP_IN_RELOC_CHAIN, "ERROR_INFLOOP_IN_RELOC_CHAIN"); map.put(ERROR_IOPL_NOT_ENABLED, "The operating system is not presently configured to run this application"); map.put(ERROR_FILE_EXISTS, "The file exists"); map.put(ERROR_FAIL_I24, "Fail on INT 24"); map.put(ERROR_NEGATIVE_SEEK, "An attempt was made to move the file pointer before the beginning of the file"); map.put(WSAEACCES, "An attempt was made to access a socket in a way forbidden by its access permissions"); map.put(ERROR_NESTING_NOT_ALLOWED, "Cannot nest calls to LoadModule"); map.put(ERROR_FILENAME_EXCED_RANGE, "The filename or extension is too long"); map.put(ERROR_BAD_PATHNAME, "The specified path is invalid"); map.put(ERROR_ACCESS_DENIED, "Access is denied"); map.put(ERROR_SHARING_BUFFER_EXCEEDED, "Too many files opened for sharing"); map.put(ERROR_NO_PROC_SLOTS, "The system cannot start another process at this time"); map.put(ERROR_EXE_MARKED_INVALID, "ERROR_EXE_MARKED_INVALID"); map.put(ERROR_INVALID_BLOCK, "The storage control block address is invalid"); map.put(ERROR_ITERATED_DATA_EXCEEDS_64k, "ERROR_ITERATED_DATA_EXCEEDS_64k"); map.put(WSAEBADF, "The file handle supplied is not valid"); map.put(ERROR_RING2SEG_MUST_BE_MOVABLE, "The code segment cannot be greater than or equal to 64K"); map.put(ERROR_LOCK_VIOLATION, "The process cannot access the file because another process has locked a portion of the file"); map.put(ERROR_INVALID_DATA, "The data is invalid"); map.put(ERROR_BAD_COMMAND, "The device does not recognize the command"); map.put(ERROR_MAX_THRDS_REACHED, "No more threads can be created in the system"); map.put(ERROR_NO_MORE_FILES, "There are no more files"); map.put(ERROR_FILE_NOT_FOUND, "The system cannot find the file specified"); map.put(ERROR_CRC, "Data error (cyclic redundancy check)"); map.put(ERROR_READ_FAULT, "The system cannot read from the specified device"); map.put(ERROR_LOCK_FAILED, "Unable to lock a region of a file"); map.put(ERROR_TOO_MANY_OPEN_FILES, "The system cannot open the file"); map.put(ERROR_INVALID_ACCESS, "The access code is invalid"); map.put(ERROR_CHILD_NOT_COMPLETE, "ERROR_CHILD_NOT_COMPLETE"); map.put(ERROR_RELOC_CHAIN_XEEDS_SEGLIM, "ERROR_RELOC_CHAIN_XEEDS_SEGLIM"); map.put(ERROR_INVALID_SEGDPL, "ERROR_INVALID_SEGDPL"); map.put(ERROR_BAD_FORMAT, "An attempt was made to load a program with an incorrect format"); map.put(ERROR_NOT_DOS_DISK, "The specified disk or diskette cannot be accessed"); map.put(ERROR_GEN_FAILURE, "A device attached to the system is not functioning"); map.put(ERROR_WRONG_DISK, "ERROR_WRONG_DISK"); map.put(ERROR_SEEK_ON_DEVICE, "The file pointer cannot be set on the specified device or file"); map.put(ERROR_SEEK, "The drive cannot locate a specific area or track on the disk"); map.put(ERROR_WRITE_PROTECT, "The media is write protected"); map.put(ERROR_BAD_LENGTH, "The program issued a command but the command length is incorrect"); map.put(ERROR_DYNLINK_FROM_INVALID_RING, "The operating system cannot run this application program"); map.put(ERROR_INVALID_HANDLE, "The handle is invalid"); map.put(ERROR_INVALID_DRIVE, "The system cannot find the drive specified"); map.put(ERROR_DRIVE_LOCKED, "The disk is in use or locked by another process"); map.put(ERROR_NOT_SAME_DEVICE, "The system cannot move the file to a different disk drive"); map.put(ERROR_BAD_NET_NAME, "The network name cannot be found"); map.put(ERROR_BAD_EXE_FORMAT, "ERROR_BAD_EXE_FORMAT"); map.put(ERROR_NO_DATA, "The pipe is being closed"); map.put(ERROR_BAD_PIPE, "The pipe state is invalid"); map.put(ERROR_NETWORK_ACCESS_DENIED, "Network access is denied"); map.put(ERROR_OUT_OF_PAPER, "The printer is out of paper"); map.put(ERROR_NOT_READY, "The device is not ready"); map.put(ERROR_BAD_UNIT, "The system cannot find the device specified"); map.put(ERROR_BROKEN_PIPE, "The pipe has been ended"); map.put(ERROR_SHARING_VIOLATION, "The process cannot access the file because it is being used by another process"); map.put(ERROR_ALREADY_EXISTS, "Cannot create a file when that file already exists"); map.put(ERROR_INVALID_STACKSEG, "ERROR_INVALID_STACKSEG"); map.put(ERROR_INVALID_PARAMETER, "The parameter is incorrect"); map.put(WSAEFAULT, "The system detected an invalid pointer address in attempting to use a pointer argument in a call"); map.put(ERROR_PIPE_BUSY, "All pipe instances are busy"); map.put(WSAEMFILE, "Too many open sockets"); map.put(ERROR_MOD_NOT_FOUND, "The specified module could not be found"); map.put(ERROR_NOT_ENOUGH_QUOTA, "Not enough quota is available to process this command"); map.put(ERROR_PIPE_NOT_CONNECTED, "No process is on the other end of the pipe"); map.put(ERROR_PATH_NOT_FOUND, "The system cannot find the path specified"); map.put(WSAEINTR, "A blocking operation was interrupted by a call to WSACancelBlockingCall"); map.put(ERROR_DIRECT_ACCESS_HANDLE, "Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O"); map.put(ERROR_INVALID_TARGET_HANDLE, "The target internal file identifier is incorrect"); map.put(ERROR_INVALID_MINALLOCSIZE, "ERROR_INVALID_MINALLOCSIZE"); map.put(ERROR_WRITE_FAULT, "The system cannot write to the specified device"); map.put(ERROR_CURRENT_DIRECTORY, "The directory cannot be removed"); map.put(ERROR_NOT_ENOUGH_MEMORY, "Not enough storage is available to process this command"); map.put(ERROR_INVALID_EXE_SIGNATURE, "ERROR_INVALID_EXE_SIGNATURE"); map.put(ERROR_DIRECTORY, "The directory name is invalid"); map.put(ERROR_INVALID_MODULETYPE, "ERROR_INVALID_MODULETYPE"); map.put(WSAENAMETOOLONG, "Name component or name was too long"); map.put(ERROR_OPERATION_ABORTED, "The I/O operation has been aborted because of either a thread exit or an application request"); map.put(ERROR_INVALID_STARTING_CODESEG, "ERROR_INVALID_STARTING_CODESEG"); map.put(ERROR_SECTOR_NOT_FOUND, "The drive cannot find the sector requested"); map.put(ERROR_DISK_FULL, "There is not enough space on the disk"); map.put(ERROR_DIR_NOT_EMPTY, "The directory is not empty"); map.put(WSAEINVAL, "An invalid argument was supplied"); map.put(ERROR_AUTODATASEG_EXCEEDS_64k, "The operating system cannot run this application program"); map.put(ERROR_BAD_ENVIRONMENT, "The environment is incorrect"); map.put(ERROR_WAIT_NO_CHILDREN, "There are no child processes to wait for"); map.put(ERROR_NOT_LOCKED, "The segment is already unlocked"); map.put(ERROR_CANNOT_MAKE, "The directory or file cannot be created"); map.put(WSAENOTEMPTY, "Cannot remove a directory that is not empty"); map.put(ERROR_ARENA_TRASHED, "The storage control blocks were destroyed"); map.put(ERROR_BAD_NETPATH, "The network path was not found"); map.put(ERROR_INVALID_FUNCTION, "Incorrect function"); return map; } } public final String toString() { return StringTable.descriptions.get(this); } public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/windows/OpenFlags.java0000644000175000017500000000151211316212262026770 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Dec 28 13:23:34 +0100 2009 package com.kenai.constantine.platform.windows; public enum OpenFlags implements com.kenai.constantine.Constant { O_APPEND(8), // O_NOCTTY not defined // O_DIRECTORY not defined // O_EVTONLY not defined // O_SYNC not defined O_ACCMODE(3), O_CREAT(256), // O_EXLOCK not defined O_WRONLY(1), O_EXCL(1024), // O_ASYNC not defined // O_SHLOCK not defined // O_NONBLOCK not defined O_RDONLY(0), O_BINARY(32768), // O_SYMLINK not defined // O_NOFOLLOW not defined // O_FSYNC not defined O_RDWR(2), O_TRUNC(512); private final int value; private OpenFlags(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 32768; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/windows/Signal.java0000644000175000017500000000234611316212262026335 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Dec 28 13:23:34 +0100 2009 package com.kenai.constantine.platform.windows; public enum Signal implements com.kenai.constantine.Constant { SIGTERM(15), // SIGRTMIN not defined // SIGTTIN not defined // SIGPIPE not defined SIGSEGV(11), SIGABRT(22), // SIGPROF not defined // SIGTTOU not defined // SIGTSTP not defined // SIGSTOP not defined // SIGCLD not defined // SIGSTKFLT not defined SIGFPE(8), // SIGQUIT not defined // SIGIO not defined // SIGXCPU not defined // SIGALRM not defined // SIGUSR1 not defined // SIGUSR2 not defined SIGILL(4), NSIG(23), // SIGURG not defined // SIGPWR not defined // SIGKILL not defined // SIGBUS not defined // SIGUNUSED not defined // SIGPOLL not defined // SIGWINCH not defined // SIGCONT not defined // SIGCHLD not defined // SIGRTMAX not defined // SIGSYS not defined // SIGXFSZ not defined // SIGTRAP not defined // SIGIOT not defined // SIGHUP not defined // SIGVTALRM not defined SIGINT(2); private final int value; private Signal(int value) { this.value = value; } public static final long MIN_VALUE = 2; public static final long MAX_VALUE = 23; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/0000755000175000017500000000000011316212262023715 5ustar niconicolibconstantine-java-0.7/src/com/kenai/constantine/platform/linux/Errno.java0000644000175000017500000001350011316212262025644 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:04 +1000 2009 package com.kenai.constantine.platform.linux; public enum Errno implements com.kenai.constantine.Constant { EPERM(1), ENOENT(2), ESRCH(3), EINTR(4), EIO(5), ENXIO(6), E2BIG(7), ENOEXEC(8), EBADF(9), ECHILD(10), EDEADLK(35), ENOMEM(12), EACCES(13), EFAULT(14), ENOTBLK(15), EBUSY(16), EEXIST(17), EXDEV(18), ENODEV(19), ENOTDIR(20), EISDIR(21), EINVAL(22), ENFILE(23), EMFILE(24), ENOTTY(25), ETXTBSY(26), EFBIG(27), ENOSPC(28), ESPIPE(29), EROFS(30), EMLINK(31), EPIPE(32), EDOM(33), ERANGE(34), EWOULDBLOCK(11), EAGAIN(11), EINPROGRESS(115), EALREADY(114), ENOTSOCK(88), EDESTADDRREQ(89), EMSGSIZE(90), EPROTOTYPE(91), ENOPROTOOPT(92), EPROTONOSUPPORT(93), ESOCKTNOSUPPORT(94), EOPNOTSUPP(95), EPFNOSUPPORT(96), EAFNOSUPPORT(97), EADDRINUSE(98), EADDRNOTAVAIL(99), ENETDOWN(100), ENETUNREACH(101), ENETRESET(102), ECONNABORTED(103), ECONNRESET(104), ENOBUFS(105), EISCONN(106), ENOTCONN(107), ESHUTDOWN(108), ETOOMANYREFS(109), ETIMEDOUT(110), ECONNREFUSED(111), ELOOP(40), ENAMETOOLONG(36), EHOSTDOWN(112), EHOSTUNREACH(113), ENOTEMPTY(39), EUSERS(87), EDQUOT(122), ESTALE(116), EREMOTE(66), ENOLCK(37), ENOSYS(38), EOVERFLOW(75), EIDRM(43), ENOMSG(42), EILSEQ(84), EBADMSG(74), EMULTIHOP(72), ENODATA(61), ENOLINK(67), ENOSR(63), ENOSTR(60), EPROTO(71), ETIME(62); private final int value; private Errno(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 122; static final class StringTable { public static final java.util.Map descriptions = generateTable(); public static final java.util.Map generateTable() { java.util.Map map = new java.util.EnumMap(Errno.class); map.put(EPERM, "Operation not permitted"); map.put(ENOENT, "No such file or directory"); map.put(ESRCH, "No such process"); map.put(EINTR, "Interrupted system call"); map.put(EIO, "Input/output error"); map.put(ENXIO, "No such device or address"); map.put(E2BIG, "Argument list too long"); map.put(ENOEXEC, "Exec format error"); map.put(EBADF, "Bad file descriptor"); map.put(ECHILD, "No child processes"); map.put(EDEADLK, "Resource deadlock avoided"); map.put(ENOMEM, "Cannot allocate memory"); map.put(EACCES, "Permission denied"); map.put(EFAULT, "Bad address"); map.put(ENOTBLK, "Block device required"); map.put(EBUSY, "Device or resource busy"); map.put(EEXIST, "File exists"); map.put(EXDEV, "Invalid cross-device link"); map.put(ENODEV, "No such device"); map.put(ENOTDIR, "Not a directory"); map.put(EISDIR, "Is a directory"); map.put(EINVAL, "Invalid argument"); map.put(ENFILE, "Too many open files in system"); map.put(EMFILE, "Too many open files"); map.put(ENOTTY, "Inappropriate ioctl for device"); map.put(ETXTBSY, "Text file busy"); map.put(EFBIG, "File too large"); map.put(ENOSPC, "No space left on device"); map.put(ESPIPE, "Illegal seek"); map.put(EROFS, "Read-only file system"); map.put(EMLINK, "Too many links"); map.put(EPIPE, "Broken pipe"); map.put(EDOM, "Numerical argument out of domain"); map.put(ERANGE, "Numerical result out of range"); map.put(EWOULDBLOCK, "Resource temporarily unavailable"); map.put(EAGAIN, "Resource temporarily unavailable"); map.put(EINPROGRESS, "Operation now in progress"); map.put(EALREADY, "Operation already in progress"); map.put(ENOTSOCK, "Socket operation on non-socket"); map.put(EDESTADDRREQ, "Destination address required"); map.put(EMSGSIZE, "Message too long"); map.put(EPROTOTYPE, "Protocol wrong type for socket"); map.put(ENOPROTOOPT, "Protocol not available"); map.put(EPROTONOSUPPORT, "Protocol not supported"); map.put(ESOCKTNOSUPPORT, "Socket type not supported"); map.put(EOPNOTSUPP, "Operation not supported"); map.put(EPFNOSUPPORT, "Protocol family not supported"); map.put(EAFNOSUPPORT, "Address family not supported by protocol"); map.put(EADDRINUSE, "Address already in use"); map.put(EADDRNOTAVAIL, "Cannot assign requested address"); map.put(ENETDOWN, "Network is down"); map.put(ENETUNREACH, "Network is unreachable"); map.put(ENETRESET, "Network dropped connection on reset"); map.put(ECONNABORTED, "Software caused connection abort"); map.put(ECONNRESET, "Connection reset by peer"); map.put(ENOBUFS, "No buffer space available"); map.put(EISCONN, "Transport endpoint is already connected"); map.put(ENOTCONN, "Transport endpoint is not connected"); map.put(ESHUTDOWN, "Cannot send after transport endpoint shutdown"); map.put(ETOOMANYREFS, "Too many references: cannot splice"); map.put(ETIMEDOUT, "Connection timed out"); map.put(ECONNREFUSED, "Connection refused"); map.put(ELOOP, "Too many levels of symbolic links"); map.put(ENAMETOOLONG, "File name too long"); map.put(EHOSTDOWN, "Host is down"); map.put(EHOSTUNREACH, "No route to host"); map.put(ENOTEMPTY, "Directory not empty"); map.put(EUSERS, "Too many users"); map.put(EDQUOT, "Disk quota exceeded"); map.put(ESTALE, "Stale NFS file handle"); map.put(EREMOTE, "Object is remote"); map.put(ENOLCK, "No locks available"); map.put(ENOSYS, "Function not implemented"); map.put(EOVERFLOW, "Value too large for defined data type"); map.put(EIDRM, "Identifier removed"); map.put(ENOMSG, "No message of desired type"); map.put(EILSEQ, "Invalid or incomplete multibyte or wide character"); map.put(EBADMSG, "Bad message"); map.put(EMULTIHOP, "Multihop attempted"); map.put(ENODATA, "No data available"); map.put(ENOLINK, "Link has been severed"); map.put(ENOSR, "Out of streams resources"); map.put(ENOSTR, "Device not a stream"); map.put(EPROTO, "Protocol error"); map.put(ETIME, "Timer expired"); return map; } } public final String toString() { return StringTable.descriptions.get(this); } public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/ProtocolFamily.java0000644000175000017500000000227111316212262027525 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:05 +1000 2009 package com.kenai.constantine.platform.linux; public enum ProtocolFamily implements com.kenai.constantine.Constant { PF_UNSPEC(0), PF_LOCAL(1), PF_UNIX(1), PF_INET(2), // PF_IMPLINK not defined // PF_PUP not defined // PF_CHAOS not defined // PF_NS not defined // PF_ISO not defined // PF_OSI not defined // PF_ECMA not defined // PF_DATAKIT not defined // PF_CCITT not defined PF_SNA(22), PF_DECnet(12), // PF_DLI not defined // PF_LAT not defined // PF_HYLINK not defined PF_APPLETALK(5), PF_ROUTE(16), // PF_LINK not defined // PF_XTP not defined // PF_COIP not defined // PF_CNT not defined // PF_SIP not defined PF_IPX(4), // PF_RTIP not defined // PF_PIP not defined // PF_NDRV not defined // PF_ISDN not defined PF_KEY(15), PF_INET6(10), // PF_NATM not defined // PF_SYSTEM not defined // PF_NETBIOS not defined // PF_PPP not defined // PF_ATM not defined // PF_NETGRAPH not defined PF_MAX(34); private final int value; private ProtocolFamily(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 34; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/Shutdown.java0000644000175000017500000000070111316212262026371 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:04 +1000 2009 package com.kenai.constantine.platform.linux; public enum Shutdown implements com.kenai.constantine.Constant { SHUT_RD(0), SHUT_WR(1), SHUT_RDWR(2); private final int value; private Shutdown(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 2; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/Fcntl.java0000644000175000017500000000230211316212262025623 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:05 +1000 2009 package com.kenai.constantine.platform.linux; public enum Fcntl implements com.kenai.constantine.Constant { FAPPEND(1024), // FREAD not defined // FWRITE not defined FASYNC(8192), FFSYNC(4096), FNONBLOCK(2048), FNDELAY(2048), F_DUPFD(0), F_GETFD(1), F_SETFD(2), F_GETFL(3), F_SETFL(4), F_GETOWN(9), F_SETOWN(8), F_GETLK(12), F_SETLK(13), F_SETLKW(14), // F_CHKCLEAN not defined // F_PREALLOCATE not defined // F_SETSIZE not defined // F_RDADVISE not defined // F_RDAHEAD not defined // F_READBOOTSTRAP not defined // F_WRITEBOOTSTRAP not defined // F_NOCACHE not defined // F_LOG2PHYS not defined // F_GETPATH not defined // F_FULLFSYNC not defined // F_PATHPKG_CHECK not defined // F_FREEZE_FS not defined // F_THAW_FS not defined // F_GLOBAL_NOCACHE not defined // F_ADDSIGS not defined // F_MARKDEPENDENCY not defined F_RDLCK(0), F_UNLCK(2), F_WRLCK(1); // F_ALLOCATECONTIG not defined // F_ALLOCATEALL not defined private final int value; private Fcntl(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 8192; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/PRIO.java0000644000175000017500000000074011316212262025332 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:05 +1000 2009 package com.kenai.constantine.platform.linux; public enum PRIO implements com.kenai.constantine.Constant { PRIO_MIN(-20), PRIO_PROCESS(0), PRIO_PGRP(1), PRIO_USER(2), PRIO_MAX(20); private final int value; private PRIO(int value) { this.value = value; } public static final long MIN_VALUE = -20; public static final long MAX_VALUE = 20; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/SocketLevel.java0000644000175000017500000000076411316212262027007 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:06 +1000 2009 package com.kenai.constantine.platform.linux; public enum SocketLevel implements com.kenai.constantine.Constant { SOL_SOCKET(1); // SOL_IP not defined // SOL_TCP not defined // SOL_UDP not defined private final int value; private SocketLevel(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 1; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/AddressFamily.java0000644000175000017500000000244211316212262027311 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:02 +1000 2009 package com.kenai.constantine.platform.linux; public enum AddressFamily implements com.kenai.constantine.Constant { AF_UNSPEC(0), AF_LOCAL(1), AF_UNIX(1), AF_INET(2), // AF_IMPLINK not defined // AF_PUP not defined // AF_CHAOS not defined // AF_NS not defined // AF_ISO not defined // AF_OSI not defined // AF_ECMA not defined // AF_DATAKIT not defined // AF_CCITT not defined AF_SNA(22), AF_DECnet(12), // AF_DLI not defined // AF_LAT not defined // AF_HYLINK not defined AF_APPLETALK(5), AF_ROUTE(16), // AF_LINK not defined // pseudo_AF_XTP not defined // AF_COIP not defined // AF_CNT not defined // pseudo_AF_RTIP not defined AF_IPX(4), // AF_SIP not defined // pseudo_AF_PIP not defined // AF_NDRV not defined // AF_ISDN not defined // AF_E164 not defined // pseudo_AF_KEY not defined AF_INET6(10), // AF_NATM not defined // AF_SYSTEM not defined // AF_NETBIOS not defined // AF_PPP not defined // AF_ATM not defined // pseudo_AF_HDRCMPLT not defined // AF_NETGRAPH not defined AF_AX25(3), AF_MAX(34); private final int value; private AddressFamily(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 34; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/RLIM.java0000644000175000017500000000100411316212262025316 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:03 +1000 2009 package com.kenai.constantine.platform.linux; public enum RLIM implements com.kenai.constantine.Constant { RLIM_NLIMITS(0xf), RLIM_INFINITY(0xffffffff), RLIM_SAVED_MAX(0xffffffff), RLIM_SAVED_CUR(0xffffffff); private final int value; private RLIM(int value) { this.value = value; } public static final long MIN_VALUE = 0xf; public static final long MAX_VALUE = 0xffffffff; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/NameInfo.java0000644000175000017500000000106011316212262026251 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:07 +1000 2009 package com.kenai.constantine.platform.linux; public enum NameInfo implements com.kenai.constantine.Constant { NI_MAXHOST(1025), NI_MAXSERV(32), NI_NOFQDN(4), NI_NUMERICHOST(1), NI_NAMEREQD(8), NI_NUMERICSERV(2), NI_DGRAM(16); // NI_WITHSCOPEID not defined private final int value; private NameInfo(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 1025; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/Sock.java0000644000175000017500000000077611316212262025471 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:06 +1000 2009 package com.kenai.constantine.platform.linux; public enum Sock implements com.kenai.constantine.Constant { SOCK_STREAM(1), SOCK_DGRAM(2), SOCK_RAW(3), SOCK_RDM(4), SOCK_SEQPACKET(5); // SOCK_MAXADDRLEN not defined private final int value; private Sock(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 5; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/SocketOption.java0000644000175000017500000000255511316212262027210 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:06 +1000 2009 package com.kenai.constantine.platform.linux; public enum SocketOption implements com.kenai.constantine.Constant { SO_DEBUG(0x1), SO_ACCEPTCONN(0x1e), SO_REUSEADDR(0x2), SO_KEEPALIVE(0x9), SO_DONTROUTE(0x5), SO_BROADCAST(0x6), // SO_USELOOPBACK not defined SO_LINGER(0xd), SO_OOBINLINE(0xa), // SO_REUSEPORT not defined SO_TIMESTAMP(0x1d), // SO_ACCEPTFILTER not defined // SO_DONTTRUNC not defined // SO_WANTMORE not defined // SO_WANTOOBFLAG not defined SO_SNDBUF(0x7), SO_RCVBUF(0x8), SO_SNDLOWAT(0x13), SO_RCVLOWAT(0x12), SO_SNDTIMEO(0x15), SO_RCVTIMEO(0x14), SO_ERROR(0x4), SO_TYPE(0x3), // SO_NREAD not defined // SO_NKE not defined // SO_NOSIGPIPE not defined // SO_NOADDRERR not defined // SO_NWRITE not defined // SO_REUSESHAREUID not defined // SO_LABEL not defined // SO_PEERLABEL not defined SO_ATTACH_FILTER(0x1a), SO_BINDTODEVICE(0x19), SO_DETACH_FILTER(0x1b), SO_NO_CHECK(0xb), SO_PASSCRED(0x10), SO_PEERCRED(0x11), SO_PEERNAME(0x1c), SO_PRIORITY(0xc), SO_SECURITY_AUTHENTICATION(0x16), SO_SECURITY_ENCRYPTION_NETWORK(0x18), SO_SECURITY_ENCRYPTION_TRANSPORT(0x17); private final int value; private SocketOption(int value) { this.value = value; } public static final long MIN_VALUE = 0x1; public static final long MAX_VALUE = 0x1e; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/RLIMIT.java0000644000175000017500000000134011316212262025556 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:05 +1000 2009 package com.kenai.constantine.platform.linux; public enum RLIMIT implements com.kenai.constantine.Constant { RLIMIT_AS(9), RLIMIT_CORE(4), RLIMIT_CPU(0), RLIMIT_DATA(2), RLIMIT_FSIZE(1), RLIMIT_LOCKS(10), RLIMIT_MEMLOCK(8), RLIMIT_MSGQUEUE(12), RLIMIT_NICE(13), RLIMIT_NLIMITS(15), RLIMIT_NOFILE(7), RLIMIT_NPROC(6), RLIMIT_OFILE(7), RLIMIT_RSS(5), RLIMIT_RTPRIO(14), // RLIMIT_RTTIME not defined RLIMIT_SIGPENDING(11), RLIMIT_STACK(3); private final int value; private RLIMIT(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 15; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/OpenFlags.java0000644000175000017500000000134011316212262026434 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:03 +1000 2009 package com.kenai.constantine.platform.linux; public enum OpenFlags implements com.kenai.constantine.Constant { O_RDONLY(0), O_WRONLY(1), O_RDWR(2), O_ACCMODE(3), O_NONBLOCK(2048), O_APPEND(1024), O_SYNC(4096), // O_SHLOCK not defined // O_EXLOCK not defined O_ASYNC(8192), O_FSYNC(4096), // O_NOFOLLOW not defined O_CREAT(64), O_TRUNC(512), O_EXCL(128); // O_EVTONLY not defined // O_DIRECTORY not defined // O_SYMLINK not defined private final int value; private OpenFlags(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 8192; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/Sysconf.java0000644000175000017500000000652111316212262026210 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:03 +1000 2009 package com.kenai.constantine.platform.linux; public enum Sysconf implements com.kenai.constantine.Constant { _SC_ARG_MAX(0), _SC_CHILD_MAX(1), _SC_CLK_TCK(2), _SC_NGROUPS_MAX(3), _SC_OPEN_MAX(4), _SC_JOB_CONTROL(7), _SC_SAVED_IDS(8), _SC_VERSION(29), _SC_BC_BASE_MAX(36), _SC_BC_DIM_MAX(37), _SC_BC_SCALE_MAX(38), _SC_BC_STRING_MAX(39), _SC_COLL_WEIGHTS_MAX(40), _SC_EXPR_NEST_MAX(42), _SC_LINE_MAX(43), _SC_RE_DUP_MAX(44), _SC_2_VERSION(46), _SC_2_C_BIND(47), _SC_2_C_DEV(48), _SC_2_CHAR_TERM(95), _SC_2_FORT_DEV(49), _SC_2_FORT_RUN(50), _SC_2_LOCALEDEF(52), _SC_2_SW_DEV(51), _SC_2_UPE(97), _SC_STREAM_MAX(5), _SC_TZNAME_MAX(6), _SC_ASYNCHRONOUS_IO(12), _SC_PAGESIZE(30), _SC_MEMLOCK(17), _SC_MEMLOCK_RANGE(18), _SC_MEMORY_PROTECTION(19), _SC_MESSAGE_PASSING(20), _SC_PRIORITIZED_IO(13), _SC_PRIORITY_SCHEDULING(10), _SC_REALTIME_SIGNALS(9), _SC_SEMAPHORES(21), _SC_FSYNC(15), _SC_SHARED_MEMORY_OBJECTS(22), _SC_SYNCHRONIZED_IO(14), _SC_TIMERS(11), _SC_AIO_LISTIO_MAX(23), _SC_AIO_MAX(24), _SC_AIO_PRIO_DELTA_MAX(25), _SC_DELAYTIMER_MAX(26), _SC_MQ_OPEN_MAX(27), _SC_MAPPED_FILES(16), _SC_RTSIG_MAX(31), _SC_SEM_NSEMS_MAX(32), _SC_SEM_VALUE_MAX(33), _SC_SIGQUEUE_MAX(34), _SC_TIMER_MAX(35), _SC_NPROCESSORS_CONF(83), _SC_NPROCESSORS_ONLN(84), _SC_2_PBS(168), _SC_2_PBS_ACCOUNTING(169), _SC_2_PBS_CHECKPOINT(175), _SC_2_PBS_LOCATE(170), _SC_2_PBS_MESSAGE(171), _SC_2_PBS_TRACK(172), _SC_ADVISORY_INFO(132), _SC_BARRIERS(133), _SC_CLOCK_SELECTION(137), _SC_CPUTIME(138), _SC_FILE_LOCKING(147), _SC_GETGR_R_SIZE_MAX(69), _SC_GETPW_R_SIZE_MAX(70), _SC_HOST_NAME_MAX(180), _SC_LOGIN_NAME_MAX(71), _SC_MONOTONIC_CLOCK(149), _SC_MQ_PRIO_MAX(28), _SC_READER_WRITER_LOCKS(153), _SC_REGEXP(155), _SC_SHELL(157), _SC_SPAWN(159), _SC_SPIN_LOCKS(154), _SC_SPORADIC_SERVER(160), _SC_THREAD_ATTR_STACKADDR(77), _SC_THREAD_ATTR_STACKSIZE(78), _SC_THREAD_CPUTIME(139), _SC_THREAD_DESTRUCTOR_ITERATIONS(73), _SC_THREAD_KEYS_MAX(74), _SC_THREAD_PRIO_INHERIT(80), _SC_THREAD_PRIO_PROTECT(81), _SC_THREAD_PRIORITY_SCHEDULING(79), _SC_THREAD_PROCESS_SHARED(82), _SC_THREAD_SAFE_FUNCTIONS(68), _SC_THREAD_SPORADIC_SERVER(161), _SC_THREAD_STACK_MIN(75), _SC_THREAD_THREADS_MAX(76), _SC_TIMEOUTS(164), _SC_THREADS(67), _SC_TRACE(181), _SC_TRACE_EVENT_FILTER(182), _SC_TRACE_INHERIT(183), _SC_TRACE_LOG(184), _SC_TTY_NAME_MAX(72), _SC_TYPED_MEMORY_OBJECTS(165), _SC_V6_ILP32_OFF32(176), _SC_V6_ILP32_OFFBIG(177), _SC_V6_LP64_OFF64(178), _SC_V6_LPBIG_OFFBIG(179), _SC_IPV6(235), _SC_RAW_SOCKETS(236), _SC_SYMLOOP_MAX(173), _SC_ATEXIT_MAX(87), _SC_IOV_MAX(60), _SC_PAGE_SIZE(30), _SC_XOPEN_CRYPT(92), _SC_XOPEN_ENH_I18N(93), _SC_XOPEN_LEGACY(129), _SC_XOPEN_REALTIME(130), _SC_XOPEN_REALTIME_THREADS(131), _SC_XOPEN_SHM(94), // _SC_XOPEN_STREAMS not defined _SC_XOPEN_UNIX(91), _SC_XOPEN_VERSION(89), _SC_XOPEN_XCU_VERSION(90), _SC_XBS5_ILP32_OFF32(125), _SC_XBS5_ILP32_OFFBIG(126), _SC_XBS5_LP64_OFF64(127), _SC_XBS5_LPBIG_OFFBIG(128), // _SC_SS_REPL_MAX not defined // _SC_TRACE_EVENT_NAME_MAX not defined // _SC_TRACE_NAME_MAX not defined // _SC_TRACE_SYS_MAX not defined // _SC_TRACE_USER_EVENT_MAX not defined _SC_PASS_MAX(88); private final int value; private Sysconf(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 236; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/Signal.java0000644000175000017500000000156611316212262026005 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:03 +1000 2009 package com.kenai.constantine.platform.linux; public enum Signal implements com.kenai.constantine.Constant { SIGHUP(1), SIGINT(2), SIGQUIT(3), SIGILL(4), SIGTRAP(5), SIGABRT(6), SIGIOT(6), SIGBUS(7), SIGFPE(8), SIGKILL(9), SIGUSR1(10), SIGSEGV(11), SIGUSR2(12), SIGPIPE(13), SIGALRM(14), SIGTERM(15), SIGSTKFLT(16), SIGCLD(17), SIGCHLD(17), SIGCONT(18), SIGSTOP(19), SIGTSTP(20), SIGTTIN(21), SIGTTOU(22), SIGURG(23), SIGXCPU(24), SIGXFSZ(25), SIGVTALRM(26), SIGPROF(27), SIGWINCH(28), SIGPOLL(29), SIGIO(29), SIGPWR(30), SIGSYS(31), SIGUNUSED(31), SIGRTMIN(34), SIGRTMAX(64), NSIG(65); private final int value; private Signal(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 65; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/TCP.java0000644000175000017500000000143511316212262025211 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:06 +1000 2009 package com.kenai.constantine.platform.linux; public enum TCP implements com.kenai.constantine.Constant { TCP_MSS(512), // TCP_MAX_SACK not defined // TCP_MINMSS not defined // TCP_MINMSSOVERLOAD not defined TCP_MAXWIN(65535), TCP_MAX_WINSHIFT(14), // TCP_MAXBURST not defined // TCP_MAXHLEN not defined // TCP_MAXOLEN not defined TCP_NODELAY(1), TCP_MAXSEG(2); // TCP_NOPUSH not defined // TCP_NOOPT not defined // TCP_KEEPALIVE not defined // TCP_NSTATES not defined // TCP_RETRANSHZ not defined private final int value; private TCP(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 65535; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/IPProto.java0000644000175000017500000000163111316212262026115 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:05 +1000 2009 package com.kenai.constantine.platform.linux; public enum IPProto implements com.kenai.constantine.Constant { IPPROTO_IP(0), IPPROTO_HOPOPTS(0), IPPROTO_ICMP(1), IPPROTO_IGMP(2), IPPROTO_IPIP(4), IPPROTO_TCP(6), IPPROTO_EGP(8), IPPROTO_PUP(12), IPPROTO_UDP(17), IPPROTO_IDP(22), IPPROTO_TP(29), IPPROTO_IPV6(41), IPPROTO_ROUTING(43), IPPROTO_FRAGMENT(44), IPPROTO_RSVP(46), IPPROTO_GRE(47), IPPROTO_ESP(50), IPPROTO_AH(51), IPPROTO_ICMPV6(58), IPPROTO_NONE(59), IPPROTO_DSTOPTS(60), IPPROTO_MTP(92), IPPROTO_ENCAP(98), IPPROTO_PIM(103), IPPROTO_COMP(108), IPPROTO_SCTP(132), IPPROTO_RAW(255); // IPPROTO_MAX not defined private final int value; private IPProto(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 255; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/INAddr.java0000644000175000017500000000121511316212262025660 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:04 +1000 2009 package com.kenai.constantine.platform.linux; public enum INAddr implements com.kenai.constantine.Constant { INADDR_ANY(0), INADDR_BROADCAST(0xffffffff), INADDR_NONE(0xffffffff), INADDR_LOOPBACK(0x7f000001), INADDR_UNSPEC_GROUP(0xe0000000), INADDR_ALLHOSTS_GROUP(0xe0000001), INADDR_ALLRTRS_GROUP(0xe0000002), INADDR_MAX_LOCAL_GROUP(0xe00000ff); private final int value; private INAddr(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 0xffffffff; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/linux/WaitFlags.java0000644000175000017500000000100711316212262026437 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Tue Feb 24 09:44:02 +1000 2009 package com.kenai.constantine.platform.linux; public enum WaitFlags implements com.kenai.constantine.Constant { WNOHANG(0x1), WUNTRACED(0x2), WSTOPPED(0x2), WEXITED(0x4), WCONTINUED(0x8), WNOWAIT(0x1000000); private final int value; private WaitFlags(int value) { this.value = value; } public static final long MIN_VALUE = 0x1; public static final long MAX_VALUE = 0x1000000; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/0000755000175000017500000000000011316212262024210 5ustar niconicolibconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/Errno.java0000644000175000017500000001300111316212262026133 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:04 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum Errno implements com.kenai.constantine.Constant { EPERM(1), ENOENT(2), ESRCH(3), EINTR(4), EIO(5), ENXIO(6), E2BIG(7), ENOEXEC(8), EBADF(9), ECHILD(10), EDEADLK(11), ENOMEM(12), EACCES(13), EFAULT(14), ENOTBLK(15), EBUSY(16), EEXIST(17), EXDEV(18), ENODEV(19), ENOTDIR(20), EISDIR(21), EINVAL(22), ENFILE(23), EMFILE(24), ENOTTY(25), ETXTBSY(26), EFBIG(27), ENOSPC(28), ESPIPE(29), EROFS(30), EMLINK(31), EPIPE(32), EDOM(33), ERANGE(34), EWOULDBLOCK(35), EAGAIN(35), EINPROGRESS(36), EALREADY(37), ENOTSOCK(38), EDESTADDRREQ(39), EMSGSIZE(40), EPROTOTYPE(41), ENOPROTOOPT(42), EPROTONOSUPPORT(43), ESOCKTNOSUPPORT(44), EOPNOTSUPP(45), EPFNOSUPPORT(46), EAFNOSUPPORT(47), EADDRINUSE(48), EADDRNOTAVAIL(49), ENETDOWN(50), ENETUNREACH(51), ENETRESET(52), ECONNABORTED(53), ECONNRESET(54), ENOBUFS(55), EISCONN(56), ENOTCONN(57), ESHUTDOWN(58), ETOOMANYREFS(59), ETIMEDOUT(60), ECONNREFUSED(61), ELOOP(62), ENAMETOOLONG(63), EHOSTDOWN(64), EHOSTUNREACH(65), ENOTEMPTY(66), EUSERS(68), EDQUOT(69), ESTALE(70), EREMOTE(71), ENOLCK(77), ENOSYS(78), EOVERFLOW(87), EIDRM(89), ENOMSG(90), EILSEQ(84); // EBADMSG not defined // EMULTIHOP not defined // ENODATA not defined // ENOLINK not defined // ENOSR not defined // ENOSTR not defined // EPROTO not defined // ETIME not defined private final int value; private Errno(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 90; static final class StringTable { public static final java.util.Map descriptions = generateTable(); public static final java.util.Map generateTable() { java.util.Map map = new java.util.EnumMap(Errno.class); map.put(EPERM, "Operation not permitted"); map.put(ENOENT, "No such file or directory"); map.put(ESRCH, "No such process"); map.put(EINTR, "Interrupted system call"); map.put(EIO, "Input/output error"); map.put(ENXIO, "Device not configured"); map.put(E2BIG, "Argument list too long"); map.put(ENOEXEC, "Exec format error"); map.put(EBADF, "Bad file descriptor"); map.put(ECHILD, "No child processes"); map.put(EDEADLK, "Resource deadlock avoided"); map.put(ENOMEM, "Cannot allocate memory"); map.put(EACCES, "Permission denied"); map.put(EFAULT, "Bad address"); map.put(ENOTBLK, "Block device required"); map.put(EBUSY, "Device busy"); map.put(EEXIST, "File exists"); map.put(EXDEV, "Cross-device link"); map.put(ENODEV, "Operation not supported by device"); map.put(ENOTDIR, "Not a directory"); map.put(EISDIR, "Is a directory"); map.put(EINVAL, "Invalid argument"); map.put(ENFILE, "Too many open files in system"); map.put(EMFILE, "Too many open files"); map.put(ENOTTY, "Inappropriate ioctl for device"); map.put(ETXTBSY, "Text file busy"); map.put(EFBIG, "File too large"); map.put(ENOSPC, "No space left on device"); map.put(ESPIPE, "Illegal seek"); map.put(EROFS, "Read-only file system"); map.put(EMLINK, "Too many links"); map.put(EPIPE, "Broken pipe"); map.put(EDOM, "Numerical argument out of domain"); map.put(ERANGE, "Result too large"); map.put(EWOULDBLOCK, "Resource temporarily unavailable"); map.put(EAGAIN, "Resource temporarily unavailable"); map.put(EINPROGRESS, "Operation now in progress"); map.put(EALREADY, "Operation already in progress"); map.put(ENOTSOCK, "Socket operation on non-socket"); map.put(EDESTADDRREQ, "Destination address required"); map.put(EMSGSIZE, "Message too long"); map.put(EPROTOTYPE, "Protocol wrong type for socket"); map.put(ENOPROTOOPT, "Protocol not available"); map.put(EPROTONOSUPPORT, "Protocol not supported"); map.put(ESOCKTNOSUPPORT, "Socket type not supported"); map.put(EOPNOTSUPP, "Operation not supported"); map.put(EPFNOSUPPORT, "Protocol family not supported"); map.put(EAFNOSUPPORT, "Address family not supported by protocol family"); map.put(EADDRINUSE, "Address already in use"); map.put(EADDRNOTAVAIL, "Can't assign requested address"); map.put(ENETDOWN, "Network is down"); map.put(ENETUNREACH, "Network is unreachable"); map.put(ENETRESET, "Network dropped connection on reset"); map.put(ECONNABORTED, "Software caused connection abort"); map.put(ECONNRESET, "Connection reset by peer"); map.put(ENOBUFS, "No buffer space available"); map.put(EISCONN, "Socket is already connected"); map.put(ENOTCONN, "Socket is not connected"); map.put(ESHUTDOWN, "Can't send after socket shutdown"); map.put(ETOOMANYREFS, "Too many references: can't splice"); map.put(ETIMEDOUT, "Connection timed out"); map.put(ECONNREFUSED, "Connection refused"); map.put(ELOOP, "Too many levels of symbolic links"); map.put(ENAMETOOLONG, "File name too long"); map.put(EHOSTDOWN, "Host is down"); map.put(EHOSTUNREACH, "No route to host"); map.put(ENOTEMPTY, "Directory not empty"); map.put(EUSERS, "Too many users"); map.put(EDQUOT, "Disc quota exceeded"); map.put(ESTALE, "Stale NFS file handle"); map.put(EREMOTE, "Too many levels of remote in path"); map.put(ENOLCK, "No locks available"); map.put(ENOSYS, "Function not implemented"); map.put(EOVERFLOW, "Value too large to be stored in data type"); map.put(EIDRM, "Identifier removed"); map.put(ENOMSG, "No message of desired type"); map.put(EILSEQ, "Illegal byte sequence"); return map; } } public final String toString() { return StringTable.descriptions.get(this); } public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/ProtocolFamily.java0000644000175000017500000000174311316212262030023 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:14 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum ProtocolFamily implements com.kenai.constantine.Constant { PF_UNSPEC(0), PF_LOCAL(1), PF_UNIX(1), PF_INET(2), PF_IMPLINK(3), PF_PUP(4), PF_CHAOS(5), PF_NS(6), PF_ISO(7), PF_OSI(7), PF_ECMA(8), PF_DATAKIT(9), PF_CCITT(10), PF_SNA(11), PF_DECnet(12), PF_DLI(13), PF_LAT(14), PF_HYLINK(15), PF_APPLETALK(16), PF_ROUTE(17), PF_LINK(18), PF_XTP(19), PF_COIP(20), PF_CNT(21), PF_SIP(29), PF_IPX(23), PF_RTIP(22), PF_PIP(25), // PF_NDRV not defined PF_ISDN(26), PF_KEY(30), PF_INET6(24), PF_NATM(27), // PF_SYSTEM not defined // PF_NETBIOS not defined // PF_PPP not defined // PF_ATM not defined // PF_NETGRAPH not defined PF_MAX(33); private final int value; private ProtocolFamily(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 33; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/Shutdown.java0000644000175000017500000000070311316212262026666 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:17 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum Shutdown implements com.kenai.constantine.Constant { SHUT_RD(0), SHUT_WR(1), SHUT_RDWR(2); private final int value; private Shutdown(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 2; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/Fcntl.java0000644000175000017500000000223611316212262026124 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:05 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum Fcntl implements com.kenai.constantine.Constant { FREAD(1), FWRITE(2), FAPPEND(8), FASYNC(64), FFSYNC(128), FNONBLOCK(4), FNDELAY(4), F_DUPFD(0), F_GETFD(1), F_SETFD(2), F_GETFL(3), F_SETFL(4), F_GETOWN(5), F_SETOWN(6), F_GETLK(7), F_SETLK(8), F_SETLKW(9), // F_CHKCLEAN not defined // F_PREALLOCATE not defined // F_SETSIZE not defined // F_RDADVISE not defined // F_RDAHEAD not defined // F_READBOOTSTRAP not defined // F_WRITEBOOTSTRAP not defined // F_NOCACHE not defined // F_LOG2PHYS not defined // F_GETPATH not defined // F_FULLFSYNC not defined // F_PATHPKG_CHECK not defined // F_FREEZE_FS not defined // F_THAW_FS not defined // F_GLOBAL_NOCACHE not defined // F_ADDSIGS not defined // F_MARKDEPENDENCY not defined F_RDLCK(1), F_UNLCK(2), F_WRLCK(3); // F_ALLOCATECONTIG not defined // F_ALLOCATEALL not defined private final int value; private Fcntl(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 128; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/PRIO.java0000644000175000017500000000074211316212262025627 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:12 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum PRIO implements com.kenai.constantine.Constant { PRIO_MIN(-20), PRIO_PROCESS(0), PRIO_PGRP(1), PRIO_USER(2), PRIO_MAX(20); private final int value; private PRIO(int value) { this.value = value; } public static final long MIN_VALUE = -20; public static final long MAX_VALUE = 20; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/SocketLevel.java0000644000175000017500000000100211316212262027264 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:21 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum SocketLevel implements com.kenai.constantine.Constant { SOL_SOCKET(65535); // SOL_IP not defined // SOL_TCP not defined // SOL_UDP not defined private final int value; private SocketLevel(int value) { this.value = value; } public static final long MIN_VALUE = 65535; public static final long MAX_VALUE = 65535; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/AddressFamily.java0000644000175000017500000000210311316212262027576 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:02 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum AddressFamily implements com.kenai.constantine.Constant { AF_UNSPEC(0), AF_LOCAL(1), AF_UNIX(1), AF_INET(2), AF_IMPLINK(3), AF_PUP(4), AF_CHAOS(5), AF_NS(6), AF_ISO(7), AF_OSI(7), AF_ECMA(8), AF_DATAKIT(9), AF_CCITT(10), AF_SNA(11), AF_DECnet(12), AF_DLI(13), AF_LAT(14), AF_HYLINK(15), AF_APPLETALK(16), AF_ROUTE(17), AF_LINK(18), pseudo_AF_XTP(19), AF_COIP(20), AF_CNT(21), pseudo_AF_RTIP(22), AF_IPX(23), AF_SIP(29), pseudo_AF_PIP(25), // AF_NDRV not defined AF_ISDN(26), AF_E164(26), // pseudo_AF_KEY not defined AF_INET6(24), AF_NATM(27), // AF_SYSTEM not defined // AF_NETBIOS not defined // AF_PPP not defined // AF_ATM not defined pseudo_AF_HDRCMPLT(31), // AF_NETGRAPH not defined // AF_AX25 not defined AF_MAX(33); private final int value; private AddressFamily(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 33; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/RLIM.java0000644000175000017500000000100611316212262025613 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:15 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum RLIM implements com.kenai.constantine.Constant { RLIM_NLIMITS(0x9), RLIM_INFINITY(0xffffffff), RLIM_SAVED_MAX(0xffffffff), RLIM_SAVED_CUR(0xffffffff); private final int value; private RLIM(int value) { this.value = value; } public static final long MIN_VALUE = 0x9; public static final long MAX_VALUE = 0xffffffff; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/NameInfo.java0000644000175000017500000000106011316212262026544 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:10 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum NameInfo implements com.kenai.constantine.Constant { NI_MAXHOST(256), NI_MAXSERV(32), NI_NOFQDN(4), NI_NUMERICHOST(1), NI_NAMEREQD(8), NI_NUMERICSERV(2), NI_DGRAM(16); // NI_WITHSCOPEID not defined private final int value; private NameInfo(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 256; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/Sock.java0000644000175000017500000000100011316212262025741 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:20 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum Sock implements com.kenai.constantine.Constant { SOCK_STREAM(1), SOCK_DGRAM(2), SOCK_RAW(3), SOCK_RDM(4), SOCK_SEQPACKET(5); // SOCK_MAXADDRLEN not defined private final int value; private Sock(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 5; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/SocketOption.java0000644000175000017500000000273411316212262027502 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:22 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum SocketOption implements com.kenai.constantine.Constant { SO_DEBUG(0x1), SO_ACCEPTCONN(0x2), SO_REUSEADDR(0x4), SO_KEEPALIVE(0x8), SO_DONTROUTE(0x10), SO_BROADCAST(0x20), SO_USELOOPBACK(0x40), SO_LINGER(0x80), SO_OOBINLINE(0x100), SO_REUSEPORT(0x200), // SO_TIMESTAMP not defined // SO_ACCEPTFILTER not defined // SO_DONTTRUNC not defined // SO_WANTMORE not defined // SO_WANTOOBFLAG not defined SO_SNDBUF(0x1001), SO_RCVBUF(0x1002), SO_SNDLOWAT(0x1003), SO_RCVLOWAT(0x1004), SO_SNDTIMEO(0x1005), SO_RCVTIMEO(0x1006), SO_ERROR(0x1007), SO_TYPE(0x1008); // SO_NREAD not defined // SO_NKE not defined // SO_NOSIGPIPE not defined // SO_NOADDRERR not defined // SO_NWRITE not defined // SO_REUSESHAREUID not defined // SO_LABEL not defined // SO_PEERLABEL not defined // SO_ATTACH_FILTER not defined // SO_BINDTODEVICE not defined // SO_DETACH_FILTER not defined // SO_NO_CHECK not defined // SO_PASSCRED not defined // SO_PEERCRED not defined // SO_PEERNAME not defined // SO_PRIORITY not defined // SO_SECURITY_AUTHENTICATION not defined // SO_SECURITY_ENCRYPTION_NETWORK not defined // SO_SECURITY_ENCRYPTION_TRANSPORT not defined private final int value; private SocketOption(int value) { this.value = value; } public static final long MIN_VALUE = 0x1; public static final long MAX_VALUE = 0x1008; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/RLIMIT.java0000644000175000017500000000146311316212262026057 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:16 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum RLIMIT implements com.kenai.constantine.Constant { RLIMIT_CORE(4), // RLIMIT_AS not defined RLIMIT_CPU(0), RLIMIT_DATA(2), RLIMIT_FSIZE(1), // RLIMIT_LOCKS not defined RLIMIT_MEMLOCK(6), // RLIMIT_MSGQUEUE not defined // RLIMIT_NICE not defined // RLIMIT_NLIMITS not defined RLIMIT_NOFILE(8), RLIMIT_NPROC(7), // RLIMIT_OFILE not defined RLIMIT_RSS(5), // RLIMIT_RTPRIO not defined // RLIMIT_RTTIME not defined // RLIMIT_SIGPENDING not defined RLIMIT_STACK(3); private final int value; private RLIMIT(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 8; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/OpenFlags.java0000644000175000017500000000127611316212262026737 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:11 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum OpenFlags implements com.kenai.constantine.Constant { O_RDONLY(0), O_WRONLY(1), O_RDWR(2), O_ACCMODE(3), O_NONBLOCK(4), O_APPEND(8), O_SYNC(128), O_SHLOCK(16), O_EXLOCK(32), O_ASYNC(64), O_FSYNC(128), O_NOFOLLOW(256), O_CREAT(512), O_TRUNC(1024), O_EXCL(2048); // O_EVTONLY not defined // O_DIRECTORY not defined // O_SYMLINK not defined private final int value; private OpenFlags(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 2048; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/Sysconf.java0000644000175000017500000001024411316212262026500 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:23 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum Sysconf implements com.kenai.constantine.Constant { _SC_ARG_MAX(1), _SC_CHILD_MAX(2), _SC_CLK_TCK(3), _SC_NGROUPS_MAX(4), _SC_OPEN_MAX(5), _SC_JOB_CONTROL(6), _SC_SAVED_IDS(7), _SC_VERSION(8), _SC_BC_BASE_MAX(9), _SC_BC_DIM_MAX(10), _SC_BC_SCALE_MAX(11), _SC_BC_STRING_MAX(12), _SC_COLL_WEIGHTS_MAX(13), _SC_EXPR_NEST_MAX(14), _SC_LINE_MAX(15), _SC_RE_DUP_MAX(16), _SC_2_VERSION(17), _SC_2_C_BIND(18), _SC_2_C_DEV(19), _SC_2_CHAR_TERM(20), _SC_2_FORT_DEV(21), _SC_2_FORT_RUN(22), _SC_2_LOCALEDEF(23), _SC_2_SW_DEV(24), _SC_2_UPE(25), _SC_STREAM_MAX(26), _SC_TZNAME_MAX(27), // _SC_ASYNCHRONOUS_IO not defined _SC_PAGESIZE(28), // _SC_MEMLOCK not defined // _SC_MEMLOCK_RANGE not defined // _SC_MEMORY_PROTECTION not defined // _SC_MESSAGE_PASSING not defined // _SC_PRIORITIZED_IO not defined // _SC_PRIORITY_SCHEDULING not defined // _SC_REALTIME_SIGNALS not defined // _SC_SEMAPHORES not defined _SC_FSYNC(29), // _SC_SHARED_MEMORY_OBJECTS not defined // _SC_SYNCHRONIZED_IO not defined // _SC_TIMERS not defined // _SC_AIO_LISTIO_MAX not defined // _SC_AIO_MAX not defined // _SC_AIO_PRIO_DELTA_MAX not defined // _SC_DELAYTIMER_MAX not defined // _SC_MQ_OPEN_MAX not defined // _SC_MAPPED_FILES not defined // _SC_RTSIG_MAX not defined _SC_SEM_NSEMS_MAX(31), _SC_SEM_VALUE_MAX(32), // _SC_SIGQUEUE_MAX not defined // _SC_TIMER_MAX not defined // _SC_NPROCESSORS_CONF not defined // _SC_NPROCESSORS_ONLN not defined // _SC_2_PBS not defined // _SC_2_PBS_ACCOUNTING not defined // _SC_2_PBS_CHECKPOINT not defined // _SC_2_PBS_LOCATE not defined // _SC_2_PBS_MESSAGE not defined // _SC_2_PBS_TRACK not defined // _SC_ADVISORY_INFO not defined // _SC_BARRIERS not defined // _SC_CLOCK_SELECTION not defined // _SC_CPUTIME not defined // _SC_FILE_LOCKING not defined // _SC_GETGR_R_SIZE_MAX not defined // _SC_GETPW_R_SIZE_MAX not defined // _SC_HOST_NAME_MAX not defined // _SC_LOGIN_NAME_MAX not defined // _SC_MONOTONIC_CLOCK not defined // _SC_MQ_PRIO_MAX not defined // _SC_READER_WRITER_LOCKS not defined // _SC_REGEXP not defined // _SC_SHELL not defined // _SC_SPAWN not defined // _SC_SPIN_LOCKS not defined // _SC_SPORADIC_SERVER not defined // _SC_THREAD_ATTR_STACKADDR not defined // _SC_THREAD_ATTR_STACKSIZE not defined // _SC_THREAD_CPUTIME not defined // _SC_THREAD_DESTRUCTOR_ITERATIONS not defined // _SC_THREAD_KEYS_MAX not defined // _SC_THREAD_PRIO_INHERIT not defined // _SC_THREAD_PRIO_PROTECT not defined // _SC_THREAD_PRIORITY_SCHEDULING not defined // _SC_THREAD_PROCESS_SHARED not defined // _SC_THREAD_SAFE_FUNCTIONS not defined // _SC_THREAD_SPORADIC_SERVER not defined // _SC_THREAD_STACK_MIN not defined // _SC_THREAD_THREADS_MAX not defined // _SC_TIMEOUTS not defined // _SC_THREADS not defined // _SC_TRACE not defined // _SC_TRACE_EVENT_FILTER not defined // _SC_TRACE_INHERIT not defined // _SC_TRACE_LOG not defined // _SC_TTY_NAME_MAX not defined // _SC_TYPED_MEMORY_OBJECTS not defined // _SC_V6_ILP32_OFF32 not defined // _SC_V6_ILP32_OFFBIG not defined // _SC_V6_LP64_OFF64 not defined // _SC_V6_LPBIG_OFFBIG not defined // _SC_IPV6 not defined // _SC_RAW_SOCKETS not defined // _SC_SYMLOOP_MAX not defined // _SC_ATEXIT_MAX not defined // _SC_IOV_MAX not defined _SC_PAGE_SIZE(28), // _SC_XOPEN_CRYPT not defined // _SC_XOPEN_ENH_I18N not defined // _SC_XOPEN_LEGACY not defined // _SC_XOPEN_REALTIME not defined // _SC_XOPEN_REALTIME_THREADS not defined _SC_XOPEN_SHM(30); // _SC_XOPEN_STREAMS not defined // _SC_XOPEN_UNIX not defined // _SC_XOPEN_VERSION not defined // _SC_XOPEN_XCU_VERSION not defined // _SC_XBS5_ILP32_OFF32 not defined // _SC_XBS5_ILP32_OFFBIG not defined // _SC_XBS5_LP64_OFF64 not defined // _SC_XBS5_LPBIG_OFFBIG not defined // _SC_SS_REPL_MAX not defined // _SC_TRACE_EVENT_NAME_MAX not defined // _SC_TRACE_NAME_MAX not defined // _SC_TRACE_SYS_MAX not defined // _SC_TRACE_USER_EVENT_MAX not defined // _SC_PASS_MAX not defined private final int value; private Sysconf(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 32; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/Signal.java0000644000175000017500000000167711316212262026303 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:18 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum Signal implements com.kenai.constantine.Constant { SIGHUP(1), SIGINT(2), SIGQUIT(3), SIGILL(4), SIGTRAP(5), SIGABRT(6), SIGIOT(6), SIGBUS(10), SIGFPE(8), SIGKILL(9), SIGUSR1(30), SIGSEGV(11), SIGUSR2(31), SIGPIPE(13), SIGALRM(14), SIGTERM(15), // SIGSTKFLT not defined // SIGCLD not defined SIGCHLD(20), SIGCONT(19), SIGSTOP(17), SIGTSTP(18), SIGTTIN(21), SIGTTOU(22), SIGURG(16), SIGXCPU(24), SIGXFSZ(25), SIGVTALRM(26), SIGPROF(27), SIGWINCH(28), // SIGPOLL not defined SIGIO(23), // SIGPWR not defined SIGSYS(12), // SIGUNUSED not defined // SIGRTMIN not defined // SIGRTMAX not defined NSIG(32); private final int value; private Signal(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 32; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/TCP.java0000644000175000017500000000141111316212262025476 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:25 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum TCP implements com.kenai.constantine.Constant { TCP_MAX_SACK(3), TCP_MSS(512), // TCP_MINMSS not defined // TCP_MINMSSOVERLOAD not defined TCP_MAXWIN(65535), TCP_MAX_WINSHIFT(14), TCP_MAXBURST(4), // TCP_MAXHLEN not defined // TCP_MAXOLEN not defined TCP_NODELAY(1), TCP_MAXSEG(2); // TCP_NOPUSH not defined // TCP_NOOPT not defined // TCP_KEEPALIVE not defined // TCP_NSTATES not defined // TCP_RETRANSHZ not defined private final int value; private TCP(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 65535; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/IPProto.java0000644000175000017500000000165611316212262026417 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:08 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum IPProto implements com.kenai.constantine.Constant { IPPROTO_IP(0), IPPROTO_HOPOPTS(0), IPPROTO_ICMP(1), IPPROTO_IGMP(2), IPPROTO_IPIP(4), IPPROTO_TCP(6), IPPROTO_EGP(8), IPPROTO_PUP(12), IPPROTO_UDP(17), IPPROTO_IDP(22), IPPROTO_TP(29), IPPROTO_IPV6(41), IPPROTO_ROUTING(43), IPPROTO_FRAGMENT(44), IPPROTO_RSVP(46), IPPROTO_GRE(47), IPPROTO_ESP(50), IPPROTO_AH(51), IPPROTO_ICMPV6(58), IPPROTO_NONE(59), IPPROTO_DSTOPTS(60), // IPPROTO_MTP not defined IPPROTO_ENCAP(98), IPPROTO_PIM(103), // IPPROTO_COMP not defined // IPPROTO_SCTP not defined IPPROTO_RAW(255), IPPROTO_MAX(256); private final int value; private IPProto(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 256; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/INAddr.java0000644000175000017500000000122111316212262026150 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:07 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum INAddr implements com.kenai.constantine.Constant { INADDR_ANY(0), INADDR_BROADCAST(0xffffffff), INADDR_NONE(0xffffffff), INADDR_LOOPBACK(0x7f000001), INADDR_UNSPEC_GROUP(0xe0000000), INADDR_ALLHOSTS_GROUP(0xe0000001), // INADDR_ALLRTRS_GROUP not defined INADDR_MAX_LOCAL_GROUP(0xe00000ff); private final int value; private INAddr(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 0xffffffff; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/openbsd/WaitFlags.java0000644000175000017500000000102111316212262026726 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Wed Feb 25 18:33:26 +1000 2009 package com.kenai.constantine.platform.openbsd; public enum WaitFlags implements com.kenai.constantine.Constant { WNOHANG(0x1), WUNTRACED(0x2), WSTOPPED(0x7f), // WEXITED not defined WCONTINUED(0x8); // WNOWAIT not defined private final int value; private WaitFlags(int value) { this.value = value; } public static final long MIN_VALUE = 0x1; public static final long MAX_VALUE = 0x7f; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/WaitFlags.java0000644000175000017500000000125311316212262025303 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Sat May 02 18:23:28 +1000 2009 package com.kenai.constantine.platform; public enum WaitFlags implements com.kenai.constantine.Constant { WNOHANG, WUNTRACED, WSTOPPED, WEXITED, WCONTINUED, WNOWAIT, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getBitmaskResolver(WaitFlags.class); public final int value() { return resolver.intValue(this); } public final String description() { return resolver.description(this); } public final String toString() { return description(); } public final static WaitFlags valueOf(int value) { return resolver.valueOf(value); } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/0000755000175000017500000000000011316212262024042 5ustar niconicolibconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/Errno.java0000644000175000017500000001341311316212262025774 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:18 -0800 2009 package com.kenai.constantine.platform.darwin; public enum Errno implements com.kenai.constantine.Constant { EPERM(1), ENOENT(2), ESRCH(3), EINTR(4), EIO(5), ENXIO(6), E2BIG(7), ENOEXEC(8), EBADF(9), ECHILD(10), EDEADLK(11), ENOMEM(12), EACCES(13), EFAULT(14), ENOTBLK(15), EBUSY(16), EEXIST(17), EXDEV(18), ENODEV(19), ENOTDIR(20), EISDIR(21), EINVAL(22), ENFILE(23), EMFILE(24), ENOTTY(25), ETXTBSY(26), EFBIG(27), ENOSPC(28), ESPIPE(29), EROFS(30), EMLINK(31), EPIPE(32), EDOM(33), ERANGE(34), EWOULDBLOCK(35), EAGAIN(35), EINPROGRESS(36), EALREADY(37), ENOTSOCK(38), EDESTADDRREQ(39), EMSGSIZE(40), EPROTOTYPE(41), ENOPROTOOPT(42), EPROTONOSUPPORT(43), ESOCKTNOSUPPORT(44), EOPNOTSUPP(102), EPFNOSUPPORT(46), EAFNOSUPPORT(47), EADDRINUSE(48), EADDRNOTAVAIL(49), ENETDOWN(50), ENETUNREACH(51), ENETRESET(52), ECONNABORTED(53), ECONNRESET(54), ENOBUFS(55), EISCONN(56), ENOTCONN(57), ESHUTDOWN(58), ETOOMANYREFS(59), ETIMEDOUT(60), ECONNREFUSED(61), ELOOP(62), ENAMETOOLONG(63), EHOSTDOWN(64), EHOSTUNREACH(65), ENOTEMPTY(66), EUSERS(68), EDQUOT(69), ESTALE(70), EREMOTE(71), ENOLCK(77), ENOSYS(78), EOVERFLOW(84), EIDRM(90), ENOMSG(91), EILSEQ(92), EBADMSG(94), EMULTIHOP(95), ENODATA(96), ENOLINK(97), ENOSR(98), ENOSTR(99), EPROTO(100), ETIME(101); private final int value; private Errno(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 102; static final class StringTable { public static final java.util.Map descriptions = generateTable(); public static final java.util.Map generateTable() { java.util.Map map = new java.util.EnumMap(Errno.class); map.put(EPERM, "Operation not permitted"); map.put(ENOENT, "No such file or directory"); map.put(ESRCH, "No such process"); map.put(EINTR, "Interrupted system call"); map.put(EIO, "Input/output error"); map.put(ENXIO, "Device not configured"); map.put(E2BIG, "Argument list too long"); map.put(ENOEXEC, "Exec format error"); map.put(EBADF, "Bad file descriptor"); map.put(ECHILD, "No child processes"); map.put(EDEADLK, "Resource deadlock avoided"); map.put(ENOMEM, "Cannot allocate memory"); map.put(EACCES, "Permission denied"); map.put(EFAULT, "Bad address"); map.put(ENOTBLK, "Block device required"); map.put(EBUSY, "Resource busy"); map.put(EEXIST, "File exists"); map.put(EXDEV, "Cross-device link"); map.put(ENODEV, "Operation not supported by device"); map.put(ENOTDIR, "Not a directory"); map.put(EISDIR, "Is a directory"); map.put(EINVAL, "Invalid argument"); map.put(ENFILE, "Too many open files in system"); map.put(EMFILE, "Too many open files"); map.put(ENOTTY, "Inappropriate ioctl for device"); map.put(ETXTBSY, "Text file busy"); map.put(EFBIG, "File too large"); map.put(ENOSPC, "No space left on device"); map.put(ESPIPE, "Illegal seek"); map.put(EROFS, "Read-only file system"); map.put(EMLINK, "Too many links"); map.put(EPIPE, "Broken pipe"); map.put(EDOM, "Numerical argument out of domain"); map.put(ERANGE, "Result too large"); map.put(EWOULDBLOCK, "Resource temporarily unavailable"); map.put(EAGAIN, "Resource temporarily unavailable"); map.put(EINPROGRESS, "Operation now in progress"); map.put(EALREADY, "Operation already in progress"); map.put(ENOTSOCK, "Socket operation on non-socket"); map.put(EDESTADDRREQ, "Destination address required"); map.put(EMSGSIZE, "Message too long"); map.put(EPROTOTYPE, "Protocol wrong type for socket"); map.put(ENOPROTOOPT, "Protocol not available"); map.put(EPROTONOSUPPORT, "Protocol not supported"); map.put(ESOCKTNOSUPPORT, "Socket type not supported"); map.put(EOPNOTSUPP, "Operation not supported on socket"); map.put(EPFNOSUPPORT, "Protocol family not supported"); map.put(EAFNOSUPPORT, "Address family not supported by protocol family"); map.put(EADDRINUSE, "Address already in use"); map.put(EADDRNOTAVAIL, "Can't assign requested address"); map.put(ENETDOWN, "Network is down"); map.put(ENETUNREACH, "Network is unreachable"); map.put(ENETRESET, "Network dropped connection on reset"); map.put(ECONNABORTED, "Software caused connection abort"); map.put(ECONNRESET, "Connection reset by peer"); map.put(ENOBUFS, "No buffer space available"); map.put(EISCONN, "Socket is already connected"); map.put(ENOTCONN, "Socket is not connected"); map.put(ESHUTDOWN, "Can't send after socket shutdown"); map.put(ETOOMANYREFS, "Too many references: can't splice"); map.put(ETIMEDOUT, "Operation timed out"); map.put(ECONNREFUSED, "Connection refused"); map.put(ELOOP, "Too many levels of symbolic links"); map.put(ENAMETOOLONG, "File name too long"); map.put(EHOSTDOWN, "Host is down"); map.put(EHOSTUNREACH, "No route to host"); map.put(ENOTEMPTY, "Directory not empty"); map.put(EUSERS, "Too many users"); map.put(EDQUOT, "Disc quota exceeded"); map.put(ESTALE, "Stale NFS file handle"); map.put(EREMOTE, "Too many levels of remote in path"); map.put(ENOLCK, "No locks available"); map.put(ENOSYS, "Function not implemented"); map.put(EOVERFLOW, "Value too large to be stored in data type"); map.put(EIDRM, "Identifier removed"); map.put(ENOMSG, "No message of desired type"); map.put(EILSEQ, "Illegal byte sequence"); map.put(EBADMSG, "Bad message"); map.put(EMULTIHOP, "EMULTIHOP (Reserved)"); map.put(ENODATA, "No message available on STREAM"); map.put(ENOLINK, "ENOLINK (Reserved)"); map.put(ENOSR, "No STREAM resources"); map.put(ENOSTR, "Not a STREAM"); map.put(EPROTO, "Protocol error"); map.put(ETIME, "STREAM ioctl timeout"); return map; } } public final String toString() { return StringTable.descriptions.get(this); } public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/ProtocolFamily.java0000644000175000017500000000167211316212262027656 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:20 -0800 2009 package com.kenai.constantine.platform.darwin; public enum ProtocolFamily implements com.kenai.constantine.Constant { PF_UNSPEC(0), PF_LOCAL(1), PF_UNIX(1), PF_INET(2), PF_IMPLINK(3), PF_PUP(4), PF_CHAOS(5), PF_NS(6), PF_ISO(7), PF_OSI(7), PF_ECMA(8), PF_DATAKIT(9), PF_CCITT(10), PF_SNA(11), PF_DECnet(12), PF_DLI(13), PF_LAT(14), PF_HYLINK(15), PF_APPLETALK(16), PF_ROUTE(17), PF_LINK(18), PF_XTP(19), PF_COIP(20), PF_CNT(21), PF_SIP(24), PF_IPX(23), PF_RTIP(22), PF_PIP(25), PF_NDRV(27), PF_ISDN(28), PF_KEY(29), PF_INET6(30), PF_NATM(31), PF_SYSTEM(32), PF_NETBIOS(33), PF_PPP(34), // PF_ATM not defined // PF_NETGRAPH not defined PF_MAX(37); private final int value; private ProtocolFamily(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 37; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/Shutdown.java0000644000175000017500000000070211316212262026517 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:20 -0800 2009 package com.kenai.constantine.platform.darwin; public enum Shutdown implements com.kenai.constantine.Constant { SHUT_RD(0), SHUT_WR(1), SHUT_RDWR(2); private final int value; private Shutdown(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 2; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/Fcntl.java0000644000175000017500000000173511316212262025761 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:18 -0800 2009 package com.kenai.constantine.platform.darwin; public enum Fcntl implements com.kenai.constantine.Constant { FREAD(1), FWRITE(2), FAPPEND(8), FASYNC(64), FFSYNC(128), FNONBLOCK(4), FNDELAY(4), F_DUPFD(0), F_GETFD(1), F_SETFD(2), F_GETFL(3), F_SETFL(4), F_GETOWN(5), F_SETOWN(6), F_GETLK(7), F_SETLK(8), F_SETLKW(9), F_CHKCLEAN(41), F_PREALLOCATE(42), F_SETSIZE(43), F_RDADVISE(44), F_RDAHEAD(45), F_READBOOTSTRAP(46), F_WRITEBOOTSTRAP(47), F_NOCACHE(48), F_LOG2PHYS(49), F_GETPATH(50), F_FULLFSYNC(51), F_PATHPKG_CHECK(52), F_FREEZE_FS(53), F_THAW_FS(54), F_GLOBAL_NOCACHE(55), F_ADDSIGS(59), F_MARKDEPENDENCY(60), F_RDLCK(1), F_UNLCK(2), F_WRLCK(3), F_ALLOCATECONTIG(2), F_ALLOCATEALL(4); private final int value; private Fcntl(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 128; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/PRIO.java0000644000175000017500000000074111316212262025460 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:20 -0800 2009 package com.kenai.constantine.platform.darwin; public enum PRIO implements com.kenai.constantine.Constant { PRIO_MIN(-20), PRIO_PROCESS(0), PRIO_PGRP(1), PRIO_USER(2), PRIO_MAX(20); private final int value; private PRIO(int value) { this.value = value; } public static final long MIN_VALUE = -20; public static final long MAX_VALUE = 20; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/SocketLevel.java0000644000175000017500000000100111316212262027115 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:21 -0800 2009 package com.kenai.constantine.platform.darwin; public enum SocketLevel implements com.kenai.constantine.Constant { SOL_SOCKET(65535); // SOL_IP not defined // SOL_TCP not defined // SOL_UDP not defined private final int value; private SocketLevel(int value) { this.value = value; } public static final long MIN_VALUE = 65535; public static final long MAX_VALUE = 65535; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/AddressFamily.java0000644000175000017500000000202011316212262027426 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:18 -0800 2009 package com.kenai.constantine.platform.darwin; public enum AddressFamily implements com.kenai.constantine.Constant { AF_UNSPEC(0), AF_LOCAL(1), AF_UNIX(1), AF_INET(2), AF_IMPLINK(3), AF_PUP(4), AF_CHAOS(5), AF_NS(6), AF_ISO(7), AF_OSI(7), AF_ECMA(8), AF_DATAKIT(9), AF_CCITT(10), AF_SNA(11), AF_DECnet(12), AF_DLI(13), AF_LAT(14), AF_HYLINK(15), AF_APPLETALK(16), AF_ROUTE(17), AF_LINK(18), pseudo_AF_XTP(19), AF_COIP(20), AF_CNT(21), pseudo_AF_RTIP(22), AF_IPX(23), AF_SIP(24), pseudo_AF_PIP(25), AF_NDRV(27), AF_ISDN(28), AF_E164(28), pseudo_AF_KEY(29), AF_INET6(30), AF_NATM(31), AF_SYSTEM(32), AF_NETBIOS(33), AF_PPP(34), // AF_ATM not defined pseudo_AF_HDRCMPLT(35), // AF_NETGRAPH not defined // AF_AX25 not defined AF_MAX(37); private final int value; private AddressFamily(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 37; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/RLIM.java0000644000175000017500000000100511316212262025444 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:20 -0800 2009 package com.kenai.constantine.platform.darwin; public enum RLIM implements com.kenai.constantine.Constant { RLIM_NLIMITS(0x9), RLIM_INFINITY(0xffffffff), RLIM_SAVED_MAX(0xffffffff), RLIM_SAVED_CUR(0xffffffff); private final int value; private RLIM(int value) { this.value = value; } public static final long MIN_VALUE = 0x9; public static final long MAX_VALUE = 0xffffffff; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/NameInfo.java0000644000175000017500000000104711316212262026403 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:19 -0800 2009 package com.kenai.constantine.platform.darwin; public enum NameInfo implements com.kenai.constantine.Constant { NI_MAXHOST(1025), NI_MAXSERV(32), NI_NOFQDN(1), NI_NUMERICHOST(2), NI_NAMEREQD(4), NI_NUMERICSERV(8), NI_DGRAM(16), NI_WITHSCOPEID(32); private final int value; private NameInfo(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 1025; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/Sock.java0000644000175000017500000000077011316212262025610 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:21 -0800 2009 package com.kenai.constantine.platform.darwin; public enum Sock implements com.kenai.constantine.Constant { SOCK_STREAM(1), SOCK_DGRAM(2), SOCK_RAW(3), SOCK_RDM(4), SOCK_SEQPACKET(5), SOCK_MAXADDRLEN(255); private final int value; private Sock(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 255; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/SocketOption.java0000644000175000017500000000262211316212262027330 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:21 -0800 2009 package com.kenai.constantine.platform.darwin; public enum SocketOption implements com.kenai.constantine.Constant { SO_DEBUG(0x1), SO_ACCEPTCONN(0x2), SO_REUSEADDR(0x4), SO_KEEPALIVE(0x8), SO_DONTROUTE(0x10), SO_BROADCAST(0x20), SO_USELOOPBACK(0x40), SO_LINGER(0x80), SO_OOBINLINE(0x100), SO_REUSEPORT(0x200), SO_TIMESTAMP(0x400), // SO_ACCEPTFILTER not defined SO_DONTTRUNC(0x2000), SO_WANTMORE(0x4000), SO_WANTOOBFLAG(0x8000), SO_SNDBUF(0x1001), SO_RCVBUF(0x1002), SO_SNDLOWAT(0x1003), SO_RCVLOWAT(0x1004), SO_SNDTIMEO(0x1005), SO_RCVTIMEO(0x1006), SO_ERROR(0x1007), SO_TYPE(0x1008), SO_NREAD(0x1020), SO_NKE(0x1021), SO_NOSIGPIPE(0x1022), SO_NOADDRERR(0x1023), SO_NWRITE(0x1024), SO_REUSESHAREUID(0x1025), SO_LABEL(0x1010), SO_PEERLABEL(0x1011); // SO_ATTACH_FILTER not defined // SO_BINDTODEVICE not defined // SO_DETACH_FILTER not defined // SO_NO_CHECK not defined // SO_PASSCRED not defined // SO_PEERCRED not defined // SO_PEERNAME not defined // SO_PRIORITY not defined // SO_SECURITY_AUTHENTICATION not defined // SO_SECURITY_ENCRYPTION_NETWORK not defined // SO_SECURITY_ENCRYPTION_TRANSPORT not defined private final int value; private SocketOption(int value) { this.value = value; } public static final long MIN_VALUE = 0x1; public static final long MAX_VALUE = 0x8000; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/RLIMIT.java0000644000175000017500000000144711316212262025713 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:20 -0800 2009 package com.kenai.constantine.platform.darwin; public enum RLIMIT implements com.kenai.constantine.Constant { RLIMIT_AS(5), RLIMIT_CORE(4), RLIMIT_CPU(0), RLIMIT_DATA(2), RLIMIT_FSIZE(1), // RLIMIT_LOCKS not defined RLIMIT_MEMLOCK(6), // RLIMIT_MSGQUEUE not defined // RLIMIT_NICE not defined // RLIMIT_NLIMITS not defined RLIMIT_NOFILE(8), RLIMIT_NPROC(7), // RLIMIT_OFILE not defined RLIMIT_RSS(5), // RLIMIT_RTPRIO not defined // RLIMIT_RTTIME not defined // RLIMIT_SIGPENDING not defined RLIMIT_STACK(3); private final int value; private RLIMIT(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 8; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/OpenFlags.java0000644000175000017500000000125711316212262026570 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:19 -0800 2009 package com.kenai.constantine.platform.darwin; public enum OpenFlags implements com.kenai.constantine.Constant { O_RDONLY(0), O_WRONLY(1), O_RDWR(2), O_ACCMODE(3), O_NONBLOCK(4), O_APPEND(8), O_SYNC(128), O_SHLOCK(16), O_EXLOCK(32), O_ASYNC(64), O_FSYNC(128), O_NOFOLLOW(256), O_CREAT(512), O_TRUNC(1024), O_EXCL(2048), O_EVTONLY(32768), O_DIRECTORY(1048576), O_SYMLINK(2097152); private final int value; private OpenFlags(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 2097152; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/Sysconf.java0000644000175000017500000000641511316212262026337 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:21 -0800 2009 package com.kenai.constantine.platform.darwin; public enum Sysconf implements com.kenai.constantine.Constant { _SC_ARG_MAX(1), _SC_CHILD_MAX(2), _SC_CLK_TCK(3), _SC_NGROUPS_MAX(4), _SC_OPEN_MAX(5), _SC_JOB_CONTROL(6), _SC_SAVED_IDS(7), _SC_VERSION(8), _SC_BC_BASE_MAX(9), _SC_BC_DIM_MAX(10), _SC_BC_SCALE_MAX(11), _SC_BC_STRING_MAX(12), _SC_COLL_WEIGHTS_MAX(13), _SC_EXPR_NEST_MAX(14), _SC_LINE_MAX(15), _SC_RE_DUP_MAX(16), _SC_2_VERSION(17), _SC_2_C_BIND(18), _SC_2_C_DEV(19), _SC_2_CHAR_TERM(20), _SC_2_FORT_DEV(21), _SC_2_FORT_RUN(22), _SC_2_LOCALEDEF(23), _SC_2_SW_DEV(24), _SC_2_UPE(25), _SC_STREAM_MAX(26), _SC_TZNAME_MAX(27), _SC_ASYNCHRONOUS_IO(28), _SC_PAGESIZE(29), _SC_MEMLOCK(30), _SC_MEMLOCK_RANGE(31), _SC_MEMORY_PROTECTION(32), _SC_MESSAGE_PASSING(33), _SC_PRIORITIZED_IO(34), _SC_PRIORITY_SCHEDULING(35), _SC_REALTIME_SIGNALS(36), _SC_SEMAPHORES(37), _SC_FSYNC(38), _SC_SHARED_MEMORY_OBJECTS(39), _SC_SYNCHRONIZED_IO(40), _SC_TIMERS(41), _SC_AIO_LISTIO_MAX(42), _SC_AIO_MAX(43), _SC_AIO_PRIO_DELTA_MAX(44), _SC_DELAYTIMER_MAX(45), _SC_MQ_OPEN_MAX(46), _SC_MAPPED_FILES(47), _SC_RTSIG_MAX(48), _SC_SEM_NSEMS_MAX(49), _SC_SEM_VALUE_MAX(50), _SC_SIGQUEUE_MAX(51), _SC_TIMER_MAX(52), _SC_NPROCESSORS_CONF(57), _SC_NPROCESSORS_ONLN(58), _SC_2_PBS(59), _SC_2_PBS_ACCOUNTING(60), _SC_2_PBS_CHECKPOINT(61), _SC_2_PBS_LOCATE(62), _SC_2_PBS_MESSAGE(63), _SC_2_PBS_TRACK(64), _SC_ADVISORY_INFO(65), _SC_BARRIERS(66), _SC_CLOCK_SELECTION(67), _SC_CPUTIME(68), _SC_FILE_LOCKING(69), _SC_GETGR_R_SIZE_MAX(70), _SC_GETPW_R_SIZE_MAX(71), _SC_HOST_NAME_MAX(72), _SC_LOGIN_NAME_MAX(73), _SC_MONOTONIC_CLOCK(74), _SC_MQ_PRIO_MAX(75), _SC_READER_WRITER_LOCKS(76), _SC_REGEXP(77), _SC_SHELL(78), _SC_SPAWN(79), _SC_SPIN_LOCKS(80), _SC_SPORADIC_SERVER(81), _SC_THREAD_ATTR_STACKADDR(82), _SC_THREAD_ATTR_STACKSIZE(83), _SC_THREAD_CPUTIME(84), _SC_THREAD_DESTRUCTOR_ITERATIONS(85), _SC_THREAD_KEYS_MAX(86), _SC_THREAD_PRIO_INHERIT(87), _SC_THREAD_PRIO_PROTECT(88), _SC_THREAD_PRIORITY_SCHEDULING(89), _SC_THREAD_PROCESS_SHARED(90), _SC_THREAD_SAFE_FUNCTIONS(91), _SC_THREAD_SPORADIC_SERVER(92), _SC_THREAD_STACK_MIN(93), _SC_THREAD_THREADS_MAX(94), _SC_TIMEOUTS(95), _SC_THREADS(96), _SC_TRACE(97), _SC_TRACE_EVENT_FILTER(98), _SC_TRACE_INHERIT(99), _SC_TRACE_LOG(100), _SC_TTY_NAME_MAX(101), _SC_TYPED_MEMORY_OBJECTS(102), _SC_V6_ILP32_OFF32(103), _SC_V6_ILP32_OFFBIG(104), _SC_V6_LP64_OFF64(105), _SC_V6_LPBIG_OFFBIG(106), _SC_IPV6(118), _SC_RAW_SOCKETS(119), _SC_SYMLOOP_MAX(120), _SC_ATEXIT_MAX(107), _SC_IOV_MAX(56), _SC_PAGE_SIZE(29), _SC_XOPEN_CRYPT(108), _SC_XOPEN_ENH_I18N(109), _SC_XOPEN_LEGACY(110), _SC_XOPEN_REALTIME(111), _SC_XOPEN_REALTIME_THREADS(112), _SC_XOPEN_SHM(113), _SC_XOPEN_STREAMS(114), _SC_XOPEN_UNIX(115), _SC_XOPEN_VERSION(116), _SC_XOPEN_XCU_VERSION(121), _SC_XBS5_ILP32_OFF32(122), _SC_XBS5_ILP32_OFFBIG(123), _SC_XBS5_LP64_OFF64(124), _SC_XBS5_LPBIG_OFFBIG(125), _SC_SS_REPL_MAX(126), _SC_TRACE_EVENT_NAME_MAX(127), _SC_TRACE_NAME_MAX(128), _SC_TRACE_SYS_MAX(129), _SC_TRACE_USER_EVENT_MAX(130), _SC_PASS_MAX(131); private final int value; private Sysconf(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 131; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/Signal.java0000644000175000017500000000167611316212262026134 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:20 -0800 2009 package com.kenai.constantine.platform.darwin; public enum Signal implements com.kenai.constantine.Constant { SIGHUP(1), SIGINT(2), SIGQUIT(3), SIGILL(4), SIGTRAP(5), SIGABRT(6), SIGIOT(6), SIGBUS(10), SIGFPE(8), SIGKILL(9), SIGUSR1(30), SIGSEGV(11), SIGUSR2(31), SIGPIPE(13), SIGALRM(14), SIGTERM(15), // SIGSTKFLT not defined // SIGCLD not defined SIGCHLD(20), SIGCONT(19), SIGSTOP(17), SIGTSTP(18), SIGTTIN(21), SIGTTOU(22), SIGURG(16), SIGXCPU(24), SIGXFSZ(25), SIGVTALRM(26), SIGPROF(27), SIGWINCH(28), // SIGPOLL not defined SIGIO(23), // SIGPWR not defined SIGSYS(12), // SIGUNUSED not defined // SIGRTMIN not defined // SIGRTMAX not defined NSIG(32); private final int value; private Signal(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 32; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/TCP.java0000644000175000017500000000130311316212262025330 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:21 -0800 2009 package com.kenai.constantine.platform.darwin; public enum TCP implements com.kenai.constantine.Constant { TCP_MAX_SACK(3), TCP_MSS(512), TCP_MINMSS(216), TCP_MINMSSOVERLOAD(1000), TCP_MAXWIN(65535), TCP_MAX_WINSHIFT(14), TCP_MAXBURST(4), TCP_MAXHLEN(60), TCP_MAXOLEN(40), TCP_NODELAY(1), TCP_MAXSEG(2), TCP_NOPUSH(4), TCP_NOOPT(8), TCP_KEEPALIVE(16); // TCP_NSTATES not defined // TCP_RETRANSHZ not defined private final int value; private TCP(int value) { this.value = value; } public static final long MIN_VALUE = 1; public static final long MAX_VALUE = 65535; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/IPProto.java0000644000175000017500000000164311316212262026245 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:19 -0800 2009 package com.kenai.constantine.platform.darwin; public enum IPProto implements com.kenai.constantine.Constant { IPPROTO_IP(0), IPPROTO_HOPOPTS(0), IPPROTO_ICMP(1), IPPROTO_IGMP(2), IPPROTO_IPIP(4), IPPROTO_TCP(6), IPPROTO_EGP(8), IPPROTO_PUP(12), IPPROTO_UDP(17), IPPROTO_IDP(22), IPPROTO_TP(29), IPPROTO_IPV6(41), IPPROTO_ROUTING(43), IPPROTO_FRAGMENT(44), IPPROTO_RSVP(46), IPPROTO_GRE(47), IPPROTO_ESP(50), IPPROTO_AH(51), IPPROTO_ICMPV6(58), IPPROTO_NONE(59), IPPROTO_DSTOPTS(60), IPPROTO_MTP(92), IPPROTO_ENCAP(98), IPPROTO_PIM(103), // IPPROTO_COMP not defined // IPPROTO_SCTP not defined IPPROTO_RAW(255), IPPROTO_MAX(256); private final int value; private IPProto(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 256; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/INAddr.java0000644000175000017500000000121611316212262026006 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:19 -0800 2009 package com.kenai.constantine.platform.darwin; public enum INAddr implements com.kenai.constantine.Constant { INADDR_ANY(0), INADDR_BROADCAST(0xffffffff), INADDR_NONE(0xffffffff), INADDR_LOOPBACK(0x7f000001), INADDR_UNSPEC_GROUP(0xe0000000), INADDR_ALLHOSTS_GROUP(0xe0000001), INADDR_ALLRTRS_GROUP(0xe0000002), INADDR_MAX_LOCAL_GROUP(0xe00000ff); private final int value; private INAddr(int value) { this.value = value; } public static final long MIN_VALUE = 0; public static final long MAX_VALUE = 0xffffffff; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/platform/darwin/WaitFlags.java0000644000175000017500000000077711316212262026601 0ustar niconico// WARNING: This file is autogenerated. DO NOT EDIT! // Generated Mon Feb 23 16:15:21 -0800 2009 package com.kenai.constantine.platform.darwin; public enum WaitFlags implements com.kenai.constantine.Constant { WNOHANG(0x1), WUNTRACED(0x2), WSTOPPED(0x8), WEXITED(0x4), WCONTINUED(0x10), WNOWAIT(0x20); private final int value; private WaitFlags(int value) { this.value = value; } public static final long MIN_VALUE = 0x1; public static final long MAX_VALUE = 0x20; public final int value() { return value; } } libconstantine-java-0.7/src/com/kenai/constantine/Platform.java0000644000175000017500000000657011316212262023371 0ustar niconico/* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package com.kenai.constantine; import java.nio.ByteOrder; import java.util.HashMap; import java.util.Map; /** * Platform specific constants. */ public class Platform { private static final Platform INSTANCE = new Platform(); public static Platform getPlatform() { return INSTANCE; } protected Platform() { } public String getPackageName() { return String.format("%s.platform.%s.%s", Platform.class.getPackage().getName(), OS, ARCH); } public String getOSPackageName() { return String.format("%s.platform.%s", Platform.class.getPackage().getName(), OS); } public static final Map OS_NAMES = new HashMap() {{ put("Mac OS X", "darwin"); } public static final long serialVersionUID = 1L; }; public static final Map ARCH_NAMES = new HashMap() {{ put("x86", "i386"); } public static final long serialVersionUID = 1L; }; private static final String initOperatingSystem() { String osname = getProperty("os.name", "unknown").toLowerCase(); for (String s : OS_NAMES.keySet()) { if (s.equalsIgnoreCase(osname)) { return OS_NAMES.get(s); } } if (osname.startsWith("windows")) { return "windows"; } return osname; } private static final String initArchitecture() { String arch = getProperty("os.arch", "unknown").toLowerCase(); for (String s : ARCH_NAMES.keySet()) { if (s.equalsIgnoreCase(arch)) { return ARCH_NAMES.get(s); } } return arch; } public static final String ARCH = initArchitecture(); public static final String OS = initOperatingSystem(); public static final String NAME = String.format("%s-%s", ARCH, OS); public static final int BIG_ENDIAN = 4321; public static final int LITTLE_ENDIAN = 1234; public static final int BYTE_ORDER = ByteOrder.nativeOrder().equals(ByteOrder.BIG_ENDIAN) ? BIG_ENDIAN : LITTLE_ENDIAN; private static String getProperty(String property, String defValue) { try { return System.getProperty(property, defValue); } catch (SecurityException se) { return defValue; } } } libconstantine-java-0.7/build.xml0000644000175000017500000000661111316212262015576 0ustar niconico Builds, tests, and runs the project constantine. libconstantine-java-0.7/nbproject/0000755000175000017500000000000011316212262015737 5ustar niconicolibconstantine-java-0.7/nbproject/genfiles.properties0000644000175000017500000000071111316212262021650 0ustar niconicobuild.xml.data.CRC32=c2d120a4 build.xml.script.CRC32=907542ef build.xml.stylesheet.CRC32=be360661 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=cd399906 nbproject/build-impl.xml.script.CRC32=409de590 nbproject/build-impl.xml.stylesheet.CRC32=d43c2c02@1.23.0.45 libconstantine-java-0.7/nbproject/build-impl.xml0000644000175000017500000010466011316212262020526 0ustar niconico Must set src.dir Must set test.src.dir Must set build.dir Must set dist.dir Must set build.classes.dir Must set dist.javadoc.dir Must set build.test.classes.dir Must set build.test.results.dir Must set build.classes.excludes Must set dist.jar Must set javac.includes Must select some files in the IDE or set javac.includes To run this application from the command line without Ant, try: java -cp "${run.classpath.with.dist.jar}" ${main.class} To run this application from the command line without Ant, try: java -jar "${dist.jar.resolved}" Must select one file in the IDE or set run.class Must select one file in the IDE or set run.class Must select one file in the IDE or set debug.class Must select one file in the IDE or set debug.class Must set fix.includes Must select some files in the IDE or set javac.includes Some tests failed; see details above. Must select some files in the IDE or set test.includes Some tests failed; see details above. Must select one file in the IDE or set test.class Must select one file in the IDE or set applet.url Must select one file in the IDE or set applet.url libconstantine-java-0.7/nbproject/project.properties0000644000175000017500000000360511316212262021527 0ustar niconicoapplication.title=constantine application.vendor=JRuby Project build.classes.dir=${build.dir}/classes build.classes.excludes=**/*.java,**/*.form # This directory is removed when the project is cleaned: build.dir=build build.generated.dir=${build.dir}/generated build.generated.sources.dir=${build.dir}/generated-sources # Only compile against the classpath explicitly listed here: build.sysclasspath=ignore build.test.classes.dir=${build.dir}/test/classes build.test.results.dir=${build.dir}/test/results # Uncomment to specify the preferred debugger connection transport: #debug.transport=dt_socket debug.classpath=\ ${run.classpath} debug.test.classpath=\ ${run.test.classpath} disable.compile.on.save=false # This directory is removed when the project is cleaned: dist.dir=dist dist.jar=${dist.dir}/constantine.jar dist.javadoc.dir=${dist.dir}/javadoc excludes= includes=** jar.compress=true javac.classpath= # Space-separated list of extra javac options javac.compilerargs=-Xlint javac.deprecation=false javac.source=1.5 javac.target=1.5 javac.test.classpath=\ ${javac.classpath}:\ ${build.classes.dir}:\ ${libs.junit_4.classpath} javadoc.additionalparam= javadoc.author=false javadoc.encoding=${source.encoding} javadoc.noindex=false javadoc.nonavbar=false javadoc.notree=false javadoc.private=false javadoc.splitindex=true javadoc.use=true javadoc.version=false javadoc.windowtitle= meta.inf.dir=${src.dir}/META-INF platform.active=default_platform run.classpath=\ ${javac.classpath}:\ ${build.classes.dir} # Space-separated list of JVM arguments used when running the project # (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value # or test-sys-prop.name=value to set system properties for unit tests): run.jvmargs= run.test.classpath=\ ${javac.test.classpath}:\ ${build.test.classes.dir} source.encoding=UTF-8 src.dir=src test.src.dir=test libconstantine-java-0.7/nbproject/project.xml0000644000175000017500000000106511316212262020131 0ustar niconico org.netbeans.modules.java.j2seproject constantine 1.6.5 libconstantine-java-0.7/.hgignore0000644000175000017500000000015411316212262015554 0ustar niconico\.orig$ \.orig\..*$ \.chg\..*$ \.rej$ \.conflict\~$ ^build/.*$ ^target/.*$ ^nbproject/private/.*$ ^dist/.*$