summaryrefslogtreecommitdiff
path: root/ext/etc/etc.c
AgeCommit message (Collapse)Author
2025-07-24Revert bump versions of default gems for extconf.rb changes.nagachika
This reverts commit 91263c7e523dd0345c35ac4b616676132aad09d1.
2025-07-20bump etc-1.4.3.1nagachika
2023-12-13[ruby/etc] Bump up 1.4.3Hiroshi SHIBATA
https://github.com/ruby/etc/commit/743c26086d
2023-11-05[ruby/etc] Fix inconsistent dll linkage warningNobuyoshi Nakada
https://github.com/ruby/etc/commit/e4c71e5996
2023-10-29[ruby/etc] Start 1.4.3Nobuyoshi Nakada
https://github.com/ruby/etc/commit/a9e4d4730d
2023-07-12[ruby/etc] Declare `getlogin` even if unistd.h is not availableNobuyoshi Nakada
Although MinGW provides this header but not the function, Windows version ruby provides the function. https://github.com/ruby/etc/commit/f7fa1884fa
2023-07-12[ruby/etc] Declare `getlogin` only if unistd.h is not availableNobuyoshi Nakada
https://github.com/ruby/etc/commit/365398ea47
2023-05-29[ruby/etc] Use the correct pattern for the fallback of rb_io_descriptor()Benoit Daloze
* See https://github.com/ruby/io-console/pull/43/commits/d1d9aef45ceb14365fdf0ebee3e5ea06f27da682 https://github.com/ruby/etc/commit/5185685003
2023-05-28[ruby/etc] Remove usage of IO internals.Samuel Williams
(https://github.com/ruby/etc/pull/26) https://github.com/ruby/etc/commit/ea15eceb13
2022-12-09[ruby/etc] Bump version to 1.4.2Hiroshi SHIBATA
https://github.com/ruby/etc/commit/5cac138538
2022-12-05[ruby/etc] Bump version to 1.4.1Hiroshi SHIBATA
https://github.com/ruby/etc/commit/b3e9d9ceb0
2022-09-21getenv: is in stdlib.h卜部昌平
getenv is a very basic function that has been in stdlib.h since ISO/IEC 9899:1990. There is absolutely zero need for us to redeclare. pty.c already includes stdlib.h out of the box so we need nothing. Notes: Merged: https://github.com/ruby/ruby/pull/6358
2022-06-19[ruby/etc] [DOC] Markup constant path namesNobuyoshi Nakada
https://github.com/ruby/etc/commit/6c9a0b4e5d
2022-06-19[ruby/etc] [DOC] Markup string literalsNobuyoshi Nakada
https://github.com/ruby/etc/commit/a8801e07d1
2022-06-19[ruby/etc] [DOC] Fix reference to different moduleNobuyoshi Nakada
https://github.com/ruby/etc/commit/ea51739974
2022-06-19[ruby/etc] [DOC] UpdateNobuyoshi Nakada
System-dependent feature macros are automatically detected by extconf.rb, and are not used by users. https://github.com/ruby/etc/commit/e7343b4e69
2022-01-02[ruby/etc] Remove deprecate constants under StructNobuyoshi Nakada
https://github.com/ruby/etc/commit/143edbd215
2022-01-02[ruby/etc] bump up to 1.4.0Nobuyoshi Nakada
https://github.com/ruby/etc/commit/ca41f182f6
2022-01-02[ruby/etc] bump up to 1.3.1Nobuyoshi Nakada
https://github.com/ruby/etc/commit/82dd69a4cf
2022-01-02[ruby/etc] [DOC] Refine Etc::Passwd#passwd descriptionNobuyoshi Nakada
https://github.com/ruby/etc/commit/17b99fe42e
2022-01-02[ruby/etc] [DOC] Document Etc::Passwd and Etc::Group as classesNobuyoshi Nakada
https://github.com/ruby/etc/commit/106429f10b
2021-10-19[ruby/etc] Bump up etc version to 1.3.0Hiroshi SHIBATA
https://github.com/ruby/etc/commit/85ca541d0b
2021-10-14[ruby/etc] Get rid of alloca in the loopNobuyoshi Nakada
https://github.com/ruby/etc/commit/c989bacc4c
2021-01-11[ruby/etc] Added fallback definition of RUBY_ATOMIC_EXCHANGENobuyoshi Nakada
https://github.com/ruby/etc/commit/0c5900bd21
2021-01-11[ruby/etc] Check blocking variables at releaseNobuyoshi Nakada
https://github.com/ruby/etc/commit/f017bdfedf
2020-12-24etc: use atomic operation instead of mutexNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/3983
2020-12-23Update version for Ractor-safe extensionsHiroshi SHIBATA
2020-12-22[ruby/etc] Make Ractor safeMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3954
2020-12-22[ruby/etc] Refactor locks using mutex APIMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3954
2020-04-09Ignore upper bits of pw_change on macOS tooNobuyoshi Nakada
2020-04-09Ignore upper bits of pw_expire on macOSNobuyoshi Nakada
`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.
2020-04-08Suppress -Wshorten-64-to-32 warningsNobuyoshi Nakada
2020-04-02[ruby/etc] Deprecate names under `Struct`Nobuyoshi Nakada
https://github.com/ruby/etc/commit/25c538120c
2020-04-02Revert "[ruby/etc] Deprecate names under `Struct`"Nobuyoshi Nakada
This reverts commit 69f698d85ada116db5747873e53c597991bedff8. Again.
2020-04-02[ruby/etc] Deprecate names under `Struct`Nobuyoshi Nakada
https://github.com/ruby/etc/commit/25c538120c
2020-04-01Revert "[ruby/etc] Deprecate names under `Struct`"Nobuyoshi Nakada
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.
2020-04-01[ruby/etc] Deprecate names under `Struct`Nobuyoshi Nakada
https://github.com/ruby/etc/commit/25c538120c
2019-11-30[ruby/etc] Bump version to 1.1.0Hiroshi SHIBATA
https://github.com/ruby/etc/commit/78987ce56a
2019-11-18[ruby/etc] Remove taint supportJeremy Evans
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. Notes: Merged: https://github.com/ruby/ruby/pull/2476
2019-11-18Deprecate taint/trust and related methods, and make the methods no-opsJeremy Evans
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. Notes: Merged: https://github.com/ruby/ruby/pull/2476
2019-11-18Warn on access/modify of $SAFE, and remove effects of modifying $SAFEJeremy Evans
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. Notes: Merged: https://github.com/ruby/ruby/pull/2476
2019-08-29drop-in type check for rb_define_module_function卜部昌平
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.
2019-08-27rb_ensure now free from ANYARGS卜部昌平
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.
2019-07-10Added Etc::VERSIONNobuyoshi Nakada
2019-06-19Remove IA64 support.Samuel Williams
2017-11-07etc.c: improve docs for sysconfdirstomar
* 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
2017-10-24sysconfdir on Windowsnobu
* 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
2017-10-24Revert "sysconfdir on Windows"naruse
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
2017-10-21sysconfdir on Windowsnobu
* 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
2017-09-30ext: check if null byte is containednobu
[ruby-dev:50267] [Bug #13953] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e