summaryrefslogtreecommitdiff
path: root/sys-kernel/vtty/files
diff options
context:
space:
mode:
authorLibravatar Terin Stock <terinjokes@gmail.com>2024-12-31 05:36:48 +0100
committerLibravatar Terin Stock <terinjokes@gmail.com>2024-12-31 05:36:48 +0100
commit12ded4c357f29f33cfa0b95993b7e81df486f1dd (patch)
tree9d26469af762ff96d8bb3612fdfbb6b79a8f9505 /sys-kernel/vtty/files
parentdev-go/gopls: add 0.17.1, drop 0.16.2 (diff)
downloadebuilds-12ded4c357f29f33cfa0b95993b7e81df486f1dd.tar.xz
sys-kernel/vtty: new package, add 0_p20230917
Diffstat (limited to 'sys-kernel/vtty/files')
-rw-r--r--sys-kernel/vtty/files/vtty-tty_operations.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys-kernel/vtty/files/vtty-tty_operations.patch b/sys-kernel/vtty/files/vtty-tty_operations.patch
new file mode 100644
index 0000000..6974fe0
--- /dev/null
+++ b/sys-kernel/vtty/files/vtty-tty_operations.patch
@@ -0,0 +1,13 @@
+diff --git a/vtty.c b/vtty.c
+index b3c6c65..6aef89a 100644
+--- a/vtty.c
++++ b/vtty.c
+@@ -105,7 +105,7 @@ static void vtty_close(struct tty_struct *tty, struct file *filp)
+ return;
+ }
+
+-static int vtty_write(struct tty_struct *tty, const unsigned char *buf, int count)
++static ssize_t vtty_write(struct tty_struct *tty, const u8 *buf, size_t count)
+ {
+ // the TTY layer manages -EAGAIN and (non-)blocking writes
+ struct vtty_port *port = &ports[tty->index];