aboutsummaryrefslogtreecommitdiffstats
path: root/ext/etc
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/etc] Added fallback definition of RUBY_ATOMIC_EXCHANGENobuyoshi Nakada2021-01-111-0/+9
| | | | https://github.com/ruby/etc/commit/0c5900bd21
* [ruby/etc] Check blocking variables at releaseNobuyoshi Nakada2021-01-111-2/+6
| | | | https://github.com/ruby/etc/commit/f017bdfedf
* etc: use atomic operation instead of mutexNobuyoshi Nakada2020-12-242-26/+12
|
* Update version for Ractor-safe extensionsHiroshi SHIBATA2020-12-231-1/+1
|
* [ruby/etc] Make Ractor safeMarc-Andre Lafortune2020-12-222-14/+23
|
* [ruby/etc] Refactor locks using mutex APIMarc-Andre Lafortune2020-12-221-9/+23
|
* sed -i '/rmodule.h/d'卜部昌平2020-08-271-1/+0
|
* sed -i '/r_cast.h/d'卜部昌平2020-08-271-1/+0
|
* sed -i '\,2/extern.h,d'卜部昌平2020-08-271-1/+0
|
* Update the license for the default gems to dual licensesHiroshi SHIBATA2020-08-181-1/+1
|
* sed -i 's|ruby/impl|ruby/internal|'卜部昌平2020-05-111-140/+140
| | | | To fix build failures.
* sed -i s|ruby/3|ruby/impl|g卜部昌平2020-05-111-140/+140
| | | | This shall fix compile errors.
* Ignore upper bits of pw_change on macOS tooNobuyoshi Nakada2020-04-091-4/+4
|
* Ignore upper bits of pw_expire on macOSNobuyoshi Nakada2020-04-091-1/+7
| | | | | | | | | `pw_expire` is declared as `time_t`, but actually not, and `getpwuid` returns a garbage there. Also the declaration of `struct passwd` in pwd.h and the manual page contradict each other, interal `pw_fields` is mentioned only in the latter. Maybe there is a confusion.
* Suppress -Wshorten-64-to-32 warningsNobuyoshi Nakada2020-04-081-2/+2
|
* Merge pull request #2991 from shyouhei/ruby.h卜部昌平2020-04-081-0/+152
| | | Split ruby.h
* [ruby/etc] Deprecate names under `Struct`Nobuyoshi Nakada2020-04-022-0/+13
| | | | https://github.com/ruby/etc/commit/25c538120c
* Revert "[ruby/etc] Deprecate names under `Struct`"Nobuyoshi Nakada2020-04-022-13/+0
| | | | | | This reverts commit 69f698d85ada116db5747873e53c597991bedff8. Again.
* Revert "[ruby/etc] Hack to get rid of linking against static library"Nobuyoshi Nakada2020-04-021-7/+1
| | | | | | This reverts commit 5885550c8cb80fb8784598d3af1d90823f4f6604. It didn't work without `--enable-shared`.
* [ruby/etc] Hack to get rid of linking against static libraryNobuyoshi Nakada2020-04-021-1/+7
|
* [ruby/etc] Deprecate names under `Struct`Nobuyoshi Nakada2020-04-022-0/+13
| | | | https://github.com/ruby/etc/commit/25c538120c
* Revert "[ruby/etc] Deprecate names under `Struct`"Nobuyoshi Nakada2020-04-012-13/+0
| | | | | | | | | This reverts commit 919b175afc389f8df6a3caa05ffdd28f5fc4bfca. Since 604689628dc64d050a68f1ebe5e06f9105474936, to let `try_run` work before LIBRUBY_SO is installed, `try_link` links against the static library which defines even symbols unexported in the shared library.
* [ruby/etc] Deprecate names under `Struct`Nobuyoshi Nakada2020-04-012-0/+13
| | | | https://github.com/ruby/etc/commit/25c538120c
* [ruby/etc] Drop binary gems supportNobuyoshi Nakada2020-04-011-1/+0
| | | | | | Revert "Added build:mingw" e1674c18f5a0faf881b362363f428d139baef3b4. https://github.com/ruby/etc/commit/d8f1dd85d3
* [ruby/etc] Bump version to 1.1.0Hiroshi SHIBATA2019-11-301-1/+1
| | | | https://github.com/ruby/etc/commit/78987ce56a
* [ruby/etc] Remove taint supportJeremy Evans2019-11-181-3/+4
| | | | | | | | | Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous Ruby versions. Still untaint the tmpdir object on Ruby <2.7, as returning a tainted string there could cause problems.
* Deprecate taint/trust and related methods, and make the methods no-opsJeremy Evans2019-11-181-0/+2
| | | | | | This removes the related tests, and puts the related specs behind version guards. This affects all code in lib, including some libraries that may want to support older versions of Ruby.
* Warn on access/modify of $SAFE, and remove effects of modifying $SAFEJeremy Evans2019-11-181-2/+0
| | | | | | | | | | | | | | | | | This removes the security features added by $SAFE = 1, and warns for access or modification of $SAFE from Ruby-level, as well as warning when calling all public C functions related to $SAFE. This modifies some internal functions that took a safe level argument to no longer take the argument. rb_require_safe now warns, rb_require_string has been added as a version that takes a VALUE and does not warn. One public C function that still takes a safe level argument and that this doesn't warn for is rb_eval_cmd. We may want to consider adding an alternative method that does not take a safe level argument, and warn for rb_eval_cmd.
* drop-in type check for rb_define_module_function卜部昌平2019-08-291-1/+1
| | | | | | We can check the function pointer passed to rb_define_module_function like how we do so in rb_define_method. The difference is that this changeset reveales lots of atiry mismatches.
* rb_ensure now free from ANYARGS卜部昌平2019-08-271-4/+4
| | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit deletes ANYARGS from rb_ensure, which also revealed many arity / type mismatches.
* Include ruby/assert.h in ruby/ruby.h so that assertions can be thereNobuyoshi Nakada2019-07-141-0/+1
|
* Added Etc::VERSIONNobuyoshi Nakada2019-07-102-1/+15
|
* Removed unused filesNobuyoshi Nakada2019-07-101-9/+3
|
* Remove IA64 support.Samuel Williams2019-06-191-6/+0
|
* Removed moving toplevel header since r12501nobu2019-02-081-1/+1
| | | | | | | Moving public headers was 12-years ago, no depend files would expect ruby.h in the top source directory now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Retry r65211.hsbt2018-10-201-0/+6
| | | | | | * Maybe, RbConfig.ruby only provides after Ruby installation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert "Mergr etc from github repository."hsbt2018-10-201-6/+0
| | | | | | This reverts commit a85200277921dbefc1dfc9edd9ed26e9cea009f8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Mergr etc from github repository.hsbt2018-10-201-0/+6
| | | | | | | * ext/etc/extconf.rb: It supports to generate dependency header on standalone gem with github repository. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge etc gemspec from github repository.hsbt2018-05-281-3/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Refactor ERB version checking for keyword argumentsk0kubun2018-02-271-1/+1
| | | | | | Improving code like r62590. See r62529 for details. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* erb.rb: deprecate safe_level of ERB.newk0kubun2018-02-221-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, as it's in the middle of the list of 4 arguments, 3rd and 4th arguments (trim_mode, eoutvar) are changed to keyword arguments. Old ways to specify arguments are deprecated and warned now. bin/erb: deprecate -S option. We'll remove all of deprecated ones at Ruby 2.7+. enc/make_encmake.rb: stopped using deprecated interface ext/etc/mkconstants.rb: ditto ext/socket/mkconstants.rb: ditto sample/ripper/ruby2html.rb: ditto spec/ruby/library/erb/defmethod/def_erb_method_spec.rb: ditto spec/ruby/library/erb/new_spec.rb: ditto test/erb/test_erb.rb: ditto test/erb/test_erb_command.rb: ditto tool/generic_erb.rb: ditto tool/ruby_vm/helpers/dumper.rb: ditto tool/transcode-tblgen.rb: ditto lib/rdoc/erbio.rb: ditto lib/rdoc/generator/darkfish.rb: ditto [Feature #14256] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Bump version to etc-1.0.0 as default gems.hsbt2017-12-131-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* etc.c: improve docs for sysconfdirstomar2017-11-071-3/+3
| | | | | | * ext/etc/etc.c: [DOC] small language fixes for etc_sysconfdir docs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sysconfdir on Windowsnobu2017-10-242-3/+6
| | | | | | | | | | | | | * ext/etc/etc.c (etc_sysconfdir): mentioned special case on Windows. [ruby-core:43110] [Bug #6121] * ext/etc/extconf.rb: define SYSCONFDIR only if sysconfdir is set in RbConfig::CONFIG and not empty. * win32/Makefile.sub (config.status): sysconfdir is not used on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert "sysconfdir on Windows"naruse2017-10-241-2/+1
| | | | | | | | This reverts commit r60279. This breaks mswin build: https://ci.appveyor.com/project/ruby/ruby/build/1.0.5571 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sysconfdir on Windowsnobu2017-10-211-1/+2
| | | | | | | | | | * ext/etc/etc.c (etc_sysconfdir): mentioned special case on Windows. [ruby-core:43110] [Bug #6121] * win32/Makefile.sub (config.status): sysconfdir is not used on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext: check if null byte is containednobu2017-09-301-4/+6
| | | | | | [ruby-dev:50267] [Bug #13953] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext: adjust indent [ci skip]nobu2017-09-271-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Make string literal to frozen object on gemspec of defulte gems.hsbt2017-06-191-0/+1
| | | | | | | | | | | | Added following gemspecs. * extensions: date, dbm, etc, fiddle, gdbm, sdbm, stringio, strscan, zlib * pure ruby libraries: cmath, csv, fileutils, scanf, webrick psych and rdoc is out of scope of this commit. I will merge after upstream was change to `frozen_string_literal: true`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge upstream of ruby/etc.hsbt2017-04-111-4/+16
| | | | | | | * Do not use `git ls-files` for file listing. * Fix extconf.rb path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e