pty: support POLLHUP

This commit is contained in:
Matheus
2026-05-28 14:15:35 -03:00
parent 64e8c24b0d
commit e2506c0bab
3 changed files with 38 additions and 8 deletions
+3
View File
@@ -34,6 +34,8 @@ typedef struct {
vnode_t *mastervnode;
spinlock_t sessionlock;
struct proc_t *session;
size_t opened;
bool has_been_opened;
} tty_t;
void tty_init();
@@ -41,5 +43,6 @@ tty_t *tty_create(char *name, ttydevicewritefn_t writefn, ttyinactivefn_t inacti
void tty_process(tty_t *tty, char c);
void tty_unregister(tty_t *tty);
int tty_ioctl(tty_t *tty, unsigned long req, void *arg, int *result, cred_t *cred);
size_t tty_opened(tty_t *tty);
#endif