-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sasasu
committed
May 11, 2019
1 parent
2aa0705
commit 01d941b
Showing
5 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ | |
extern int epoll_init(); | ||
extern void start_loop(); | ||
|
||
extern int fd_sum; | ||
|
||
#endif // EPOLL_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
#ifndef PTY_H | ||
#define PTY_H | ||
#include <fcntl.h> | ||
#include <termios.h> | ||
|
||
extern int PTYS[3]; | ||
|
||
extern pid_t pty_fork(int ptys[]); | ||
extern pid_t pty_fork_exec(char *path, char *arg[]); | ||
extern void set_ter(int fd, tcflag_t flag); | ||
|
||
#endif // PTY_H |