Ruby: missing/dup2.c File Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Macros | Functions
dup2.c File Reference
`#include "ruby/internal/config.h"`
`#include <errno.h>`

Go to the source code of this file.

## Macros
#define | BADEXIT -1

## Functions
int | dup2 (int fd1, int fd2)

## Macro Definition Documentation

## ◆ BADEXIT

#define BADEXIT -1

Definition at line 24 of file dup2.c.

## Function Documentation

## ◆ dup2()

int dup2 | ( | int | fd1,
|  | int | fd2
| ) |  |

Definition at line 27 of file dup2.c.

References BADEXIT, F_DUPFD, and fcntl().

Referenced by goruby_options(), main(), rb_cloexec_dup2(), and rb_w32_dup2().