rbs 2.5.1 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/comments.yml +1 -1
  3. data/.github/workflows/ruby.yml +3 -3
  4. data/CHANGELOG.md +44 -0
  5. data/Gemfile.lock +5 -5
  6. data/Rakefile +6 -38
  7. data/Steepfile +6 -2
  8. data/core/constants.rbs +1 -1
  9. data/core/env.rbs +1 -1323
  10. data/core/global_variables.rbs +1 -1
  11. data/core/hash.rbs +3 -3
  12. data/core/kernel.rbs +2 -2
  13. data/core/random.rbs +5 -220
  14. data/core/rational.rbs +3 -3
  15. data/core/rbs/unnamed/argf.rbs +965 -0
  16. data/core/rbs/unnamed/env_class.rbs +1325 -0
  17. data/core/rbs/unnamed/random.rbs +270 -0
  18. data/core/regexp.rbs +2 -3
  19. data/docs/CONTRIBUTING.md +2 -2
  20. data/ext/rbs_extension/lexer.c +1343 -1353
  21. data/ext/rbs_extension/lexer.re +2 -2
  22. data/ext/rbs_extension/rbs_extension.h +1 -1
  23. data/ext/rbs_extension/unescape.c +17 -10
  24. data/lib/rbs/ast/members.rb +6 -3
  25. data/lib/rbs/cli.rb +2 -0
  26. data/lib/rbs/factory.rb +2 -0
  27. data/lib/rbs/prototype/helpers.rb +1 -5
  28. data/lib/rbs/prototype/rb.rb +105 -56
  29. data/lib/rbs/prototype/rbi.rb +65 -30
  30. data/lib/rbs/prototype/runtime.rb +4 -3
  31. data/lib/rbs/test/setup_helper.rb +6 -1
  32. data/lib/rbs/version.rb +1 -1
  33. data/schema/members.json +4 -1
  34. data/sig/collection/config.rbs +3 -0
  35. data/sig/factory.rbs +5 -0
  36. data/sig/prototype/helpers.rbs +23 -0
  37. data/sig/prototype/rb.rbs +84 -0
  38. data/sig/prototype/rbi.rbs +73 -0
  39. data/sig/shims/abstract_syntax_tree.rbs +25 -0
  40. data/sig/shims/enumerable.rbs +5 -0
  41. data/sig/shims/pp.rbs +3 -0
  42. data/sig/shims/ripper.rbs +8 -0
  43. data/stdlib/cgi/0/manifest.yaml +2 -0
  44. data/stdlib/date/0/time.rbs +26 -0
  45. data/stdlib/etc/0/etc.rbs +745 -0
  46. data/stdlib/minitest/0/kernel.rbs +42 -0
  47. data/stdlib/minitest/0/manifest.yaml +2 -0
  48. data/stdlib/minitest/0/minitest/abstract_reporter.rbs +49 -0
  49. data/stdlib/minitest/0/minitest/assertion.rbs +16 -0
  50. data/stdlib/minitest/0/minitest/assertions.rbs +545 -0
  51. data/stdlib/minitest/0/minitest/backtrace_filter.rbs +16 -0
  52. data/stdlib/minitest/0/minitest/bench_spec.rbs +102 -0
  53. data/stdlib/minitest/0/minitest/benchmark.rbs +258 -0
  54. data/stdlib/minitest/0/minitest/composite_reporter.rbs +25 -0
  55. data/stdlib/minitest/0/minitest/expectation.rbs +2 -0
  56. data/stdlib/minitest/0/minitest/expectations.rbs +21 -0
  57. data/stdlib/minitest/0/minitest/guard.rbs +64 -0
  58. data/stdlib/minitest/0/minitest/mock.rbs +60 -0
  59. data/stdlib/minitest/0/minitest/parallel/executor.rbs +42 -0
  60. data/stdlib/minitest/0/minitest/parallel/test/class_methods.rbs +6 -0
  61. data/stdlib/minitest/0/minitest/parallel/test.rbs +3 -0
  62. data/stdlib/minitest/0/minitest/parallel.rbs +2 -0
  63. data/stdlib/minitest/0/minitest/pride_io.rbs +54 -0
  64. data/stdlib/minitest/0/minitest/pride_lol.rbs +17 -0
  65. data/stdlib/minitest/0/minitest/progress_reporter.rbs +11 -0
  66. data/stdlib/minitest/0/minitest/reportable.rbs +51 -0
  67. data/stdlib/minitest/0/minitest/reporter.rbs +5 -0
  68. data/stdlib/minitest/0/minitest/result.rbs +28 -0
  69. data/stdlib/minitest/0/minitest/runnable.rbs +131 -0
  70. data/stdlib/minitest/0/minitest/skip.rbs +6 -0
  71. data/stdlib/minitest/0/minitest/spec/dsl/instance_methods.rbs +48 -0
  72. data/stdlib/minitest/0/minitest/spec/dsl.rbs +125 -0
  73. data/stdlib/minitest/0/minitest/spec.rbs +11 -0
  74. data/stdlib/minitest/0/minitest/statistics_reporter.rbs +76 -0
  75. data/stdlib/minitest/0/minitest/summary_reporter.rbs +25 -0
  76. data/stdlib/minitest/0/minitest/test/lifecycle_hooks.rbs +92 -0
  77. data/stdlib/minitest/0/minitest/test.rbs +76 -0
  78. data/stdlib/minitest/0/minitest/unexpected_error.rbs +10 -0
  79. data/stdlib/minitest/0/minitest/unit/test_case.rbs +3 -0
  80. data/stdlib/minitest/0/minitest/unit.rbs +5 -0
  81. data/stdlib/minitest/0/minitest.rbs +966 -0
  82. data/stdlib/rubygems/0/errors.rbs +113 -0
  83. metadata +54 -4
  84. data/lib/rbs/char_scanner.rb +0 -20
