@@ -1971,67 +1971,171 @@ File::SEPARATOR: String
19711971#
19721972File::Separator: String
19731973
1974+ # <!-- rdoc-file=file.c -->
1975+ # File::Constants provides file-related constants. All possible file constants
1976+ # are listed in the documentation but they may not all be present on your
1977+ # platform.
1978+ #
1979+ # If the underlying platform doesn't define a constant the corresponding Ruby
1980+ # constant is not defined.
1981+ #
1982+ # Your platform documentations (e.g. man open(2)) may describe more detailed
1983+ # information.
1984+ #
19741985module File::Constants
19751986end
19761987
1988+ # <!-- rdoc-file=file.c -->
1989+ # append on each write
1990+ #
19771991File::Constants::APPEND: Integer
19781992
1993+ # <!-- rdoc-file=file.c -->
1994+ # disable line code conversion
1995+ #
19791996File::Constants::BINARY: Integer
19801997
1998+ # <!-- rdoc-file=file.c -->
1999+ # create file if it does not exist
2000+ #
19812001File::Constants::CREAT: Integer
19822002
2003+ # <!-- rdoc-file=file.c -->
2004+ # Try to minimize cache effects of the I/O to and from this file.
2005+ #
19832006File::Constants::DIRECT: Integer
19842007
2008+ # <!-- rdoc-file=file.c -->
2009+ # any write operation perform synchronously except some meta data
2010+ #
19852011File::Constants::DSYNC: Integer
19862012
2013+ # <!-- rdoc-file=file.c -->
2014+ # error if CREAT and the file exists
2015+ #
19872016File::Constants::EXCL: Integer
19882017
2018+ # <!-- rdoc-file=dir.c -->
2019+ # Makes File.fnmatch patterns case insensitive (but not Dir.glob patterns).
2020+ #
19892021File::Constants::FNM_CASEFOLD: Integer
19902022
2023+ # <!-- rdoc-file=dir.c -->
2024+ # The '*' wildcard matches filenames starting with "." in File.fnmatch and
2025+ # Dir.glob patterns
2026+ #
19912027File::Constants::FNM_DOTMATCH: Integer
19922028
2029+ # <!-- rdoc-file=dir.c -->
2030+ # Allows file globbing through "{a,b}" in File.fnmatch patterns.
2031+ #
19932032File::Constants::FNM_EXTGLOB: Integer
19942033
2034+ # <!-- rdoc-file=dir.c -->
2035+ # Disables escapes in File.fnmatch and Dir.glob patterns
2036+ #
19952037File::Constants::FNM_NOESCAPE: Integer
19962038
2039+ # <!-- rdoc-file=dir.c -->
2040+ # Wildcards in File.fnmatch and Dir.glob patterns do not match directory
2041+ # separators
2042+ #
19972043File::Constants::FNM_PATHNAME: Integer
19982044
2045+ # <!-- rdoc-file=dir.c -->
2046+ # Makes patterns to match short names if existing. Valid only on Microsoft
2047+ # Windows.
2048+ #
19992049File::Constants::FNM_SHORTNAME: Integer
20002050
2051+ # <!-- rdoc-file=dir.c -->
2052+ # System default case insensitiveness, equals to FNM_CASEFOLD or 0.
2053+ #
20012054File::Constants::FNM_SYSCASE: Integer
20022055
2056+ # <!-- rdoc-file=file.c -->
2057+ # exclusive lock. see File#flock
2058+ #
20032059File::Constants::LOCK_EX: Integer
20042060
2061+ # <!-- rdoc-file=file.c -->
2062+ # non-blocking lock. used with LOCK_SH or LOCK_EX. see File#flock
2063+ #
20052064File::Constants::LOCK_NB: Integer
20062065
2066+ # <!-- rdoc-file=file.c -->
2067+ # shared lock. see File#flock
2068+ #
20072069File::Constants::LOCK_SH: Integer
20082070
2071+ # <!-- rdoc-file=file.c -->
2072+ # unlock. see File#flock
2073+ #
20092074File::Constants::LOCK_UN: Integer
20102075
2076+ # <!-- rdoc-file=file.c -->
2077+ # do not change atime
2078+ #
20112079File::Constants::NOATIME: Integer
20122080
2081+ # <!-- rdoc-file=file.c -->
2082+ # not to make opened IO the controlling terminal device
2083+ #
20132084File::Constants::NOCTTY: Integer
20142085
2086+ # <!-- rdoc-file=file.c -->
2087+ # do not follow symlinks
2088+ #
20152089File::Constants::NOFOLLOW: Integer
20162090
2091+ # <!-- rdoc-file=file.c -->
2092+ # do not block on open or for data to become available
2093+ #
20172094File::Constants::NONBLOCK: Integer
20182095
2096+ # <!-- rdoc-file=file.c -->
2097+ # Name of the null device
2098+ #
20192099File::Constants::NULL: String
20202100
2101+ # <!-- rdoc-file=file.c -->
2102+ # open for reading only
2103+ #
20212104File::Constants::RDONLY: Integer
20222105
2106+ # <!-- rdoc-file=file.c -->
2107+ # open for reading and writing
2108+ #
20232109File::Constants::RDWR: Integer
20242110
2111+ # <!-- rdoc-file=file.c -->
2112+ # any read operation perform synchronously. used with SYNC or DSYNC.
2113+ #
20252114File::Constants::RSYNC: Integer
20262115
2116+ # <!-- rdoc-file=file.c -->
2117+ # can delete opened file
2118+ #
20272119File::Constants::SHARE_DELETE: Integer
20282120
2121+ # <!-- rdoc-file=file.c -->
2122+ # any write operation perform synchronously
2123+ #
20292124File::Constants::SYNC: Integer
20302125
2126+ # <!-- rdoc-file=file.c -->
2127+ # Create an unnamed temporary file
2128+ #
20312129File::Constants::TMPFILE: Integer
20322130
2131+ # <!-- rdoc-file=file.c -->
2132+ # truncate size to 0
2133+ #
20332134File::Constants::TRUNC: Integer
20342135
2136+ # <!-- rdoc-file=file.c -->
2137+ # open for writing only
2138+ #
20352139File::Constants::WRONLY: Integer
20362140
20372141# <!-- rdoc-file=file.c -->
0 commit comments