diff -Nru jnr-constants-0.8.6/debian/changelog jnr-constants-0.9.9/debian/changelog --- jnr-constants-0.8.6/debian/changelog 2016-11-07 13:19:23.000000000 +0000 +++ jnr-constants-0.9.9/debian/changelog 2017-07-16 11:24:29.000000000 +0000 @@ -1,3 +1,38 @@ +jnr-constants (0.9.9-2) unstable; urgency=medium + + * Upload to unstable. + + -- Miguel Landaeta Sun, 16 Jul 2017 12:24:21 +0100 + +jnr-constants (0.9.9-1) experimental; urgency=medium + + * New upstream release. + + -- Miguel Landaeta Sun, 26 Mar 2017 14:35:54 +0100 + +jnr-constants (0.9.8-1) experimental; urgency=medium + + * New upstream release. + * Update Homepage field. + + -- Miguel Landaeta Wed, 22 Mar 2017 20:48:47 +0000 + +jnr-constants (0.9.6-1) experimental; urgency=medium + + * New upstream release. (Closes: #851326) + * Add myself as uploader. + * Add B-D on Maven plugins: + - libmaven-bundle-plugin-java. + - libmaven-source-plugin-java. + * Wrap and sort dependencies lists. + * Update package description. + * Remove dummy transitional packages libconstantine-java{,-doc}. + * Remove symlinks to obsolete libconstantine-java .jar files. + * Update dates in d/copyright file. + * Add get-orig-source target to d/rules. + + -- Miguel Landaeta Tue, 17 Jan 2017 22:11:20 +0000 + jnr-constants (0.8.6-8) unstable; urgency=medium * Team upload. diff -Nru jnr-constants-0.8.6/debian/control jnr-constants-0.9.9/debian/control --- jnr-constants-0.8.6/debian/control 2016-11-07 12:23:48.000000000 +0000 +++ jnr-constants-0.9.9/debian/control 2017-07-16 11:23:13.000000000 +0000 @@ -2,23 +2,27 @@ Section: java Priority: optional Maintainer: Debian Java Maintainers -Uploaders: tony mancill , Tim Potter , - Jakub Adam -Build-Depends: - debhelper (>= 10), - maven-debian-helper, - javahelper, - junit4, - libmaven-javadoc-plugin-java, - bnd (>= 2.1.0) +Uploaders: tony mancill , + Tim Potter , + Jakub Adam , + Miguel Landaeta +Build-Depends: bnd (>= 2.1.0), + debhelper (>= 10), + javahelper, + junit4, + libmaven-bundle-plugin-java, + libmaven-javadoc-plugin-java, + libmaven-source-plugin-java, + maven-debian-helper Standards-Version: 3.9.8 -Homepage: http://github.com/jnr/jnr-constants/ +Homepage: https://github.com/jnr/jnr-constants/ Vcs-Git: https://anonscm.debian.org/git/pkg-java/jnr-constants.git Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/jnr-constants.git Package: libjnr-constants-java Architecture: all -Depends: ${misc:Depends}, ${maven:Depends} +Depends: ${misc:Depends}, + ${maven:Depends} Replaces: libconstantine-java (<< 0.8.6~) Breaks: libconstantine-java (<< 0.8.6~) Description: platform constants for Java @@ -27,8 +31,6 @@ method to JNI or JNA to achieve programming simplicity while still retaining performance. . - The upstream version of this package is now also known as jnr-constants. - . The jnr-constants package gives Java programs access to platform-level constants, for example errno values. @@ -50,16 +52,3 @@ constants, for example errno values. . This package contains jnr-constants API javadocs. - -Package: libconstantine-java -Architecture: all -Depends: libjnr-constants-java, ${misc:Depends} -Description: transitional dummy package for libconstantine-java - This is a transitional dummy package. It can safely be removed. - -Package: libconstantine-java-doc -Architecture: all -Section: doc -Depends: libjnr-constants-java-doc, ${misc:Depends} -Description: transitional dummy package for libconstantine-java-doc - This is a transitional dummy package. It can safely be removed. diff -Nru jnr-constants-0.8.6/debian/copyright jnr-constants-0.9.9/debian/copyright --- jnr-constants-0.8.6/debian/copyright 2016-11-07 12:22:52.000000000 +0000 +++ jnr-constants-0.9.9/debian/copyright 2017-07-16 11:23:13.000000000 +0000 @@ -37,6 +37,7 @@ Files: debian/* Copyright: 2009 Nicolas Duboc 2014 Tim Potter + 2017 Miguel Landaeta License: Apache-2.0 Comment: the Debian packaging is licensed under the same terms as the original package. diff -Nru jnr-constants-0.8.6/debian/libjnr-constants-java.links jnr-constants-0.9.9/debian/libjnr-constants-java.links --- jnr-constants-0.8.6/debian/libjnr-constants-java.links 2016-11-07 12:22:52.000000000 +0000 +++ jnr-constants-0.9.9/debian/libjnr-constants-java.links 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -usr/share/java/jnr-constants.jar usr/share/java/constantine.jar -usr/share/java/jnr-constants.jar usr/share/java/libconstantine.jar diff -Nru jnr-constants-0.8.6/debian/rules jnr-constants-0.9.9/debian/rules --- jnr-constants-0.8.6/debian/rules 2016-11-07 12:23:37.000000000 +0000 +++ jnr-constants-0.9.9/debian/rules 2017-07-16 11:23:13.000000000 +0000 @@ -13,3 +13,6 @@ # generate OSGi metadata bnd wrap --properties debian/jnr-constants.bnd --output $(JAR).tmp $(JAR) mv $(JAR).tmp $(JAR) + +get-orig-source: + uscan --verbose --download-current-version diff -Nru jnr-constants-0.8.6/gen/const/Access.rb jnr-constants-0.9.9/gen/const/Access.rb --- jnr-constants-0.8.6/gen/const/Access.rb 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/Access.rb 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,14 @@ +require_relative '../../gen/ConstGenerator' +def gen_access_java(options) + ConstGenerator.new 'platform.access', options do |cg| + cg.include "unistd.h" + cg.type = :bitmask + cg.min_value = 0 + %w[ + F_OK + X_OK + W_OK + R_OK + ].each { |c| cg.const c } + end +end diff -Nru jnr-constants-0.8.6/gen/const/AddressFamily.rb jnr-constants-0.9.9/gen/const/AddressFamily.rb --- jnr-constants-0.8.6/gen/const/AddressFamily.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/AddressFamily.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_addressfamily_java(options) ConstGenerator.new 'platform.address_family', options do |cg| cg.include "sys/socket.h" diff -Nru jnr-constants-0.8.6/gen/const/Errno.rb jnr-constants-0.9.9/gen/const/Errno.rb --- jnr-constants-0.8.6/gen/const/Errno.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/Errno.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_errno_java(options) ConstGenerator.new 'platform.errno', options do |cg| cg.include "errno.h" diff -Nru jnr-constants-0.8.6/gen/const/Fcntl.rb jnr-constants-0.9.9/gen/const/Fcntl.rb --- jnr-constants-0.8.6/gen/const/Fcntl.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/Fcntl.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,8 +1,9 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_fcntl_java(options) ConstGenerator.new 'platform.fcntl', options do |cg| cg.include "fcntl.h" cg.include "string.h" + cg.min_value = 0 cg.unknown_range=[20000, 20999] consts = %w[ F_DUPFD diff -Nru jnr-constants-0.8.6/gen/const/INAddr.rb jnr-constants-0.9.9/gen/const/INAddr.rb --- jnr-constants-0.8.6/gen/const/INAddr.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/INAddr.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_inaddr_java(options) ConstGenerator.new 'platform.inaddr', options do |cg| cg.include "sys/types.h" diff -Nru jnr-constants-0.8.6/gen/const/IPProto.rb jnr-constants-0.9.9/gen/const/IPProto.rb --- jnr-constants-0.8.6/gen/const/IPProto.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/IPProto.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_ipproto_java(options) ConstGenerator.new 'platform.ipproto', options do |cg| cg.include "netinet/in.h" diff -Nru jnr-constants-0.8.6/gen/const/LangInfo.rb jnr-constants-0.9.9/gen/const/LangInfo.rb --- jnr-constants-0.8.6/gen/const/LangInfo.rb 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/LangInfo.rb 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,55 @@ +require_relative '../../gen/ConstGenerator' +def gen_langinfo_java(options) + ConstGenerator.new 'platform.langinfo', options do |cg| + cg.include "langinfo.h" + %w[ + CODESET + D_T_FMT + D_FMT + T_FMT + DAY_1 + DAY_2 + DAY_3 + DAY_4 + DAY_5 + DAY_6 + DAY_7 + ABDAY_1 + ABDAY_2 + ABDAY_3 + ABDAY_4 + ABDAY_5 + ABDAY_6 + ABDAY_7 + MON_1 + MON_2 + MON_3 + MON_4 + MON_5 + MON_6 + MON_7 + MON_8 + MON_9 + MON_10 + MON_11 + MON_12 + ABMON_1 + ABMON_2 + ABMON_3 + ABMON_4 + ABMON_5 + ABMON_6 + ABMON_7 + ABMON_8 + ABMON_9 + ABMON_10 + ABMON_11 + ABMON_12 + RADIXCHAR + THOUSEP + YESEXPR + NOEXPR + CRNCYSTR + ].each {|c| cg.const c} + end +end diff -Nru jnr-constants-0.8.6/gen/const/LastError.rb jnr-constants-0.9.9/gen/const/LastError.rb --- jnr-constants-0.8.6/gen/const/LastError.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/LastError.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_lasterror_java(options) options[:LastError] = true ConstGenerator.new 'platform.lasterror', options do |cg| diff -Nru jnr-constants-0.8.6/gen/const/Locale.rb jnr-constants-0.9.9/gen/const/Locale.rb --- jnr-constants-0.8.6/gen/const/Locale.rb 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/Locale.rb 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,23 @@ +require_relative '../../gen/ConstGenerator' +def gen_locale_java(options) + ConstGenerator.new 'platform.locale', options do |cg| + cg.include "locale.h" + cg.min_value = 0 + consts = %w[ + LC_CTYPE + LC_NUMERIC + LC_TIME + LC_COLLATE + LC_MONETARY + LC_MESSAGES + LC_ALL + LC_PAPER + LC_NAME + LC_ADDRESS + LC_TELEPHONE + LC_MEASUREMENT + LC_IDENTIFICATION + ] + consts.each { |c| cg.const c } + end +end diff -Nru jnr-constants-0.8.6/gen/const/NameInfo.rb jnr-constants-0.9.9/gen/const/NameInfo.rb --- jnr-constants-0.8.6/gen/const/NameInfo.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/NameInfo.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_nameinfo_java(options) ConstGenerator.new 'platform.nameinfo', options do |cg| cg.include "sys/socket.h" @@ -14,4 +14,4 @@ NI_WITHSCOPEID ].each {|c| cg.const c} end -end \ No newline at end of file +end diff -Nru jnr-constants-0.8.6/gen/const/OpenFlags.rb jnr-constants-0.9.9/gen/const/OpenFlags.rb --- jnr-constants-0.8.6/gen/const/OpenFlags.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/OpenFlags.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_openflags_java(options) ConstGenerator.new 'platform.openflags', options do |cg| cg.include "fcntl.h" @@ -26,6 +26,8 @@ O_SYMLINK O_BINARY O_NOCTTY + O_TMPFILE + O_CLOEXEC ] consts.each { |c| cg.const c } end diff -Nru jnr-constants-0.8.6/gen/const/PosixFadvise.rb jnr-constants-0.9.9/gen/const/PosixFadvise.rb --- jnr-constants-0.8.6/gen/const/PosixFadvise.rb 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/PosixFadvise.rb 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,14 @@ +require_relative '../../gen/ConstGenerator' +def gen_posixfadvise_java(options) + ConstGenerator.new 'platform.posix_fadvise', options do |cg| + cg.include "fcntl.h" + %w[ + POSIX_FADV_NORMAL + POSIX_FADV_SEQUENTIAL + POSIX_FADV_RANDOM + POSIX_FADV_NOREUSE + POSIX_FADV_WILLNEED + POSIX_FADV_DONTNEED + ].each {|c| cg.const c} + end +end diff -Nru jnr-constants-0.8.6/gen/const/PRIO.rb jnr-constants-0.9.9/gen/const/PRIO.rb --- jnr-constants-0.8.6/gen/const/PRIO.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/PRIO.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_prio_java(options) ConstGenerator.new 'platform.prio', options do |cg| cg.include "sys/resource.h" diff -Nru jnr-constants-0.8.6/gen/const/ProtocolFamily.rb jnr-constants-0.9.9/gen/const/ProtocolFamily.rb --- jnr-constants-0.8.6/gen/const/ProtocolFamily.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/ProtocolFamily.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_protocolfamily_java(options) ConstGenerator.new 'platform.protocol_family', options do |cg| cg.include "sys/socket.h" @@ -44,4 +44,4 @@ PF_MAX ].each {|c| cg.const c} end -end \ No newline at end of file +end diff -Nru jnr-constants-0.8.6/gen/const/RLIMIT.rb jnr-constants-0.9.9/gen/const/RLIMIT.rb --- jnr-constants-0.8.6/gen/const/RLIMIT.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/RLIMIT.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_rlimit_java(options) ConstGenerator.new 'platform.rlimit', options do |cg| cg.include "stdint.h" @@ -25,4 +25,4 @@ RLIMIT_STACK ].each {|c| cg.const c } end -end \ No newline at end of file +end diff -Nru jnr-constants-0.8.6/gen/const/RLIM.rb jnr-constants-0.9.9/gen/const/RLIM.rb --- jnr-constants-0.8.6/gen/const/RLIM.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/RLIM.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_rlim_java(options) ConstGenerator.new 'platform.rlimit', options do |cg| cg.include "stdint.h" @@ -11,4 +11,4 @@ RLIM_SAVED_CUR ].each {|c| cg.const(c, "%#lx", "(unsigned long)") { |v| v.hex} } end -end \ No newline at end of file +end diff -Nru jnr-constants-0.8.6/gen/const/Shutdown.rb jnr-constants-0.9.9/gen/const/Shutdown.rb --- jnr-constants-0.8.6/gen/const/Shutdown.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/Shutdown.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_shutdown_java(options) ConstGenerator.new 'platform.shutdown', options do |cg| cg.include "sys/socket.h" @@ -9,4 +9,4 @@ SHUT_RDWR ].each {|c| cg.const c} end -end \ No newline at end of file +end diff -Nru jnr-constants-0.8.6/gen/const/Signal.rb jnr-constants-0.9.9/gen/const/Signal.rb --- jnr-constants-0.8.6/gen/const/Signal.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/Signal.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' require 'rbconfig' def gen_signal_java(options) ConstGenerator.new 'platform.signal', options do |cg| diff -Nru jnr-constants-0.8.6/gen/const/SocketLevel.rb jnr-constants-0.9.9/gen/const/SocketLevel.rb --- jnr-constants-0.8.6/gen/const/SocketLevel.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/SocketLevel.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_socketlevel_java(options) ConstGenerator.new 'platform.socketlevel', options do |cg| cg.include "sys/socket.h" @@ -9,4 +9,4 @@ SOL_UDP ].each {|c| cg.const c} end -end \ No newline at end of file +end diff -Nru jnr-constants-0.8.6/gen/const/SocketOption.rb jnr-constants-0.9.9/gen/const/SocketOption.rb --- jnr-constants-0.8.6/gen/const/SocketOption.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/SocketOption.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_socketoption_java(options) ConstGenerator.new 'platform.socket_option', options do |cg| cg.include "sys/socket.h" diff -Nru jnr-constants-0.8.6/gen/const/Sock.rb jnr-constants-0.9.9/gen/const/Sock.rb --- jnr-constants-0.8.6/gen/const/Sock.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/Sock.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_sock_java(options) ConstGenerator.new 'platform.sock', options do |cg| cg.include "sys/socket.h" @@ -11,4 +11,4 @@ SOCK_MAXADDRLEN ].each {|c| cg.const c} end -end \ No newline at end of file +end diff -Nru jnr-constants-0.8.6/gen/const/Sysconf.rb jnr-constants-0.9.9/gen/const/Sysconf.rb --- jnr-constants-0.8.6/gen/const/Sysconf.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/Sysconf.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_sysconf_java(options) ConstGenerator.new 'platform.sysconf', options do |cg| cg.include "sys/types.h" diff -Nru jnr-constants-0.8.6/gen/const/TCP.rb jnr-constants-0.9.9/gen/const/TCP.rb --- jnr-constants-0.8.6/gen/const/TCP.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/TCP.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_tcp_java(options) ConstGenerator.new 'platform.tcp', options do |cg| cg.include "sys/socket.h" @@ -23,4 +23,4 @@ TCP_RETRANSHZ ].each {|c| cg.const c, "%lu", "(unsigned long)"} end -end \ No newline at end of file +end diff -Nru jnr-constants-0.8.6/gen/const/WaitFlags.rb jnr-constants-0.9.9/gen/const/WaitFlags.rb --- jnr-constants-0.8.6/gen/const/WaitFlags.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const/WaitFlags.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,4 +1,4 @@ -require 'gen/ConstGenerator' +require_relative '../../gen/ConstGenerator' def gen_waitflags_java(options) ConstGenerator.new 'platform.waitflags', options do |cg| cg.include "sys/wait.h" diff -Nru jnr-constants-0.8.6/gen/const_generator.rb jnr-constants-0.9.9/gen/const_generator.rb --- jnr-constants-0.8.6/gen/const_generator.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/const_generator.rb 2017-03-24 15:28:21.000000000 +0000 @@ -11,6 +11,7 @@ attr_reader :constants attr_reader :names attr_reader :type + attr_accessor :min_value ## # Creates a new constant generator that uses +prefix+ as a name, and an @@ -28,6 +29,7 @@ @names = [] @prefix = prefix @unknown_range = { :first => 20000, :last => 29999 } + @min_value = 1 @required = options[:required] @options = options diff -Nru jnr-constants-0.8.6/gen/ConstGenerator.rb jnr-constants-0.9.9/gen/ConstGenerator.rb --- jnr-constants-0.8.6/gen/ConstGenerator.rb 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/gen/ConstGenerator.rb 2017-03-24 15:28:21.000000000 +0000 @@ -1,2 +1,2 @@ -require 'gen/const_generator' -ConstGenerator = Constantine::ConstGenerator \ No newline at end of file +require_relative 'const_generator' +ConstGenerator = Constantine::ConstGenerator diff -Nru jnr-constants-0.8.6/pom.xml jnr-constants-0.9.9/pom.xml --- jnr-constants-0.8.6/pom.xml 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/pom.xml 2017-03-24 15:28:21.000000000 +0000 @@ -9,7 +9,7 @@ com.github.jnr jnr-constants jar - 0.8.6 + 0.9.9 jnr-constants A set of platform constants (e.g. errno values) http://github.com/jnr/jnr-constants @@ -34,6 +34,11 @@ Wayne Meissner wmeissner@gmail.com + + headius + Charles Oliver Nutter + headius@headius.com + @@ -50,4 +55,63 @@ 1.5 1.5 + + + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.felix + maven-bundle-plugin + 2.3.7 + + + <_nouses>true + + + + + bundle-manifest + process-classes + + manifest + + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.3.1 + + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + + + diff -Nru jnr-constants-0.8.6/Rakefile jnr-constants-0.9.9/Rakefile --- jnr-constants-0.8.6/Rakefile 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/Rakefile 2017-03-24 15:28:21.000000000 +0000 @@ -90,15 +90,25 @@ f.puts "package #{pkg};" f.puts "public enum #{name} implements #{ICONSTANT} {"; + min_value = cg.min_value max_value = 0 names.each_with_index do |c, i| - max_value = cg.type ==:bitmask ? "0x#{(1 << i).to_s(16)}" : i + 1 + max_value = if min_value == 0 + if i == 0 + cg.type ==:bitmask ? "0x0" : i + min_value + else + cg.type ==:bitmask ? "0x#{(1 << (i - 1)).to_s(16)}" : i + min_value + end + else + cg.type ==:bitmask ? "0x#{(1 << i).to_s(16)}" : i + min_value + end + f.puts "#{c}(#{max_value})#{i < (names.length - 1) ? ',' : ';'}" end f.puts "private final long value;" f.puts "private #{name}(long value) { this.value = value; }" - f.puts "public static final long MIN_VALUE = 1L;" + f.puts "public static final long MIN_VALUE = #{min_value}L;" f.puts "public static final long MAX_VALUE = #{max_value}L;" f.puts "public final int intValue() { return (int) value; }" f.puts "public final long longValue() { return value; }" diff -Nru jnr-constants-0.8.6/README.md jnr-constants-0.9.9/README.md --- jnr-constants-0.8.6/README.md 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/README.md 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,51 @@ +Java Native Runtime Constants +============================================= +[![Build Status](https://travis-ci.org/jnr/jnr-constants.svg?branch=master)](https://travis-ci.org/jnr/jnr-constants) + +Overview +-------- + +This project contains Java enums for common POSIX constants. It is predominately used to make calls into jnr-posix +far simpler. + +Adding Constants +---------------- + +If you want to add new constants to the project, note that all the Java source code is generated. The gen/ directory +contains Ruby code to declare the constants you want. The constant values themselves are exctracted by inspection. +In order to do so, the code generator will compile a small program that outputs the values of the constants as discovered +in declared header files. When the program is run, the output is parsed, and these are the values that are used when +generating the Java source. + +To run the code generator, you must have Rake installed in Ruby 1.9+. There are three tasks you must run in order to +generate all the necessary files: + + $ rake generate:xplatform + $ rake generate:platform + $ rake generate:fake + +The _generate:xplatform_ variant generates the top-level enum file. While this contains the necessary fields, it does +not contain the integer values for those fields. The values lookup is delegated to either an OS-specific (and possibly +architecture-specific) implementation or a so-called "fake" implementation. + +To generate the OS-specific file, you use the _generate:platform_ task. This must be run on each platform you'd like +to generate the files for. As that can be cumbersome and you might not have access to a machine running each OS, you +should also generate the "fake" implementation as a fail-safe. The _generate:fake_ task is responsible for that. + +The generated files are version-controlled. Please remember to commit them in addition to the Ruby templates for the +generator. + +Building +-------- + +The project is maven-based. It uses standard maven lifecycle events. To build the code: + + $ mvn package + +To install the code into your local maven repository: + + $ mvn install + +To push snapshots out to Sonatype (you must have the necessary permissions): + + $ mvn deploy diff -Nru jnr-constants-0.8.6/src/main/java/com/kenai/constantine/Constant.java jnr-constants-0.9.9/src/main/java/com/kenai/constantine/Constant.java --- jnr-constants-0.8.6/src/main/java/com/kenai/constantine/Constant.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/com/kenai/constantine/Constant.java 2017-03-24 15:28:21.000000000 +0000 @@ -1,21 +1,15 @@ /* - * 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: + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.kenai.constantine; diff -Nru jnr-constants-0.8.6/src/main/java/com/kenai/constantine/ConstantSet.java jnr-constants-0.9.9/src/main/java/com/kenai/constantine/ConstantSet.java --- jnr-constants-0.8.6/src/main/java/com/kenai/constantine/ConstantSet.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/com/kenai/constantine/ConstantSet.java 2017-03-24 15:28:21.000000000 +0000 @@ -1,21 +1,15 @@ /* - * 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: + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.kenai.constantine; diff -Nru jnr-constants-0.8.6/src/main/java/com/kenai/constantine/platform/ConstantResolver.java jnr-constants-0.9.9/src/main/java/com/kenai/constantine/platform/ConstantResolver.java --- jnr-constants-0.8.6/src/main/java/com/kenai/constantine/platform/ConstantResolver.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/com/kenai/constantine/platform/ConstantResolver.java 2017-03-24 15:28:21.000000000 +0000 @@ -1,21 +1,15 @@ /* - * 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: + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.kenai.constantine.platform; diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/Constant.java jnr-constants-0.9.9/src/main/java/jnr/constants/Constant.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/Constant.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/Constant.java 2017-03-24 15:28:21.000000000 +0000 @@ -1,21 +1,15 @@ /* - * 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: + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package jnr.constants; diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/ConstantSet.java jnr-constants-0.9.9/src/main/java/jnr/constants/ConstantSet.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/ConstantSet.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/ConstantSet.java 2017-03-24 15:28:21.000000000 +0000 @@ -1,26 +1,26 @@ /* - * 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: + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package jnr.constants; +import jnr.constants.platform.Errno; + +import java.io.InputStream; import java.lang.reflect.Field; +import java.net.URL; +import java.security.AccessController; +import java.security.PrivilegedAction; import java.util.*; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; @@ -39,6 +39,50 @@ private static final ConcurrentMap constantSets = new ConcurrentHashMap(); private static final Object lock = new Object(); + private static final ClassLoader LOADER; + private static final boolean CAN_LOAD_RESOURCES; + private static volatile Throwable RESOURCE_READ_ERROR; + + static { + ClassLoader _loader = ConstantSet.class.getClassLoader(); + if (_loader != null) { + LOADER = _loader; + } else { + LOADER = ClassLoader.getSystemClassLoader(); + } + + boolean canLoadResources = false; + try { + URL thisClass = AccessController.doPrivileged(new PrivilegedAction() { + public URL run() { + return LOADER.getResource("jnr/constants/ConstantSet.class"); + } + }); + + InputStream stream = thisClass.openStream(); + + try { + stream.read(); + } catch (Throwable t) { + // save for future reporting, can't read the stream for whatever reason + RESOURCE_READ_ERROR = t; + } finally { + try { + stream.close(); + } catch (Exception e) { + // ignore + } + } + + canLoadResources = true; + } catch (Throwable t) { + if (RESOURCE_READ_ERROR == null) { + RESOURCE_READ_ERROR = t; + } + } + + CAN_LOAD_RESOURCES = canLoadResources; + } /** * Gets a ConstantSet @@ -82,9 +126,23 @@ String[] prefixes = Platform.getPlatform().getPackagePrefixes(); for (String prefix : prefixes) { - try { - return (Class) Class.forName(prefix + "." + name).asSubclass(Enum.class); - } catch (ClassNotFoundException ex) { + String fullName = prefix + "." + name; + boolean doClass = true; + + if (CAN_LOAD_RESOURCES) { + // Reduce exceptions on boot by trying to find the class as a resource first + String path = fullName.replace('.', '/') + ".class"; + URL resource = LOADER.getResource(path); + + // Able to load resources, but couldn't find this, bail out + if (resource == null) doClass = false; + } + + if (doClass) { + try { + return (Class) Class.forName(fullName, true, LOADER).asSubclass(Enum.class); + } catch (ClassNotFoundException ex) { + } } } return null; @@ -229,4 +287,8 @@ public boolean contains(Object o) { return o != null && o.getClass().equals(enumClass); } + + public static void main(String[] args) { + System.out.println(Errno.values().length); + } } diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/Access.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/Access.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/Access.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/Access.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,20 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2015-05-05 15:32:13 -0400 +package jnr.constants.platform; +public enum Access implements jnr.constants.Constant { +F_OK, +X_OK, +W_OK, +R_OK, +__UNKNOWN_CONSTANT__; +private static final ConstantResolver resolver = +ConstantResolver.getBitmaskResolver(Access.class); +public final int intValue() { return (int) resolver.longValue(this); } +public final long longValue() { return resolver.longValue(this); } +public final String description() { return resolver.description(this); } +public final boolean defined() { return resolver.defined(this); } +public final String toString() { return description(); } +public static Access valueOf(long value) { + return resolver.valueOf(value); +} +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/ConstantResolver.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/ConstantResolver.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/ConstantResolver.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/ConstantResolver.java 2017-03-24 15:28:21.000000000 +0000 @@ -1,21 +1,15 @@ /* - * 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: + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package jnr.constants.platform; @@ -23,6 +17,8 @@ import jnr.constants.platform.*; import jnr.constants.Constant; import jnr.constants.ConstantSet; +import jnr.constants.Platform; + import java.lang.reflect.Array; import java.util.EnumSet; import java.util.Map; @@ -76,14 +72,17 @@ } public int value() { + checkFake(); return (int) value; } public final int intValue() { + checkFake(); return (int) value; } public final long longValue() { + checkFake(); return value; } @@ -99,6 +98,12 @@ public final String toString() { return name; } + + private void checkFake() { + if (!Platform.FAKE) { + throw new AssertionError("Constant " + name + " is not defined on " + Platform.NAME); + } + } } diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/darwin/Access.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/darwin/Access.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/darwin/Access.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/darwin/Access.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,17 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2015-05-05 16:53:52 -0500 +package jnr.constants.platform.darwin; +public enum Access implements jnr.constants.Constant { +F_OK(0L), +X_OK(1L), +W_OK(2L), +R_OK(4L); +private final long value; +private Access(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 4L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/darwin/LangInfo.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/darwin/LangInfo.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/darwin/LangInfo.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/darwin/LangInfo.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,60 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-10-28 20:36:13 -0400 +package jnr.constants.platform.darwin; +public enum LangInfo implements jnr.constants.Constant { +CODESET(0L), +D_T_FMT(1L), +D_FMT(2L), +T_FMT(3L), +DAY_1(7L), +DAY_2(8L), +DAY_3(9L), +DAY_4(10L), +DAY_5(11L), +DAY_6(12L), +DAY_7(13L), +ABDAY_1(14L), +ABDAY_2(15L), +ABDAY_3(16L), +ABDAY_4(17L), +ABDAY_5(18L), +ABDAY_6(19L), +ABDAY_7(20L), +MON_1(21L), +MON_2(22L), +MON_3(23L), +MON_4(24L), +MON_5(25L), +MON_6(26L), +MON_7(27L), +MON_8(28L), +MON_9(29L), +MON_10(30L), +MON_11(31L), +MON_12(32L), +ABMON_1(33L), +ABMON_2(34L), +ABMON_3(35L), +ABMON_4(36L), +ABMON_5(37L), +ABMON_6(38L), +ABMON_7(39L), +ABMON_8(40L), +ABMON_9(41L), +ABMON_10(42L), +ABMON_11(43L), +ABMON_12(44L), +RADIXCHAR(50L), +THOUSEP(51L), +YESEXPR(52L), +NOEXPR(53L), +CRNCYSTR(56L); +private final long value; +private LangInfo(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 56L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/darwin/Locale.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/darwin/Locale.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/darwin/Locale.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/darwin/Locale.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,26 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2017-01-25 14:08:36 -0500 +package jnr.constants.platform.darwin; +public enum Locale implements jnr.constants.Constant { +LC_CTYPE(2L), +LC_NUMERIC(4L), +LC_TIME(5L), +LC_COLLATE(1L), +LC_MONETARY(3L), +LC_MESSAGES(6L), +LC_ALL(0L); +// LC_PAPER not defined +// LC_NAME not defined +// LC_ADDRESS not defined +// LC_TELEPHONE not defined +// LC_MEASUREMENT not defined +// LC_IDENTIFICATION not defined +private final long value; +private Locale(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 6L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/darwin/OpenFlags.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/darwin/OpenFlags.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/darwin/OpenFlags.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/darwin/OpenFlags.java 2017-03-24 15:28:21.000000000 +0000 @@ -21,7 +21,9 @@ O_DIRECTORY(1048576L), O_SYMLINK(2097152L), // O_BINARY not defined -O_NOCTTY(131072L); +O_NOCTTY(131072L), +// O_TMPFILE not defined +O_CLOEXEC(0x1000000); private final long value; private OpenFlags(long value) { this.value = value; } public static final long MIN_VALUE = 0L; diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/fake/Access.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/fake/Access.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/fake/Access.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/fake/Access.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,16 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2015-05-05 17:08:43 -0400 +package jnr.constants.platform.fake; +public enum Access implements jnr.constants.Constant { +F_OK(0x0), +X_OK(0x1), +W_OK(0x2), +R_OK(0x4); +private final long value; +private Access(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 0x4L; +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/fake/Fcntl.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/fake/Fcntl.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/fake/Fcntl.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/fake/Fcntl.java 2017-03-24 15:28:21.000000000 +0000 @@ -1,43 +1,43 @@ // WARNING: This file is autogenerated. DO NOT EDIT! -// Generated 2010-07-31 18:57:14 +1000 +// Generated 2015-05-06 20:03:41 -0400 package jnr.constants.platform.fake; public enum Fcntl implements jnr.constants.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); +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(10), +F_PREALLOCATE(11), +F_SETSIZE(12), +F_RDADVISE(13), +F_RDAHEAD(14), +F_READBOOTSTRAP(15), +F_WRITEBOOTSTRAP(16), +F_NOCACHE(17), +F_LOG2PHYS(18), +F_GETPATH(19), +F_FULLFSYNC(20), +F_PATHPKG_CHECK(21), +F_FREEZE_FS(22), +F_THAW_FS(23), +F_GLOBAL_NOCACHE(24), +F_ADDSIGS(25), +F_MARKDEPENDENCY(26), +F_RDLCK(27), +F_UNLCK(28), +F_WRLCK(29), +F_ALLOCATECONTIG(30), +F_ALLOCATEALL(31); private final long value; private Fcntl(long value) { this.value = value; } -public static final long MIN_VALUE = 1L; -public static final long MAX_VALUE = 32L; +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 31L; public final int intValue() { return (int) value; } public final long longValue() { return value; } public final boolean defined() { return true; } diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/fake/LangInfo.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/fake/LangInfo.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/fake/LangInfo.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/fake/LangInfo.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,59 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-10-28 20:32:28 -0400 +package jnr.constants.platform.fake; +public enum LangInfo implements jnr.constants.Constant { +CODESET(1), +D_T_FMT(2), +D_FMT(3), +T_FMT(4), +DAY_1(5), +DAY_2(6), +DAY_3(7), +DAY_4(8), +DAY_5(9), +DAY_6(10), +DAY_7(11), +ABDAY_1(12), +ABDAY_2(13), +ABDAY_3(14), +ABDAY_4(15), +ABDAY_5(16), +ABDAY_6(17), +ABDAY_7(18), +MON_1(19), +MON_2(20), +MON_3(21), +MON_4(22), +MON_5(23), +MON_6(24), +MON_7(25), +MON_8(26), +MON_9(27), +MON_10(28), +MON_11(29), +MON_12(30), +ABMON_1(31), +ABMON_2(32), +ABMON_3(33), +ABMON_4(34), +ABMON_5(35), +ABMON_6(36), +ABMON_7(37), +ABMON_8(38), +ABMON_9(39), +ABMON_10(40), +ABMON_11(41), +ABMON_12(42), +RADIXCHAR(43), +THOUSEP(44), +YESEXPR(45), +NOEXPR(46), +CRNCYSTR(47); +private final long value; +private LangInfo(long value) { this.value = value; } +public static final long MIN_VALUE = 1L; +public static final long MAX_VALUE = 47L; +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/fake/Locale.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/fake/Locale.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/fake/Locale.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/fake/Locale.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,25 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2017-01-25 14:01:49 -0500 +package jnr.constants.platform.fake; +public enum Locale implements jnr.constants.Constant { +LC_CTYPE(0), +LC_NUMERIC(1), +LC_TIME(2), +LC_COLLATE(3), +LC_MONETARY(4), +LC_MESSAGES(5), +LC_ALL(6), +LC_PAPER(7), +LC_NAME(8), +LC_ADDRESS(9), +LC_TELEPHONE(10), +LC_MEASUREMENT(11), +LC_IDENTIFICATION(12); +private final long value; +private Locale(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 12L; +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/fake/OpenFlags.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/fake/OpenFlags.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/fake/OpenFlags.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/fake/OpenFlags.java 2017-03-24 15:28:21.000000000 +0000 @@ -21,7 +21,9 @@ O_DIRECTORY(0x10000), O_SYMLINK(0x20000), O_BINARY(0x40000), -O_NOCTTY(0x80000); +O_NOCTTY(0x80000), +O_TMPFILE(0x100000), +O_CLOEXEC(0x200000); private final long value; private OpenFlags(long value) { this.value = value; } public static final long MIN_VALUE = 1L; diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/fake/PosixFadvise.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/fake/PosixFadvise.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/fake/PosixFadvise.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/fake/PosixFadvise.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,18 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-09-08 22:15:22 -0500 +package jnr.constants.platform.fake; +public enum PosixFadvise implements jnr.constants.Constant { +POSIX_FADV_NORMAL(1), +POSIX_FADV_SEQUENTIAL(2), +POSIX_FADV_RANDOM(3), +POSIX_FADV_NOREUSE(4), +POSIX_FADV_WILLNEED(5), +POSIX_FADV_DONTNEED(6); +private final long value; +private PosixFadvise(long value) { this.value = value; } +public static final long MIN_VALUE = 1L; +public static final long MAX_VALUE = 6L; +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/fake/Shutdown.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/fake/Shutdown.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/fake/Shutdown.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/fake/Shutdown.java 2017-03-24 15:28:21.000000000 +0000 @@ -2,9 +2,9 @@ // Generated 2010-07-31 18:57:15 +1000 package jnr.constants.platform.fake; public enum Shutdown implements jnr.constants.Constant { -SHUT_RD(0x1), -SHUT_WR(0x2), -SHUT_RDWR(0x4); +SHUT_RD(0x0), +SHUT_WR(0x1), +SHUT_RDWR(0x2); private final long value; private Shutdown(long value) { this.value = value; } public static final long MIN_VALUE = 1L; diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/freebsd/Access.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/freebsd/Access.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/freebsd/Access.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/freebsd/Access.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,17 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-10-28 21:32:29 -0400 +package jnr.constants.platform.freebsd; +public enum Access implements jnr.constants.Constant { +F_OK(0L), +X_OK(1L), +W_OK(2L), +R_OK(4L); +private final long value; +private Access(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 4L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/freebsd/LangInfo.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/freebsd/LangInfo.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/freebsd/LangInfo.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/freebsd/LangInfo.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,60 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-10-28 21:32:29 -0400 +package jnr.constants.platform.freebsd; +public enum LangInfo implements jnr.constants.Constant { +CODESET(0L), +D_T_FMT(1L), +D_FMT(2L), +T_FMT(3L), +DAY_1(7L), +DAY_2(8L), +DAY_3(9L), +DAY_4(10L), +DAY_5(11L), +DAY_6(12L), +DAY_7(13L), +ABDAY_1(14L), +ABDAY_2(15L), +ABDAY_3(16L), +ABDAY_4(17L), +ABDAY_5(18L), +ABDAY_6(19L), +ABDAY_7(20L), +MON_1(21L), +MON_2(22L), +MON_3(23L), +MON_4(24L), +MON_5(25L), +MON_6(26L), +MON_7(27L), +MON_8(28L), +MON_9(29L), +MON_10(30L), +MON_11(31L), +MON_12(32L), +ABMON_1(33L), +ABMON_2(34L), +ABMON_3(35L), +ABMON_4(36L), +ABMON_5(37L), +ABMON_6(38L), +ABMON_7(39L), +ABMON_8(40L), +ABMON_9(41L), +ABMON_10(42L), +ABMON_11(43L), +ABMON_12(44L), +RADIXCHAR(50L), +THOUSEP(51L), +YESEXPR(52L), +NOEXPR(53L), +CRNCYSTR(56L); +private final long value; +private LangInfo(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 56L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/freebsd/Locale.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/freebsd/Locale.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/freebsd/Locale.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/freebsd/Locale.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,26 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2017-01-25 19:26:06 -0500 +package jnr.constants.platform.freebsd; +public enum Locale implements jnr.constants.Constant { + LC_CTYPE(2L), + LC_NUMERIC(4L), + LC_TIME(5L), + LC_COLLATE(1L), + LC_MONETARY(3L), + LC_MESSAGES(6L), + LC_ALL(0L); + // LC_PAPER not defined +// LC_NAME not defined +// LC_ADDRESS not defined +// LC_TELEPHONE not defined +// LC_MEASUREMENT not defined +// LC_IDENTIFICATION not defined + private final long value; + private Locale(long value) { this.value = value; } + public static final long MIN_VALUE = 0L; + public static final long MAX_VALUE = 6L; + + public final int intValue() { return (int) value; } + public final long longValue() { return value; } + public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/freebsd/OpenFlags.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/freebsd/OpenFlags.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/freebsd/OpenFlags.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/freebsd/OpenFlags.java 2017-03-24 15:28:21.000000000 +0000 @@ -16,10 +16,12 @@ O_NOFOLLOW(256), O_CREAT(512), O_TRUNC(1024), -O_EXCL(2048); +O_EXCL(2048), // O_EVTONLY not defined // O_DIRECTORY not defined // O_SYMLINK not defined +// O_TMPFILE not defined +O_CLOEXEC(0x00100000); private final int value; private OpenFlags(int value) { this.value = value; } public static final long MIN_VALUE = 0; diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/freebsd/PosixFadvise.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/freebsd/PosixFadvise.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/freebsd/PosixFadvise.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/freebsd/PosixFadvise.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,19 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-10-28 21:32:29 -0400 +package jnr.constants.platform.freebsd; +public enum PosixFadvise implements jnr.constants.Constant { +POSIX_FADV_NORMAL(0L), +POSIX_FADV_SEQUENTIAL(2L), +POSIX_FADV_RANDOM(1L), +POSIX_FADV_NOREUSE(5L), +POSIX_FADV_WILLNEED(3L), +POSIX_FADV_DONTNEED(4L); +private final long value; +private PosixFadvise(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 5L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/LangInfo.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/LangInfo.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/LangInfo.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/LangInfo.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,63 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-10-28 20:32:05 -0400 +package jnr.constants.platform; +public enum LangInfo implements jnr.constants.Constant { +CODESET, +D_T_FMT, +D_FMT, +T_FMT, +DAY_1, +DAY_2, +DAY_3, +DAY_4, +DAY_5, +DAY_6, +DAY_7, +ABDAY_1, +ABDAY_2, +ABDAY_3, +ABDAY_4, +ABDAY_5, +ABDAY_6, +ABDAY_7, +MON_1, +MON_2, +MON_3, +MON_4, +MON_5, +MON_6, +MON_7, +MON_8, +MON_9, +MON_10, +MON_11, +MON_12, +ABMON_1, +ABMON_2, +ABMON_3, +ABMON_4, +ABMON_5, +ABMON_6, +ABMON_7, +ABMON_8, +ABMON_9, +ABMON_10, +ABMON_11, +ABMON_12, +RADIXCHAR, +THOUSEP, +YESEXPR, +NOEXPR, +CRNCYSTR, +__UNKNOWN_CONSTANT__; +private static final ConstantResolver resolver = +ConstantResolver.getResolver(LangInfo.class, 20000, 29999); +public final int intValue() { return (int) resolver.longValue(this); } +public final long longValue() { return resolver.longValue(this); } +public final String description() { return resolver.description(this); } +public final boolean defined() { return resolver.defined(this); } +public final String toString() { return description(); } +public static LangInfo valueOf(long value) { + return resolver.valueOf(value); +} +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/linux/Access.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/linux/Access.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/linux/Access.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/linux/Access.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,17 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2015-05-05 17:58:23 -0400 +package jnr.constants.platform.linux; +public enum Access implements jnr.constants.Constant { +F_OK(0L), +X_OK(1L), +W_OK(2L), +R_OK(4L); +private final long value; +private Access(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 4L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/linux/LangInfo.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/linux/LangInfo.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/linux/LangInfo.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/linux/LangInfo.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,60 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-10-28 20:32:09 -0400 +package jnr.constants.platform.linux; +public enum LangInfo implements jnr.constants.Constant { +CODESET(14L), +D_T_FMT(131112L), +D_FMT(131113L), +T_FMT(131114L), +DAY_1(131079L), +DAY_2(131080L), +DAY_3(131081L), +DAY_4(131082L), +DAY_5(131083L), +DAY_6(131084L), +DAY_7(131085L), +ABDAY_1(131072L), +ABDAY_2(131073L), +ABDAY_3(131074L), +ABDAY_4(131075L), +ABDAY_5(131076L), +ABDAY_6(131077L), +ABDAY_7(131078L), +MON_1(131098L), +MON_2(131099L), +MON_3(131100L), +MON_4(131101L), +MON_5(131102L), +MON_6(131103L), +MON_7(131104L), +MON_8(131105L), +MON_9(131106L), +MON_10(131107L), +MON_11(131108L), +MON_12(131109L), +ABMON_1(131086L), +ABMON_2(131087L), +ABMON_3(131088L), +ABMON_4(131089L), +ABMON_5(131090L), +ABMON_6(131091L), +ABMON_7(131092L), +ABMON_8(131093L), +ABMON_9(131094L), +ABMON_10(131095L), +ABMON_11(131096L), +ABMON_12(131097L), +RADIXCHAR(65536L), +THOUSEP(65537L), +YESEXPR(327680L), +NOEXPR(327681L), +CRNCYSTR(262159L); +private final long value; +private LangInfo(long value) { this.value = value; } +public static final long MIN_VALUE = 14L; +public static final long MAX_VALUE = 327681L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/linux/Locale.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/linux/Locale.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/linux/Locale.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/linux/Locale.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,26 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2017-01-25 13:58:02 -0500 +package jnr.constants.platform.linux; +public enum Locale implements jnr.constants.Constant { +LC_CTYPE(0L), +LC_NUMERIC(1L), +LC_TIME(2L), +LC_COLLATE(3L), +LC_MONETARY(4L), +LC_MESSAGES(5L), +LC_ALL(6L), +LC_PAPER(7L), +LC_NAME(8L), +LC_ADDRESS(9L), +LC_TELEPHONE(10L), +LC_MEASUREMENT(11L), +LC_IDENTIFICATION(12L); +private final long value; +private Locale(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 12L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/linux/OpenFlags.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/linux/OpenFlags.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/linux/OpenFlags.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/linux/OpenFlags.java 2017-03-24 15:28:21.000000000 +0000 @@ -16,10 +16,12 @@ // O_NOFOLLOW not defined O_CREAT(64), O_TRUNC(512), -O_EXCL(128); +O_EXCL(128), // O_EVTONLY not defined // O_DIRECTORY not defined // O_SYMLINK not defined +O_TMPFILE(020000000 | 00200000), +O_CLOEXEC(0x400000); private final int value; private OpenFlags(int value) { this.value = value; } public static final long MIN_VALUE = 0; diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/linux/PosixFadvise.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/linux/PosixFadvise.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/linux/PosixFadvise.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/linux/PosixFadvise.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,19 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-09-09 03:30:59 +0000 +package jnr.constants.platform.linux; +public enum PosixFadvise implements jnr.constants.Constant { +POSIX_FADV_NORMAL(0L), +POSIX_FADV_SEQUENTIAL(2L), +POSIX_FADV_RANDOM(1L), +POSIX_FADV_NOREUSE(5L), +POSIX_FADV_WILLNEED(3L), +POSIX_FADV_DONTNEED(4L); +private final long value; +private PosixFadvise(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 5L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/Locale.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/Locale.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/Locale.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/Locale.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,29 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2017-01-25 13:58:10 -0500 +package jnr.constants.platform; +public enum Locale implements jnr.constants.Constant { +LC_CTYPE, +LC_NUMERIC, +LC_TIME, +LC_COLLATE, +LC_MONETARY, +LC_MESSAGES, +LC_ALL, +LC_PAPER, +LC_NAME, +LC_ADDRESS, +LC_TELEPHONE, +LC_MEASUREMENT, +LC_IDENTIFICATION, +__UNKNOWN_CONSTANT__; +private static final ConstantResolver resolver = +ConstantResolver.getResolver(Locale.class, 20000, 29999); +public final int intValue() { return (int) resolver.longValue(this); } +public final long longValue() { return resolver.longValue(this); } +public final String description() { return resolver.description(this); } +public final boolean defined() { return resolver.defined(this); } +public final String toString() { return description(); } +public static Locale valueOf(long value) { + return resolver.valueOf(value); +} +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/openbsd/Access.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/openbsd/Access.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/openbsd/Access.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/openbsd/Access.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,17 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2017-01-26 01:11:31 -0500 +package jnr.constants.platform.openbsd; +public enum Access implements jnr.constants.Constant { +F_OK(0L), +X_OK(1L), +W_OK(2L), +R_OK(4L); +private final long value; +private Access(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 4L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/openbsd/LangInfo.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/openbsd/LangInfo.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/openbsd/LangInfo.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/openbsd/LangInfo.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,60 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2017-01-26 01:11:31 -0500 +package jnr.constants.platform.openbsd; +public enum LangInfo implements jnr.constants.Constant { +CODESET(51L), +D_T_FMT(0L), +D_FMT(1L), +T_FMT(2L), +DAY_1(6L), +DAY_2(7L), +DAY_3(8L), +DAY_4(9L), +DAY_5(10L), +DAY_6(11L), +DAY_7(12L), +ABDAY_1(13L), +ABDAY_2(14L), +ABDAY_3(15L), +ABDAY_4(16L), +ABDAY_5(17L), +ABDAY_6(18L), +ABDAY_7(19L), +MON_1(20L), +MON_2(21L), +MON_3(22L), +MON_4(23L), +MON_5(24L), +MON_6(25L), +MON_7(26L), +MON_8(27L), +MON_9(28L), +MON_10(29L), +MON_11(30L), +MON_12(31L), +ABMON_1(32L), +ABMON_2(33L), +ABMON_3(34L), +ABMON_4(35L), +ABMON_5(36L), +ABMON_6(37L), +ABMON_7(38L), +ABMON_8(39L), +ABMON_9(40L), +ABMON_10(41L), +ABMON_11(42L), +ABMON_12(43L), +RADIXCHAR(44L), +THOUSEP(45L), +YESEXPR(47L), +NOEXPR(49L), +CRNCYSTR(50L); +private final long value; +private LangInfo(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 51L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/openbsd/Locale.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/openbsd/Locale.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/openbsd/Locale.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/openbsd/Locale.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,26 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2017-01-26 01:18:04 -0500 +package jnr.constants.platform.openbsd; +public enum Locale implements jnr.constants.Constant { +LC_CTYPE(2L), +LC_NUMERIC(4L), +LC_TIME(5L), +LC_COLLATE(1L), +LC_MONETARY(3L), +LC_MESSAGES(6L), +LC_ALL(0L); +// LC_PAPER not defined +// LC_NAME not defined +// LC_ADDRESS not defined +// LC_TELEPHONE not defined +// LC_MEASUREMENT not defined +// LC_IDENTIFICATION not defined +private final long value; +private Locale(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 6L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/openbsd/OpenFlags.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/openbsd/OpenFlags.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/openbsd/OpenFlags.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/openbsd/OpenFlags.java 2017-03-24 15:28:21.000000000 +0000 @@ -20,6 +20,8 @@ // O_EVTONLY not defined // O_DIRECTORY not defined // O_SYMLINK not defined +// O_TMPFILE not defined +// O_CLOEXEC not defined private final int value; private OpenFlags(int value) { this.value = value; } public static final long MIN_VALUE = 0; diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/OpenFlags.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/OpenFlags.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/OpenFlags.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/OpenFlags.java 2017-03-24 15:28:21.000000000 +0000 @@ -22,6 +22,8 @@ O_SYMLINK, O_BINARY, O_NOCTTY, +O_TMPFILE, +O_CLOEXEC, __UNKNOWN_CONSTANT__; private static final ConstantResolver resolver = ConstantResolver.getBitmaskResolver(OpenFlags.class); diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/PosixFadvise.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/PosixFadvise.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/PosixFadvise.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/PosixFadvise.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,22 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-09-08 22:14:59 -0500 +package jnr.constants.platform; +public enum PosixFadvise implements jnr.constants.Constant { +POSIX_FADV_NORMAL, +POSIX_FADV_SEQUENTIAL, +POSIX_FADV_RANDOM, +POSIX_FADV_NOREUSE, +POSIX_FADV_WILLNEED, +POSIX_FADV_DONTNEED, +__UNKNOWN_CONSTANT__; +private static final ConstantResolver resolver = +ConstantResolver.getResolver(PosixFadvise.class, 20000, 29999); +public final int intValue() { return (int) resolver.longValue(this); } +public final long longValue() { return resolver.longValue(this); } +public final String description() { return resolver.description(this); } +public final boolean defined() { return resolver.defined(this); } +public final String toString() { return description(); } +public static PosixFadvise valueOf(long value) { + return resolver.valueOf(value); +} +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/Access.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/Access.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/Access.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/Access.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,17 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:21 -0500 +package jnr.constants.platform.solaris; +public enum Access implements jnr.constants.Constant { +F_OK(0L), +X_OK(1L), +W_OK(2L), +R_OK(4L); +private final long value; +private Access(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 4L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/AddressFamily.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/AddressFamily.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/AddressFamily.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/AddressFamily.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,55 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:21 -0500 +package jnr.constants.platform.solaris; +public enum AddressFamily implements jnr.constants.Constant { +AF_UNSPEC(0L), +AF_LOCAL(1L), +AF_UNIX(1L), +AF_INET(2L), +AF_IMPLINK(3L), +AF_PUP(4L), +AF_CHAOS(5L), +AF_NS(6L), +// AF_ISO not defined +AF_OSI(19L), +AF_ECMA(8L), +AF_DATAKIT(9L), +AF_CCITT(10L), +AF_SNA(11L), +AF_DECnet(12L), +AF_DLI(13L), +AF_LAT(14L), +AF_HYLINK(15L), +AF_APPLETALK(16L), +AF_ROUTE(24L), +AF_LINK(25L), +// pseudo_AF_XTP not defined +// AF_COIP not defined +// AF_CNT not defined +// pseudo_AF_RTIP not defined +AF_IPX(23L), +// 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(26L), +// 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(33L); +private final long value; +private AddressFamily(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 33L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/Errno.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/Errno.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/Errno.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/Errno.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,191 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:23 -0500 +package jnr.constants.platform.solaris; +public enum Errno implements jnr.constants.Constant { +EPERM(1L), +ENOENT(2L), +ESRCH(3L), +EINTR(4L), +EIO(5L), +ENXIO(6L), +E2BIG(7L), +ENOEXEC(8L), +EBADF(9L), +ECHILD(10L), +EDEADLK(45L), +ENOMEM(12L), +EACCES(13L), +EFAULT(14L), +ENOTBLK(15L), +EBUSY(16L), +EEXIST(17L), +EXDEV(18L), +ENODEV(19L), +ENOTDIR(20L), +EISDIR(21L), +EINVAL(22L), +ENFILE(23L), +EMFILE(24L), +ENOTTY(25L), +ETXTBSY(26L), +EFBIG(27L), +ENOSPC(28L), +ESPIPE(29L), +EROFS(30L), +EMLINK(31L), +EPIPE(32L), +EDOM(33L), +ERANGE(34L), +EWOULDBLOCK(11L), +EAGAIN(11L), +EINPROGRESS(150L), +EALREADY(149L), +ENOTSOCK(95L), +EDESTADDRREQ(96L), +EMSGSIZE(97L), +EPROTOTYPE(98L), +ENOPROTOOPT(99L), +EPROTONOSUPPORT(120L), +ESOCKTNOSUPPORT(121L), +EOPNOTSUPP(122L), +EPFNOSUPPORT(123L), +EAFNOSUPPORT(124L), +EADDRINUSE(125L), +EADDRNOTAVAIL(126L), +ENETDOWN(127L), +ENETUNREACH(128L), +ENETRESET(129L), +ECONNABORTED(130L), +ECONNRESET(131L), +ENOBUFS(132L), +EISCONN(133L), +ENOTCONN(134L), +ESHUTDOWN(143L), +ETOOMANYREFS(144L), +ETIMEDOUT(145L), +ECONNREFUSED(146L), +ELOOP(90L), +ENAMETOOLONG(78L), +EHOSTDOWN(147L), +EHOSTUNREACH(148L), +ENOTEMPTY(93L), +EUSERS(94L), +EDQUOT(49L), +ESTALE(151L), +EREMOTE(66L), +ENOLCK(46L), +ENOSYS(89L), +EOVERFLOW(79L), +EIDRM(36L), +ENOMSG(35L), +EILSEQ(88L), +EBADMSG(77L), +EMULTIHOP(74L), +ENODATA(61L), +ENOLINK(67L), +ENOSR(63L), +ENOSTR(60L), +EPROTO(71L), +ETIME(62L); +private final long value; +private Errno(long value) { this.value = value; } +public static final long MIN_VALUE = 1L; +public static final long MAX_VALUE = 151L; + +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 intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/Fcntl.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/Fcntl.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/Fcntl.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/Fcntl.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,45 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:22 -0500 +package jnr.constants.platform.solaris; +public enum Fcntl implements jnr.constants.Constant { +F_DUPFD(0L), +F_GETFD(1L), +F_SETFD(2L), +F_GETFL(3L), +F_SETFL(4L), +F_GETOWN(23L), +F_SETOWN(24L), +F_GETLK(33L), +F_SETLK(34L), +F_SETLKW(35L), +// 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(1L), +F_UNLCK(3L), +F_WRLCK(2L); +// F_ALLOCATECONTIG not defined +// F_ALLOCATEALL not defined +private final long value; +private Fcntl(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 35L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/INAddr.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/INAddr.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/INAddr.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/INAddr.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,21 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:22 -0500 +package jnr.constants.platform.solaris; +public enum INAddr implements jnr.constants.Constant { +INADDR_ANY(0L), +INADDR_BROADCAST(0xffffffffL), +INADDR_NONE(0xffffffffL), +INADDR_LOOPBACK(0x7f000001L), +INADDR_UNSPEC_GROUP(0xe0000000L), +INADDR_ALLHOSTS_GROUP(0xe0000001L), +INADDR_ALLRTRS_GROUP(0xe0000002L), +INADDR_MAX_LOCAL_GROUP(0xe00000ffL); +private final long value; +private INAddr(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 0xffffffffL; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/IPProto.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/IPProto.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/IPProto.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/IPProto.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,41 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:22 -0500 +package jnr.constants.platform.solaris; +public enum IPProto implements jnr.constants.Constant { +IPPROTO_IP(0L), +IPPROTO_HOPOPTS(0L), +IPPROTO_ICMP(1L), +IPPROTO_IGMP(2L), +// IPPROTO_IPIP not defined +IPPROTO_TCP(6L), +IPPROTO_EGP(8L), +IPPROTO_PUP(12L), +IPPROTO_UDP(17L), +IPPROTO_IDP(22L), +// IPPROTO_TP not defined +IPPROTO_IPV6(41L), +IPPROTO_ROUTING(43L), +IPPROTO_FRAGMENT(44L), +IPPROTO_RSVP(46L), +// IPPROTO_GRE not defined +IPPROTO_ESP(50L), +IPPROTO_AH(51L), +IPPROTO_ICMPV6(58L), +IPPROTO_NONE(59L), +IPPROTO_DSTOPTS(60L), +// IPPROTO_MTP not defined +IPPROTO_ENCAP(4L), +IPPROTO_PIM(103L), +// IPPROTO_COMP not defined +IPPROTO_SCTP(132L), +IPPROTO_RAW(255L), +IPPROTO_MAX(256L); +private final long value; +private IPProto(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 256L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/LangInfo.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/LangInfo.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/LangInfo.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/LangInfo.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,60 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:23 -0500 +package jnr.constants.platform.solaris; +public enum LangInfo implements jnr.constants.Constant { +CODESET(49L), +D_T_FMT(44L), +D_FMT(45L), +T_FMT(46L), +DAY_1(1L), +DAY_2(2L), +DAY_3(3L), +DAY_4(4L), +DAY_5(5L), +DAY_6(6L), +DAY_7(7L), +ABDAY_1(8L), +ABDAY_2(9L), +ABDAY_3(10L), +ABDAY_4(11L), +ABDAY_5(12L), +ABDAY_6(13L), +ABDAY_7(14L), +MON_1(15L), +MON_2(16L), +MON_3(17L), +MON_4(18L), +MON_5(19L), +MON_6(20L), +MON_7(21L), +MON_8(22L), +MON_9(23L), +MON_10(24L), +MON_11(25L), +MON_12(26L), +ABMON_1(27L), +ABMON_2(28L), +ABMON_3(29L), +ABMON_4(30L), +ABMON_5(31L), +ABMON_6(32L), +ABMON_7(33L), +ABMON_8(34L), +ABMON_9(35L), +ABMON_10(36L), +ABMON_11(37L), +ABMON_12(38L), +RADIXCHAR(39L), +THOUSEP(40L), +YESEXPR(56L), +NOEXPR(57L), +CRNCYSTR(43L); +private final long value; +private LangInfo(long value) { this.value = value; } +public static final long MIN_VALUE = 1L; +public static final long MAX_VALUE = 57L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/Locale.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/Locale.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/Locale.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/Locale.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,26 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2017-01-25 14:08:36 -0500 +package jnr.constants.platform.solaris; +public enum Locale implements jnr.constants.Constant { + LC_CTYPE(0L), + LC_NUMERIC(1L), + LC_TIME(2L), + LC_COLLATE(3L), + LC_MONETARY(4L), + LC_MESSAGES(5L), + LC_ALL(6L); + // LC_PAPER not defined +// LC_NAME not defined +// LC_ADDRESS not defined +// LC_TELEPHONE not defined +// LC_MEASUREMENT not defined +// LC_IDENTIFICATION not defined + private final long value; + private Locale(long value) { this.value = value; } + public static final long MIN_VALUE = 0L; + public static final long MAX_VALUE = 6L; + + public final int intValue() { return (int) value; } + public final long longValue() { return value; } + public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/NameInfo.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/NameInfo.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/NameInfo.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/NameInfo.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,21 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:22 -0500 +package jnr.constants.platform.solaris; +public enum NameInfo implements jnr.constants.Constant { +NI_MAXHOST(1025L), +NI_MAXSERV(32L), +NI_NOFQDN(1L), +NI_NUMERICHOST(2L), +NI_NAMEREQD(4L), +NI_NUMERICSERV(8L), +NI_DGRAM(16L), +NI_WITHSCOPEID(32L); +private final long value; +private NameInfo(long value) { this.value = value; } +public static final long MIN_VALUE = 1L; +public static final long MAX_VALUE = 1025L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/OpenFlags.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/OpenFlags.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/OpenFlags.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/OpenFlags.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,35 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:21 -0500 +package jnr.constants.platform.solaris; +public enum OpenFlags implements jnr.constants.Constant { +O_RDONLY(0L), +O_WRONLY(1L), +O_RDWR(2L), +O_ACCMODE(6291459L), +O_NONBLOCK(128L), +O_APPEND(8L), +O_SYNC(16L), +// O_SHLOCK not defined +// O_EXLOCK not defined +// O_ASYNC not defined +// O_FSYNC not defined +O_NOFOLLOW(131072L), +O_CREAT(256L), +O_TRUNC(512L), +O_EXCL(1024L), +// O_EVTONLY not defined +O_DIRECTORY(16777216L), +// O_SYMLINK not defined +// O_BINARY not defined +O_NOCTTY(2048L), +// O_TMPFILE not defined +O_CLOEXEC(8388608L); +private final long value; +private OpenFlags(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 16777216L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/PosixFadvise.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/PosixFadvise.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/PosixFadvise.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/PosixFadvise.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,19 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:23 -0500 +package jnr.constants.platform.solaris; +public enum PosixFadvise implements jnr.constants.Constant { +POSIX_FADV_NORMAL(0L), +POSIX_FADV_SEQUENTIAL(2L), +POSIX_FADV_RANDOM(1L), +POSIX_FADV_NOREUSE(5L), +POSIX_FADV_WILLNEED(3L), +POSIX_FADV_DONTNEED(4L); +private final long value; +private PosixFadvise(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 5L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/PRIO.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/PRIO.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/PRIO.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/PRIO.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,18 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:23 -0500 +package jnr.constants.platform.solaris; +public enum PRIO implements jnr.constants.Constant { +PRIO_PROCESS(0L), +// PRIO_MIN not defined +PRIO_PGRP(1L), +PRIO_USER(2L); +// PRIO_MAX not defined +private final long value; +private PRIO(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 2L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/ProtocolFamily.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/ProtocolFamily.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/ProtocolFamily.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/ProtocolFamily.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,52 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:20 -0500 +package jnr.constants.platform.solaris; +public enum ProtocolFamily implements jnr.constants.Constant { +PF_UNSPEC(0L), +PF_LOCAL(1L), +PF_UNIX(1L), +PF_INET(2L), +PF_IMPLINK(3L), +PF_PUP(4L), +PF_CHAOS(5L), +PF_NS(6L), +// PF_ISO not defined +PF_OSI(19L), +PF_ECMA(8L), +PF_DATAKIT(9L), +PF_CCITT(10L), +PF_SNA(11L), +PF_DECnet(12L), +PF_DLI(13L), +PF_LAT(14L), +PF_HYLINK(15L), +PF_APPLETALK(16L), +PF_ROUTE(24L), +PF_LINK(25L), +// PF_XTP not defined +// PF_COIP not defined +// PF_CNT not defined +// PF_SIP not defined +PF_IPX(23L), +// PF_RTIP not defined +// PF_PIP not defined +// PF_NDRV not defined +// PF_ISDN not defined +PF_KEY(27L), +PF_INET6(26L), +// 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(33L); +private final long value; +private ProtocolFamily(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 33L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/RLIMIT.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/RLIMIT.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/RLIMIT.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/RLIMIT.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,31 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:21 -0500 +package jnr.constants.platform.solaris; +public enum RLIMIT implements jnr.constants.Constant { +RLIMIT_AS(6L), +RLIMIT_CORE(4L), +RLIMIT_CPU(0L), +RLIMIT_DATA(2L), +RLIMIT_FSIZE(1L), +// RLIMIT_LOCKS not defined +// RLIMIT_MEMLOCK not defined +// RLIMIT_MSGQUEUE not defined +// RLIMIT_NICE not defined +// RLIMIT_NLIMITS not defined +RLIMIT_NOFILE(5L), +// 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(3L); +private final long value; +private RLIMIT(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 6L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/RLIM.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/RLIM.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/RLIM.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/RLIM.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,17 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:21 -0500 +package jnr.constants.platform.solaris; +public enum RLIM implements jnr.constants.Constant { +RLIM_NLIMITS(0x7L), +RLIM_INFINITY(0xfffffffdL), +RLIM_SAVED_MAX(0xfffffffeL), +RLIM_SAVED_CUR(0xffffffffL); +private final long value; +private RLIM(long value) { this.value = value; } +public static final long MIN_VALUE = 0x7L; +public static final long MAX_VALUE = 0xffffffffL; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/Shutdown.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/Shutdown.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/Shutdown.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/Shutdown.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,16 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:21 -0500 +package jnr.constants.platform.solaris; +public enum Shutdown implements jnr.constants.Constant { +SHUT_RD(0L), +SHUT_WR(1L), +SHUT_RDWR(2L); +private final long value; +private Shutdown(long value) { this.value = value; } +public static final long MIN_VALUE = 0L; +public static final long MAX_VALUE = 2L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/Signal.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/Signal.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/Signal.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/Signal.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,51 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:22 -0500 +package jnr.constants.platform.solaris; +public enum Signal implements jnr.constants.Constant { +SIGHUP(1L), +SIGINT(2L), +SIGQUIT(3L), +SIGILL(4L), +SIGTRAP(5L), +SIGABRT(6L), +SIGIOT(6L), +SIGBUS(10L), +SIGFPE(8L), +SIGKILL(9L), +SIGUSR1(16L), +SIGSEGV(11L), +SIGUSR2(17L), +SIGPIPE(13L), +SIGALRM(14L), +SIGTERM(15L), +// SIGSTKFLT not defined +SIGCLD(18L), +SIGCHLD(18L), +SIGCONT(25L), +SIGSTOP(23L), +SIGTSTP(24L), +SIGTTIN(26L), +SIGTTOU(27L), +SIGURG(21L), +SIGXCPU(30L), +SIGXFSZ(31L), +SIGVTALRM(28L), +SIGPROF(29L), +SIGWINCH(20L), +SIGPOLL(22L), +SIGIO(22L), +SIGPWR(19L), +SIGSYS(12L), +// SIGUNUSED not defined +SIGRTMIN(41L), +SIGRTMAX(72L), +NSIG(73L); +private final long value; +private Signal(long value) { this.value = value; } +public static final long MIN_VALUE = 1L; +public static final long MAX_VALUE = 73L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/SocketLevel.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/SocketLevel.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/SocketLevel.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/SocketLevel.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,17 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:23 -0500 +package jnr.constants.platform.solaris; +public enum SocketLevel implements jnr.constants.Constant { +SOL_SOCKET(65535L); +// SOL_IP not defined +// SOL_TCP not defined +// SOL_UDP not defined +private final long value; +private SocketLevel(long value) { this.value = value; } +public static final long MIN_VALUE = 65535L; +public static final long MAX_VALUE = 65535L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/SocketOption.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/SocketOption.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/SocketOption.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/SocketOption.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,55 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:21 -0500 +package jnr.constants.platform.solaris; +public enum SocketOption implements jnr.constants.Constant { +SO_DEBUG(0x1L), +SO_ACCEPTCONN(0x2L), +SO_REUSEADDR(0x4L), +SO_KEEPALIVE(0x8L), +SO_DONTROUTE(0x10L), +SO_BROADCAST(0x20L), +SO_USELOOPBACK(0x40L), +SO_LINGER(0x80L), +SO_OOBINLINE(0x100L), +SO_REUSEPORT(0x100eL), +SO_TIMESTAMP(0x1013L), +// SO_ACCEPTFILTER not defined +// SO_DONTTRUNC not defined +// SO_WANTMORE not defined +// SO_WANTOOBFLAG not defined +SO_SNDBUF(0x1001L), +SO_RCVBUF(0x1002L), +SO_SNDLOWAT(0x1003L), +SO_RCVLOWAT(0x1004L), +SO_SNDTIMEO(0x1005L), +SO_RCVTIMEO(0x1006L), +SO_ERROR(0x1007L), +SO_TYPE(0x1008L), +// 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(0x40000001L), +// SO_BINDTODEVICE not defined +SO_DETACH_FILTER(0x40000002L); +// 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 long value; +private SocketOption(long value) { this.value = value; } +public static final long MIN_VALUE = 0x1L; +public static final long MAX_VALUE = 0x40000002L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/Sock.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/Sock.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/Sock.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/Sock.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,19 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:20 -0500 +package jnr.constants.platform.solaris; +public enum Sock implements jnr.constants.Constant { +SOCK_STREAM(2L), +SOCK_DGRAM(1L), +SOCK_RAW(4L), +SOCK_RDM(5L), +SOCK_SEQPACKET(6L); +// SOCK_MAXADDRLEN not defined +private final long value; +private Sock(long value) { this.value = value; } +public static final long MIN_VALUE = 1L; +public static final long MAX_VALUE = 6L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/Sysconf.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/Sysconf.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/Sysconf.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/Sysconf.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,141 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:22 -0500 +package jnr.constants.platform.solaris; +public enum Sysconf implements jnr.constants.Constant { +_SC_ARG_MAX(1L), +_SC_CHILD_MAX(2L), +_SC_CLK_TCK(3L), +_SC_NGROUPS_MAX(4L), +_SC_OPEN_MAX(5L), +_SC_JOB_CONTROL(6L), +_SC_SAVED_IDS(7L), +_SC_VERSION(8L), +_SC_BC_BASE_MAX(54L), +_SC_BC_DIM_MAX(55L), +_SC_BC_SCALE_MAX(56L), +_SC_BC_STRING_MAX(57L), +_SC_COLL_WEIGHTS_MAX(58L), +_SC_EXPR_NEST_MAX(59L), +_SC_LINE_MAX(60L), +_SC_RE_DUP_MAX(61L), +_SC_2_VERSION(53L), +_SC_2_C_BIND(45L), +_SC_2_C_DEV(46L), +_SC_2_CHAR_TERM(66L), +_SC_2_FORT_DEV(48L), +_SC_2_FORT_RUN(49L), +_SC_2_LOCALEDEF(50L), +_SC_2_SW_DEV(51L), +_SC_2_UPE(52L), +_SC_STREAM_MAX(16L), +_SC_TZNAME_MAX(17L), +_SC_ASYNCHRONOUS_IO(21L), +_SC_PAGESIZE(11L), +_SC_MEMLOCK(25L), +_SC_MEMLOCK_RANGE(26L), +_SC_MEMORY_PROTECTION(27L), +_SC_MESSAGE_PASSING(28L), +_SC_PRIORITIZED_IO(31L), +_SC_PRIORITY_SCHEDULING(32L), +_SC_REALTIME_SIGNALS(33L), +_SC_SEMAPHORES(35L), +_SC_FSYNC(23L), +_SC_SHARED_MEMORY_OBJECTS(38L), +_SC_SYNCHRONIZED_IO(42L), +_SC_TIMERS(43L), +_SC_AIO_LISTIO_MAX(18L), +_SC_AIO_MAX(19L), +_SC_AIO_PRIO_DELTA_MAX(20L), +_SC_DELAYTIMER_MAX(22L), +_SC_MQ_OPEN_MAX(29L), +_SC_MAPPED_FILES(24L), +_SC_RTSIG_MAX(34L), +_SC_SEM_NSEMS_MAX(36L), +_SC_SEM_VALUE_MAX(37L), +_SC_SIGQUEUE_MAX(39L), +_SC_TIMER_MAX(44L), +_SC_NPROCESSORS_CONF(14L), +_SC_NPROCESSORS_ONLN(15L), +_SC_2_PBS(724L), +_SC_2_PBS_ACCOUNTING(725L), +_SC_2_PBS_CHECKPOINT(726L), +_SC_2_PBS_LOCATE(728L), +_SC_2_PBS_MESSAGE(729L), +_SC_2_PBS_TRACK(730L), +_SC_ADVISORY_INFO(731L), +_SC_BARRIERS(732L), +_SC_CLOCK_SELECTION(733L), +_SC_CPUTIME(734L), +// _SC_FILE_LOCKING not defined +_SC_GETGR_R_SIZE_MAX(569L), +_SC_GETPW_R_SIZE_MAX(570L), +_SC_HOST_NAME_MAX(735L), +_SC_LOGIN_NAME_MAX(571L), +_SC_MONOTONIC_CLOCK(736L), +_SC_MQ_PRIO_MAX(30L), +_SC_READER_WRITER_LOCKS(737L), +_SC_REGEXP(738L), +_SC_SHELL(739L), +_SC_SPAWN(740L), +_SC_SPIN_LOCKS(741L), +_SC_SPORADIC_SERVER(742L), +_SC_THREAD_ATTR_STACKADDR(577L), +_SC_THREAD_ATTR_STACKSIZE(578L), +_SC_THREAD_CPUTIME(745L), +_SC_THREAD_DESTRUCTOR_ITERATIONS(568L), +_SC_THREAD_KEYS_MAX(572L), +_SC_THREAD_PRIO_INHERIT(580L), +_SC_THREAD_PRIO_PROTECT(581L), +_SC_THREAD_PRIORITY_SCHEDULING(579L), +_SC_THREAD_PROCESS_SHARED(582L), +_SC_THREAD_SAFE_FUNCTIONS(583L), +_SC_THREAD_SPORADIC_SERVER(746L), +_SC_THREAD_STACK_MIN(573L), +_SC_THREAD_THREADS_MAX(574L), +_SC_TIMEOUTS(747L), +_SC_THREADS(576L), +_SC_TRACE(748L), +_SC_TRACE_EVENT_FILTER(749L), +_SC_TRACE_INHERIT(751L), +_SC_TRACE_LOG(752L), +_SC_TTY_NAME_MAX(575L), +_SC_TYPED_MEMORY_OBJECTS(756L), +_SC_V6_ILP32_OFF32(757L), +_SC_V6_ILP32_OFFBIG(758L), +_SC_V6_LP64_OFF64(759L), +_SC_V6_LPBIG_OFFBIG(760L), +_SC_IPV6(762L), +_SC_RAW_SOCKETS(763L), +_SC_SYMLOOP_MAX(744L), +_SC_ATEXIT_MAX(76L), +_SC_IOV_MAX(77L), +_SC_PAGE_SIZE(11L), +_SC_XOPEN_CRYPT(62L), +_SC_XOPEN_ENH_I18N(63L), +_SC_XOPEN_LEGACY(717L), +_SC_XOPEN_REALTIME(718L), +_SC_XOPEN_REALTIME_THREADS(719L), +_SC_XOPEN_SHM(64L), +_SC_XOPEN_STREAMS(761L), +_SC_XOPEN_UNIX(78L), +_SC_XOPEN_VERSION(12L), +_SC_XOPEN_XCU_VERSION(67L), +_SC_XBS5_ILP32_OFF32(720L), +_SC_XBS5_ILP32_OFFBIG(721L), +_SC_XBS5_LP64_OFF64(722L), +_SC_XBS5_LPBIG_OFFBIG(723L), +_SC_SS_REPL_MAX(743L), +_SC_TRACE_EVENT_NAME_MAX(750L), +_SC_TRACE_NAME_MAX(753L), +_SC_TRACE_SYS_MAX(754L), +_SC_TRACE_USER_EVENT_MAX(755L), +_SC_PASS_MAX(9L); +private final long value; +private Sysconf(long value) { this.value = value; } +public static final long MIN_VALUE = 1L; +public static final long MAX_VALUE = 763L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/TCP.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/TCP.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/TCP.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/TCP.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,29 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:21 -0500 +package jnr.constants.platform.solaris; +public enum TCP implements jnr.constants.Constant { +TCP_MSS(536L), +// 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(1L), +TCP_MAXSEG(2L), +// TCP_NOPUSH not defined +// TCP_NOOPT not defined +TCP_KEEPALIVE(8L); +// TCP_NSTATES not defined +// TCP_RETRANSHZ not defined +private final long value; +private TCP(long value) { this.value = value; } +public static final long MIN_VALUE = 1L; +public static final long MAX_VALUE = 536L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/WaitFlags.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/WaitFlags.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/solaris/WaitFlags.java 1970-01-01 00:00:00.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/solaris/WaitFlags.java 2017-03-24 15:28:21.000000000 +0000 @@ -0,0 +1,19 @@ +// WARNING: This file is autogenerated. DO NOT EDIT! +// Generated 2016-11-03 14:14:22 -0500 +package jnr.constants.platform.solaris; +public enum WaitFlags implements jnr.constants.Constant { +WNOHANG(0x40L), +WUNTRACED(0x4L), +WSTOPPED(0x4L), +WEXITED(0x1L), +WCONTINUED(0x8L), +WNOWAIT(0x80L); +private final long value; +private WaitFlags(long value) { this.value = value; } +public static final long MIN_VALUE = 0x1L; +public static final long MAX_VALUE = 0x80L; + +public final int intValue() { return (int) value; } +public final long longValue() { return value; } +public final boolean defined() { return true; } +} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/AddressFamily.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/AddressFamily.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/AddressFamily.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/AddressFamily.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,56 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:19:30 +0000 2009 -package jnr.constants.platform.sunos; -public enum AddressFamily implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/Errno.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/Errno.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/Errno.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/Errno.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,192 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:19:31 +0000 2009 -package jnr.constants.platform.sunos; -public enum Errno implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/Fcntl.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/Fcntl.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/Fcntl.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/Fcntl.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,53 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:52:41 +0000 2009 -package jnr.constants.platform.sunos; -public enum Fcntl implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/INAddr.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/INAddr.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/INAddr.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/INAddr.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:19:31 +0000 2009 -package jnr.constants.platform.sunos; -public enum INAddr implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/IPProto.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/IPProto.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/IPProto.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/IPProto.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,42 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:19:31 +0000 2009 -package jnr.constants.platform.sunos; -public enum IPProto implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/NameInfo.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/NameInfo.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/NameInfo.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/NameInfo.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:19:33 +0000 2009 -package jnr.constants.platform.sunos; -public enum NameInfo implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/OpenFlags.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/OpenFlags.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/OpenFlags.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/OpenFlags.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,32 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:52:42 +0000 2009 -package jnr.constants.platform.sunos; -public enum OpenFlags implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/PRIO.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/PRIO.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/PRIO.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/PRIO.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:19:33 +0000 2009 -package jnr.constants.platform.sunos; -public enum PRIO implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/ProtocolFamily.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/ProtocolFamily.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/ProtocolFamily.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/ProtocolFamily.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,53 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:19:32 +0000 2009 -package jnr.constants.platform.sunos; -public enum ProtocolFamily implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/RLIMIT.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/RLIMIT.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/RLIMIT.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/RLIMIT.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,32 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:19:34 +0000 2009 -package jnr.constants.platform.sunos; -public enum RLIMIT implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/RLIM.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/RLIM.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/RLIM.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/RLIM.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:19:33 +0000 2009 -package jnr.constants.platform.sunos; -public enum RLIM implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/Shutdown.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/Shutdown.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/Shutdown.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/Shutdown.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:19:32 +0000 2009 -package jnr.constants.platform.sunos; -public enum Shutdown implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/Signal.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/Signal.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/Signal.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/Signal.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,52 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:19:36 +0000 2009 -package jnr.constants.platform.sunos; -public enum Signal implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/SocketLevel.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/SocketLevel.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/SocketLevel.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/SocketLevel.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:19:34 +0000 2009 -package jnr.constants.platform.sunos; -public enum SocketLevel implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/SocketOption.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/SocketOption.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/SocketOption.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/SocketOption.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,56 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:19:33 +0000 2009 -package jnr.constants.platform.sunos; -public enum SocketOption implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/Sock.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/Sock.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/Sock.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/Sock.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,20 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:19:34 +0000 2009 -package jnr.constants.platform.sunos; -public enum Sock implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/Sysconf.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/Sysconf.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/Sysconf.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/Sysconf.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,142 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:19:35 +0000 2009 -package jnr.constants.platform.sunos; -public enum Sysconf implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/TCP.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/TCP.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/TCP.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/TCP.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,30 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:19:35 +0000 2009 -package jnr.constants.platform.sunos; -public enum TCP implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/WaitFlags.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/WaitFlags.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/sunos/WaitFlags.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/sunos/WaitFlags.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,20 +0,0 @@ -// WARNING: This file is autogenerated. DO NOT EDIT! -// Generated Mon Feb 23 23:19:36 +0000 2009 -package jnr.constants.platform.sunos; -public enum WaitFlags implements jnr.constants.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; } -public final int intValue() { return value; } -public final long longValue() { return value; } -public final boolean defined() { return true; } -} diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/platform/windows/OpenFlags.java jnr-constants-0.9.9/src/main/java/jnr/constants/platform/windows/OpenFlags.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/platform/windows/OpenFlags.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/platform/windows/OpenFlags.java 2017-03-24 15:28:21.000000000 +0000 @@ -22,6 +22,8 @@ // O_FSYNC not defined O_RDWR(2), O_TRUNC(512); +// O_TMPFILE not defined +// O_CLOEXEC not defined private final int value; private OpenFlags(int value) { this.value = value; } public static final long MIN_VALUE = 0; diff -Nru jnr-constants-0.8.6/src/main/java/jnr/constants/Platform.java jnr-constants-0.9.9/src/main/java/jnr/constants/Platform.java --- jnr-constants-0.8.6/src/main/java/jnr/constants/Platform.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/main/java/jnr/constants/Platform.java 2017-03-24 15:28:21.000000000 +0000 @@ -1,21 +1,15 @@ /* - * 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: + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package jnr.constants; @@ -54,12 +48,21 @@ return PackageNameResolver.PACKAGE_NAME; } + public static final boolean FAKE = Boolean.valueOf(System.getProperty("jnr.constants.fake", "true")); + public String[] getPackagePrefixes() { - return new String[] { - getArchPackageName(), - getOSPackageName(), - getFakePackageName(), - }; + if (FAKE) { + return new String[] { + getArchPackageName(), + getOSPackageName(), + getFakePackageName(), + }; + } else { + return new String[] { + getArchPackageName(), + getOSPackageName(), + }; + } } public String getArchPackageName() { @@ -76,6 +79,7 @@ public static final Map OS_NAMES = new HashMap() {{ put("Mac OS X", "darwin"); + put("SunOS", "solaris"); } public static final long serialVersionUID = 1L; }; diff -Nru jnr-constants-0.8.6/src/test/java/jnr/constants/DefinedTest.java jnr-constants-0.9.9/src/test/java/jnr/constants/DefinedTest.java --- jnr-constants-0.8.6/src/test/java/jnr/constants/DefinedTest.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/test/java/jnr/constants/DefinedTest.java 2017-03-24 15:28:21.000000000 +0000 @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package jnr.constants; import jnr.constants.platform.*; @@ -36,4 +50,29 @@ } Assert.assertFalse("no constants were undefined", allDefined); } + + @Test + public void testLangInfoUnix() throws Throwable { + if (!Platform.OS.equals("windows")) { + Assert.assertTrue(LangInfo.CODESET.defined()); + } + } + + @Test + public void testUndefinedConstant() throws Throwable { + if (Platform.OS.equals("linux")) { + Assert.assertFalse(AddressFamily.AF_CHAOS.defined()); + if (Platform.FAKE) { + Assert.assertTrue(AddressFamily.AF_CHAOS.intValue() >= 20000); + + } else { + try { + AddressFamily.AF_CHAOS.intValue(); + Assert.fail(); + } catch (AssertionError e) { + Assert.assertTrue(true); + } + } + } + } } diff -Nru jnr-constants-0.8.6/src/test/java/jnr/constants/ErrnoTest.java jnr-constants-0.9.9/src/test/java/jnr/constants/ErrnoTest.java --- jnr-constants-0.8.6/src/test/java/jnr/constants/ErrnoTest.java 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/src/test/java/jnr/constants/ErrnoTest.java 2017-03-24 15:28:21.000000000 +0000 @@ -1,3 +1,16 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package jnr.constants; diff -Nru jnr-constants-0.8.6/.travis.yml jnr-constants-0.9.9/.travis.yml --- jnr-constants-0.8.6/.travis.yml 2014-12-11 17:40:08.000000000 +0000 +++ jnr-constants-0.9.9/.travis.yml 2017-03-24 15:28:21.000000000 +0000 @@ -2,3 +2,6 @@ jdk: - oraclejdk7 - openjdk6 +script: + - mvn test -B + - mvn test -B -Djnr.constants.fake=false