@@ -0,0 +1,745 @@
1
+ # <!-- rdoc-file=ext/etc/etc.c -->
2
+ # The Etc module provides access to information typically stored in files in the
3
+ # /etc directory on Unix systems.
4
+ #
5
+ # The information accessible consists of the information found in the
6
+ # /etc/passwd and /etc/group files, plus information about the system's
7
+ # temporary directory (/tmp) and configuration directory (/etc).
8
+ #
9
+ # The Etc module provides a more reliable way to access information about the
10
+ # logged in user than environment variables such as +$USER+.
11
+ #
12
+ # ## Example:
13
+ #
14
+ # require 'etc'
15
+ #
16
+ # login = Etc.getlogin
17
+ # info = Etc.getpwnam(login)
18
+ # username = info.gecos.split(/,/).first
19
+ # puts "Hello #{username}, I see your login name is #{login}"
20
+ #
21
+ # Note that the methods provided by this module are not always secure. It should
22
+ # be used for informational purposes, and not for security.
23
+ #
24
+ # All operations defined in this module are class methods, so that you can
25
+ # include the Etc module into your class.
26
+ #
27
+ module Etc
28
+ # <!--
29
+ # rdoc-file=ext/etc/etc.c
30
+ # - confstr(p1)
31
+ # -->
32
+ # Returns system configuration variable using confstr().
33
+ #
34
+ # *name* should be a constant under `Etc` which begins with `CS_`.
35
+ #
36
+ # The return value is a string or nil. nil means no configuration-defined value.
37
+ # (confstr() returns 0 but errno is not set.)
38
+ #
39
+ # Etc.confstr(Etc::CS_PATH) #=> "/bin:/usr/bin"
40
+ #
41
+ # # GNU/Linux
42
+ # Etc.confstr(Etc::CS_GNU_LIBC_VERSION) #=> "glibc 2.18"
43
+ # Etc.confstr(Etc::CS_GNU_LIBPTHREAD_VERSION) #=> "NPTL 2.18"
44
+ #
45
+ def self?.confstr: (::Integer p1) -> ::String?
46
+
47
+ # <!--
48
+ # rdoc-file=ext/etc/etc.c
49
+ # - endgrent()
50
+ # -->
51
+ # Ends the process of scanning through the /etc/group file begun by ::getgrent,
52
+ # and closes the file.
53
+ #
54
+ def self?.endgrent: () -> void
55
+
56
+ # <!--
57
+ # rdoc-file=ext/etc/etc.c
58
+ # - endpwent()
59
+ # -->
60
+ # Ends the process of scanning through the /etc/passwd file begun with
61
+ # ::getpwent, and closes the file.
62
+ #
63
+ def self?.endpwent: () -> void
64
+
65
+ # <!--
66
+ # rdoc-file=ext/etc/etc.c
67
+ # - getgrent()
68
+ # -->
69
+ # Returns an entry from the /etc/group file.
70
+ #
71
+ # The first time it is called it opens the file and returns the first entry;
72
+ # each successive call returns the next entry, or `nil` if the end of the file
73
+ # has been reached.
74
+ #
75
+ # To close the file when processing is complete, call ::endgrent.
76
+ #
77
+ # Each entry is returned as a Group struct
78
+ #
79
+ def self?.getgrent: () -> ::Etc::Group?
80
+
81
+ # <!--
82
+ # rdoc-file=ext/etc/etc.c
83
+ # - getgrgid(group_id) -> Group
84
+ # -->
85
+ # Returns information about the group with specified integer `group_id`, as
86
+ # found in /etc/group.
87
+ #
88
+ # The information is returned as a Group struct.
89
+ #
90
+ # See the unix manpage for `getgrgid(3)` for more detail.
91
+ #
92
+ # ### Example:
93
+ #
94
+ # Etc.getgrgid(100)
95
+ # #=> #<struct Etc::Group name="users", passwd="x", gid=100, mem=["meta", "root"]>
96
+ #
97
+ def self?.getgrgid: (?::Integer group_id) -> ::Etc::Group
98
+
99
+ # <!--
100
+ # rdoc-file=ext/etc/etc.c
101
+ # - getgrnam(name) -> Group
102
+ # -->
103
+ # Returns information about the group with specified `name`, as found in
104
+ # /etc/group.
105
+ #
106
+ # The information is returned as a Group struct.
107
+ #
108
+ # See the unix manpage for `getgrnam(3)` for more detail.
109
+ #
110
+ # ### Example:
111
+ #
112
+ # Etc.getgrnam('users')
113
+ # #=> #<struct Etc::Group name="users", passwd="x", gid=100, mem=["meta", "root"]>
114
+ #
115
+ def self?.getgrnam: (::String name) -> ::Etc::Group
116
+
117
+ # <!--
118
+ # rdoc-file=ext/etc/etc.c
119
+ # - getlogin -> String
120
+ # -->
121
+ # Returns the short user name of the currently logged in user. Unfortunately, it
122
+ # is often rather easy to fool ::getlogin.
123
+ #
124
+ # Avoid ::getlogin for security-related purposes.
125
+ #
126
+ # If ::getlogin fails, try ::getpwuid.
127
+ #
128
+ # See the unix manpage for `getpwuid(3)` for more detail.
129
+ #
130
+ # e.g.
131
+ # Etc.getlogin -> 'guest'
132
+ #
133
+ def self?.getlogin: () -> ::String?
134
+
135
+ # <!--
136
+ # rdoc-file=ext/etc/etc.c
137
+ # - getpwent()
138
+ # -->
139
+ # Returns an entry from the /etc/passwd file.
140
+ #
141
+ # The first time it is called it opens the file and returns the first entry;
142
+ # each successive call returns the next entry, or `nil` if the end of the file
143
+ # has been reached.
144
+ #
145
+ # To close the file when processing is complete, call ::endpwent.
146
+ #
147
+ # Each entry is returned as a Passwd struct.
148
+ #
149
+ def self?.getpwent: () -> ::Etc::Passwd?
150
+
151
+ # <!--
152
+ # rdoc-file=ext/etc/etc.c
153
+ # - getpwnam(name) -> Passwd
154
+ # -->
155
+ # Returns the /etc/passwd information for the user with specified login `name`.
156
+ #
157
+ # The information is returned as a Passwd struct.
158
+ #
159
+ # See the unix manpage for `getpwnam(3)` for more detail.
160
+ #
161
+ # ### Example:
162
+ #
163
+ # Etc.getpwnam('root')
164
+ # #=> #<struct Etc::Passwd name="root", passwd="x", uid=0, gid=0, gecos="root",dir="/root", shell="/bin/bash">
165
+ #
166
+ def self?.getpwnam: (::String name) -> ::Etc::Passwd
167
+
168
+ # <!--
169
+ # rdoc-file=ext/etc/etc.c
170
+ # - getpwuid(uid) -> Passwd
171
+ # -->
172
+ # Returns the /etc/passwd information for the user with the given integer `uid`.
173
+ #
174
+ # The information is returned as a Passwd struct.
175
+ #
176
+ # If `uid` is omitted, the value from `Passwd[:uid]` is returned instead.
177
+ #
178
+ # See the unix manpage for `getpwuid(3)` for more detail.
179
+ #
180
+ # ### Example:
181
+ #
182
+ # Etc.getpwuid(0)
183
+ # #=> #<struct Etc::Passwd name="root", passwd="x", uid=0, gid=0, gecos="root",dir="/root", shell="/bin/bash">
184
+ #
185
+ def self?.getpwuid: (?::Integer uid) -> ::Etc::Passwd
186
+
187
+ # <!--
188
+ # rdoc-file=ext/etc/etc.c
189
+ # - group()
190
+ # -->
191
+ # Provides a convenient Ruby iterator which executes a block for each entry in
192
+ # the /etc/group file.
193
+ #
194
+ # The code block is passed an Group struct.
195
+ #
196
+ # See ::getgrent above for details.
197
+ #
198
+ # Example:
199
+ #
200
+ # require 'etc'
201
+ #
202
+ # Etc.group {|g|
203
+ # puts g.name + ": " + g.mem.join(', ')
204
+ # }
205
+ #
206
+ def self?.group: () { (::Etc::Group group) -> void } -> void
207
+ | () -> ::Etc::Group?
208
+
209
+ # <!--
210
+ # rdoc-file=ext/etc/etc.c
211
+ # - nprocessors()
212
+ # -->
213
+ # Returns the number of online processors.
214
+ #
215
+ # The result is intended as the number of processes to use all available
216
+ # processors.
217
+ #
218
+ # This method is implemented using:
219
+ # * sched_getaffinity(): Linux
220
+ # * sysconf(_SC_NPROCESSORS_ONLN): GNU/Linux, NetBSD, FreeBSD, OpenBSD,
221
+ # DragonFly BSD, OpenIndiana, Mac OS X, AIX
222
+ #
223
+ #
224
+ # Example:
225
+ #
226
+ # require 'etc'
227
+ # p Etc.nprocessors #=> 4
228
+ #
229
+ # The result might be smaller number than physical cpus especially when ruby
230
+ # process is bound to specific cpus. This is intended for getting better
231
+ # parallel processing.
232
+ #
233
+ # Example: (Linux)
234
+ #
235
+ # linux$ taskset 0x3 ./ruby -retc -e "p Etc.nprocessors" #=> 2
236
+ #
237
+ def self?.nprocessors: () -> ::Integer
238
+
239
+ # <!--
240
+ # rdoc-file=ext/etc/etc.c
241
+ # - Etc.passwd { |struct| block } -> Passwd
242
+ # - Etc.passwd -> Passwd
243
+ # -->
244
+ # Provides a convenient Ruby iterator which executes a block for each entry in
245
+ # the /etc/passwd file.
246
+ #
247
+ # The code block is passed an Passwd struct.
248
+ #
249
+ # See ::getpwent above for details.
250
+ #
251
+ # Example:
252
+ #
253
+ # require 'etc'
254
+ #
255
+ # Etc.passwd {|u|
256
+ # puts u.name + " = " + u.gecos
257
+ # }
258
+ #
259
+ def self?.passwd: () { (::Etc::Passwd passwd) -> void } -> void
260
+ | () -> ::Etc::Passwd?
261
+
262
+ # <!--
263
+ # rdoc-file=ext/etc/etc.c
264
+ # - setgrent()
265
+ # -->
266
+ # Resets the process of reading the /etc/group file, so that the next call to
267
+ # ::getgrent will return the first entry again.
268
+ #
269
+ def self?.setgrent: () -> void
270
+
271
+ # <!--
272
+ # rdoc-file=ext/etc/etc.c
273
+ # - setpwent()
274
+ # -->
275
+ # Resets the process of reading the /etc/passwd file, so that the next call to
276
+ # ::getpwent will return the first entry again.
277
+ #
278
+ def self?.setpwent: () -> void
279
+
280
+ # <!--
281
+ # rdoc-file=ext/etc/etc.c
282
+ # - sysconf(p1)
283
+ # -->
284
+ # Returns system configuration variable using sysconf().
285
+ #
286
+ # *name* should be a constant under `Etc` which begins with `SC_`.
287
+ #
288
+ # The return value is an integer or nil. nil means indefinite limit. (sysconf()
289
+ # returns -1 but errno is not set.)
290
+ #
291
+ # Etc.sysconf(Etc::SC_ARG_MAX) #=> 2097152
292
+ # Etc.sysconf(Etc::SC_LOGIN_NAME_MAX) #=> 256
293
+ #
294
+ def self?.sysconf: (::Integer p1) -> ::Integer
295
+
296
+ # <!--
297
+ # rdoc-file=ext/etc/etc.c
298
+ # - sysconfdir()
299
+ # -->
300
+ # Returns system configuration directory.
301
+ #
302
+ # This is typically "/etc", but is modified by the prefix used when Ruby was
303
+ # compiled. For example, if Ruby is built and installed in /usr/local, returns
304
+ # "/usr/local/etc" on other platforms than Windows. On Windows, this always
305
+ # returns the directory provided by the system.
306
+ #
307
+ def self?.sysconfdir: () -> ::String
308
+
309
+ # <!--
310
+ # rdoc-file=ext/etc/etc.c
311
+ # - systmpdir()
312
+ # -->
313
+ # Returns system temporary directory; typically "/tmp".
314
+ #
315
+ def self?.systmpdir: () -> ::String
316
+
317
+ # <!--
318
+ # rdoc-file=ext/etc/etc.c
319
+ # - uname()
320
+ # -->
321
+ # Returns the system information obtained by uname system call.
322
+ #
323
+ # The return value is a hash which has 5 keys at least:
324
+ # :sysname, :nodename, :release, :version, :machine
325
+ #
326
+ # Example:
327
+ #
328
+ # require 'etc'
329
+ # require 'pp'
330
+ #
331
+ # pp Etc.uname
332
+ # #=> {:sysname=>"Linux",
333
+ # # :nodename=>"boron",
334
+ # # :release=>"2.6.18-6-xen-686",
335
+ # # :version=>"#1 SMP Thu Nov 5 19:54:42 UTC 2009",
336
+ # # :machine=>"i686"}
337
+ #
338
+ def self?.uname: () -> { sysname: ::String, nodename: ::String, release: ::String, version: ::String, machine: ::String }
339
+
340
+ private
341
+
342
+ CS_PATH: Integer
343
+
344
+ CS_POSIX_V6_ILP32_OFF32_CFLAGS: Integer
345
+
346
+ CS_POSIX_V6_ILP32_OFF32_LDFLAGS: Integer
347
+
348
+ CS_POSIX_V6_ILP32_OFF32_LIBS: Integer
349
+
350
+ CS_POSIX_V6_ILP32_OFFBIG_CFLAGS: Integer
351
+
352
+ CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS: Integer
353
+
354
+ CS_POSIX_V6_ILP32_OFFBIG_LIBS: Integer
355
+
356
+ CS_POSIX_V6_LP64_OFF64_CFLAGS: Integer
357
+
358
+ CS_POSIX_V6_LP64_OFF64_LDFLAGS: Integer
359
+
360
+ CS_POSIX_V6_LP64_OFF64_LIBS: Integer
361
+
362
+ CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS: Integer
363
+
364
+ CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS: Integer
365
+
366
+ CS_POSIX_V6_LPBIG_OFFBIG_LIBS: Integer
367
+
368
+ CS_POSIX_V6_WIDTH_RESTRICTED_ENVS: Integer
369
+
370
+ PC_2_SYMLINKS: Integer
371
+
372
+ PC_ALLOC_SIZE_MIN: Integer
373
+
374
+ PC_ASYNC_IO: Integer
375
+
376
+ PC_CHOWN_RESTRICTED: Integer
377
+
378
+ PC_FILESIZEBITS: Integer
379
+
380
+ PC_LINK_MAX: Integer
381
+
382
+ PC_MAX_CANON: Integer
383
+
384
+ PC_MAX_INPUT: Integer
385
+
386
+ PC_NAME_MAX: Integer
387
+
388
+ PC_NO_TRUNC: Integer
389
+
390
+ PC_PATH_MAX: Integer
391
+
392
+ PC_PIPE_BUF: Integer
393
+
394
+ PC_PRIO_IO: Integer
395
+
396
+ PC_REC_INCR_XFER_SIZE: Integer
397
+
398
+ PC_REC_MAX_XFER_SIZE: Integer
399
+
400
+ PC_REC_MIN_XFER_SIZE: Integer
401
+
402
+ PC_REC_XFER_ALIGN: Integer
403
+
404
+ PC_SYMLINK_MAX: Integer
405
+
406
+ PC_SYNC_IO: Integer
407
+
408
+ PC_VDISABLE: Integer
409
+
410
+ SC_2_CHAR_TERM: Integer
411
+
412
+ SC_2_C_BIND: Integer
413
+
414
+ SC_2_C_DEV: Integer
415
+
416
+ SC_2_FORT_DEV: Integer
417
+
418
+ SC_2_FORT_RUN: Integer
419
+
420
+ SC_2_LOCALEDEF: Integer
421
+
422
+ SC_2_PBS: Integer
423
+
424
+ SC_2_PBS_ACCOUNTING: Integer
425
+
426
+ SC_2_PBS_CHECKPOINT: Integer
427
+
428
+ SC_2_PBS_LOCATE: Integer
429
+
430
+ SC_2_PBS_MESSAGE: Integer
431
+
432
+ SC_2_PBS_TRACK: Integer
433
+
434
+ SC_2_SW_DEV: Integer
435
+
436
+ SC_2_UPE: Integer
437
+
438
+ SC_2_VERSION: Integer
439
+
440
+ SC_ADVISORY_INFO: Integer
441
+
442
+ SC_AIO_LISTIO_MAX: Integer
443
+
444
+ SC_AIO_MAX: Integer
445
+
446
+ SC_AIO_PRIO_DELTA_MAX: Integer
447
+
448
+ SC_ARG_MAX: Integer
449
+
450
+ SC_ASYNCHRONOUS_IO: Integer
451
+
452
+ SC_ATEXIT_MAX: Integer
453
+
454
+ SC_BARRIERS: Integer
455
+
456
+ SC_BC_BASE_MAX: Integer
457
+
458
+ SC_BC_DIM_MAX: Integer
459
+
460
+ SC_BC_SCALE_MAX: Integer
461
+
462
+ SC_BC_STRING_MAX: Integer
463
+
464
+ SC_CHILD_MAX: Integer
465
+
466
+ SC_CLK_TCK: Integer
467
+
468
+ SC_CLOCK_SELECTION: Integer
469
+
470
+ SC_COLL_WEIGHTS_MAX: Integer
471
+
472
+ SC_CPUTIME: Integer
473
+
474
+ SC_DELAYTIMER_MAX: Integer
475
+
476
+ SC_EXPR_NEST_MAX: Integer
477
+
478
+ SC_FSYNC: Integer
479
+
480
+ SC_GETGR_R_SIZE_MAX: Integer
481
+
482
+ SC_GETPW_R_SIZE_MAX: Integer
483
+
484
+ SC_HOST_NAME_MAX: Integer
485
+
486
+ SC_IOV_MAX: Integer
487
+
488
+ SC_IPV6: Integer
489
+
490
+ SC_JOB_CONTROL: Integer
491
+
492
+ SC_LINE_MAX: Integer
493
+
494
+ SC_LOGIN_NAME_MAX: Integer
495
+
496
+ SC_MAPPED_FILES: Integer
497
+
498
+ SC_MEMLOCK: Integer
499
+
500
+ SC_MEMLOCK_RANGE: Integer
501
+
502
+ SC_MEMORY_PROTECTION: Integer
503
+
504
+ SC_MESSAGE_PASSING: Integer
505
+
506
+ SC_MONOTONIC_CLOCK: Integer
507
+
508
+ SC_MQ_OPEN_MAX: Integer
509
+
510
+ SC_MQ_PRIO_MAX: Integer
511
+
512
+ SC_NGROUPS_MAX: Integer
513
+
514
+ SC_NPROCESSORS_CONF: Integer
515
+
516
+ SC_NPROCESSORS_ONLN: Integer
517
+
518
+ SC_OPEN_MAX: Integer
519
+
520
+ SC_PAGESIZE: Integer
521
+
522
+ SC_PAGE_SIZE: Integer
523
+
524
+ SC_PHYS_PAGES: Integer
525
+
526
+ SC_PRIORITIZED_IO: Integer
527
+
528
+ SC_PRIORITY_SCHEDULING: Integer
529
+
530
+ SC_RAW_SOCKETS: Integer
531
+
532
+ SC_READER_WRITER_LOCKS: Integer
533
+
534
+ SC_REALTIME_SIGNALS: Integer
535
+
536
+ SC_REGEXP: Integer
537
+
538
+ SC_RE_DUP_MAX: Integer
539
+
540
+ SC_RTSIG_MAX: Integer
541
+
542
+ SC_SAVED_IDS: Integer
543
+
544
+ SC_SEMAPHORES: Integer
545
+
546
+ SC_SEM_NSEMS_MAX: Integer
547
+
548
+ SC_SEM_VALUE_MAX: Integer
549
+
550
+ SC_SHARED_MEMORY_OBJECTS: Integer
551
+
552
+ SC_SHELL: Integer
553
+
554
+ SC_SIGQUEUE_MAX: Integer
555
+
556
+ SC_SPAWN: Integer
557
+
558
+ SC_SPIN_LOCKS: Integer
559
+
560
+ SC_SPORADIC_SERVER: Integer
561
+
562
+ SC_SS_REPL_MAX: Integer
563
+
564
+ SC_STREAM_MAX: Integer
565
+
566
+ SC_SYMLOOP_MAX: Integer
567
+
568
+ SC_SYNCHRONIZED_IO: Integer
569
+
570
+ SC_THREADS: Integer
571
+
572
+ SC_THREAD_ATTR_STACKADDR: Integer
573
+
574
+ SC_THREAD_ATTR_STACKSIZE: Integer
575
+
576
+ SC_THREAD_CPUTIME: Integer
577
+
578
+ SC_THREAD_DESTRUCTOR_ITERATIONS: Integer
579
+
580
+ SC_THREAD_KEYS_MAX: Integer
581
+
582
+ SC_THREAD_PRIORITY_SCHEDULING: Integer
583
+
584
+ SC_THREAD_PRIO_INHERIT: Integer
585
+
586
+ SC_THREAD_PRIO_PROTECT: Integer
587
+
588
+ SC_THREAD_PROCESS_SHARED: Integer
589
+
590
+ SC_THREAD_SAFE_FUNCTIONS: Integer
591
+
592
+ SC_THREAD_SPORADIC_SERVER: Integer
593
+
594
+ SC_THREAD_STACK_MIN: Integer
595
+
596
+ SC_THREAD_THREADS_MAX: Integer
597
+
598
+ SC_TIMEOUTS: Integer
599
+
600
+ SC_TIMERS: Integer
601
+
602
+ SC_TIMER_MAX: Integer
603
+
604
+ SC_TRACE: Integer
605
+
606
+ SC_TRACE_EVENT_FILTER: Integer
607
+
608
+ SC_TRACE_EVENT_NAME_MAX: Integer
609
+
610
+ SC_TRACE_INHERIT: Integer
611
+
612
+ SC_TRACE_LOG: Integer
613
+
614
+ SC_TRACE_NAME_MAX: Integer
615
+
616
+ SC_TRACE_SYS_MAX: Integer
617
+
618
+ SC_TRACE_USER_EVENT_MAX: Integer
619
+
620
+ SC_TTY_NAME_MAX: Integer
621
+
622
+ SC_TYPED_MEMORY_OBJECTS: Integer
623
+
624
+ SC_TZNAME_MAX: Integer
625
+
626
+ SC_V6_ILP32_OFF32: Integer
627
+
628
+ SC_V6_ILP32_OFFBIG: Integer
629
+
630
+ SC_V6_LP64_OFF64: Integer
631
+
632
+ SC_V6_LPBIG_OFFBIG: Integer
633
+
634
+ SC_VERSION: Integer
635
+
636
+ SC_XOPEN_CRYPT: Integer
637
+
638
+ SC_XOPEN_ENH_I18N: Integer
639
+
640
+ SC_XOPEN_REALTIME: Integer
641
+
642
+ SC_XOPEN_REALTIME_THREADS: Integer
643
+
644
+ SC_XOPEN_SHM: Integer
645
+
646
+ SC_XOPEN_STREAMS: Integer
647
+
648
+ SC_XOPEN_UNIX: Integer
649
+
650
+ SC_XOPEN_VERSION: Integer
651
+
652
+ VERSION: String
653
+
654
+ class Group < Struct[untyped]
655
+ extend Enumerable[untyped]
656
+
657
+ def self.[]: (*untyped) -> untyped
658
+
659
+ def self.each: () -> untyped
660
+
661
+ def self.inspect: () -> untyped
662
+
663
+ def self.keyword_init?: () -> untyped
664
+
665
+ def self.members: () -> untyped
666
+
667
+ def self.new: (*untyped) -> untyped
668
+
669
+ public
670
+
671
+ def gid: () -> Integer
672
+
673
+ def gid=: (Integer new_gid) -> void
674
+
675
+ def mem: () -> Array[String]
676
+
677
+ def mem=: (Array[String] new_mem) -> void
678
+
679
+ def name: () -> String
680
+
681
+ def name=: (String new_name) -> void
682
+
683
+ def passwd: () -> String
684
+
685
+ def passwd=: (String new_passwd) -> void
686
+ end
687
+
688
+ class Passwd < Struct[untyped]
689
+ extend Enumerable[untyped]
690
+
691
+ def self.[]: (*untyped) -> untyped
692
+
693
+ def self.each: () -> untyped
694
+
695
+ def self.inspect: () -> untyped
696
+
697
+ def self.keyword_init?: () -> untyped
698
+
699
+ def self.members: () -> untyped
700
+
701
+ def self.new: (*untyped) -> untyped
702
+
703
+ public
704
+
705
+ def change: () -> Integer
706
+
707
+ def change=: (Integer new_change) -> void
708
+
709
+ def dir: () -> String
710
+
711
+ def dir=: (String new_dir) -> void
712
+
713
+ def expire: () -> Integer
714
+
715
+ def expire=: (Integer new_expire) -> void
716
+
717
+ def gecos: () -> String
718
+
719
+ def gecos=: (String new_gecos) -> void
720
+
721
+ def gid: () -> Integer
722
+
723
+ def gid=: (Integer new_gid) -> void
724
+
725
+ def name: () -> String
726
+
727
+ def name=: (String new_name) -> void
728
+
729
+ def passwd: () -> String
730
+
731
+ def passwd=: (String new_passwd) -> void
732
+
733
+ def shell: () -> String
734
+
735
+ def shell=: (String new_shell) -> void
736
+
737
+ def uclass: () -> String
738
+
739
+ def uclass=: (String new_uclass) -> void
740
+
741
+ def uid: () -> Integer
742
+
743
+ def uid=: (Integer new_uid) -> void
744
+ end
745
+ end