Ruby: ext/pty/pty.c File Reference

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

Data Structures | Macros | Functions
pty.c File Reference
`#include "ruby/config.h"`
`#include <ctype.h>`
`#include <errno.h>`
`#include <signal.h>`
`#include <stdio.h>`
`#include <stdlib.h>`
`#include <sys/types.h>`
`#include <sys/stat.h>`
`#include <sys/file.h>`
`#include <fcntl.h>`
`#include "internal.h"`
`#include "internal/process.h"`
`#include "internal/signal.h"`
`#include "ruby/io.h"`
`#include "ruby/util.h"`

Go to the source code of this file.

## Data Structures
struct | pty_info
struct | child_info

## Macros
#define | WIFSTOPPED(status) (((status) & 0xff) == 0x7f)
#define | DEVICELEN 16
#define | ERROR_EXIT(str)
#define | HEX1(c)

## Functions
void | Init_pty (void)

## Macro Definition Documentation

## ◆ DEVICELEN

#define DEVICELEN 16

Definition at line 63 of file pty.c.

## ◆ ERROR_EXIT

#define ERROR_EXIT | ( |  | str | ) |

Value:
do { \
strlcpy(errbuf, (str), errbuf_len); \
return -1; \
} while (0)
str
char str[HTML_ESCAPE_MAX_LEN+1]
Definition: escape.c:18

## ◆ HEX1

#define HEX1 | ( |  | c | ) |

Value:
c"0",c"1",c"2",c"3",c"4",c"5",c"6",c"7", \
c"8",c"9",c"a",c"b",c"c",c"d",c"e",c"f"

## ◆ WIFSTOPPED

#define WIFSTOPPED | ( |  | status | ) | (((status) & 0xff) == 0x7f)

Definition at line 46 of file pty.c.

## Function Documentation

## ◆ Init_pty()

void Init_pty | ( | void |  | ) |

Definition at line 753 of file pty.c.

References rb_define_class_under(), rb_define_method, rb_define_module(), rb_define_module_function, rb_define_singleton_method, and rb_eRuntimeError.