mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 21:28:21 +00:00
pty: initial implementation
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#ifndef _PTY_H
|
||||
#define _PTY_H
|
||||
|
||||
#include <kernel/tty.h>
|
||||
#include <spinlock.h>
|
||||
#include <ringbuffer.h>
|
||||
#include <kernel/poll.h>
|
||||
|
||||
typedef struct {
|
||||
bool hangup;
|
||||
tty_t *tty;
|
||||
int minor;
|
||||
vnode_t *mastervnode;
|
||||
ringbuffer_t ringbuffer;
|
||||
pollheader_t pollheader;
|
||||
spinlock_t lock;
|
||||
} pty_t;
|
||||
|
||||
void pty_init();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user