[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 36/41] term: Port to x86_64
From: |
Sergey Bugaev |
Subject: |
[PATCH 36/41] term: Port to x86_64 |
Date: |
Tue, 9 May 2023 00:31:31 +0300 |
---
term/devio.c | 8 ++++----
term/hurdio.c | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/term/devio.c b/term/devio.c
index 65dea5d5..3b4e4845 100644
--- a/term/devio.c
+++ b/term/devio.c
@@ -536,7 +536,7 @@ device_open_reply (mach_port_t replyport,
mach_port_t device)
{
struct tty_status ttystat;
- size_t count = TTY_STATUS_COUNT;
+ mach_msg_type_number_t count = TTY_STATUS_COUNT;
error_t err = 0;
if (replyport != phys_reply)
@@ -618,7 +618,7 @@ devio_set_bits (struct termios *state)
if (!(state->c_cflag & CIGNORE) && phys_device != MACH_PORT_NULL)
{
struct tty_status ttystat;
- size_t cnt = TTY_STATUS_COUNT;
+ mach_msg_type_number_t cnt = TTY_STATUS_COUNT;
/* Find the current state. */
device_get_status (phys_device, TTY_STATUS, (dev_status_t) &ttystat,
&cnt);
@@ -675,7 +675,7 @@ static error_t
devio_mdmctl (int how, int bits)
{
int oldbits, newbits;
- size_t cnt;
+ mach_msg_type_number_t cnt;
if ((how == MDMCTL_BIS) || (how == MDMCTL_BIC))
{
cnt = TTY_MODEM_COUNT;
@@ -702,7 +702,7 @@ static error_t
devio_mdmstate (int *state)
{
int bits;
- size_t cnt = TTY_MODEM_COUNT;
+ mach_msg_type_number_t cnt = TTY_MODEM_COUNT;
device_get_status (phys_device, TTY_MODEM, (dev_status_t) &bits, &cnt);
if (cnt == TTY_MODEM_COUNT)
*state = bits;
diff --git a/term/hurdio.c b/term/hurdio.c
index b4ef7c41..c6e14a4a 100644
--- a/term/hurdio.c
+++ b/term/hurdio.c
@@ -197,7 +197,7 @@ hurdio_reader_loop (void *arg)
#define BUFFER_SIZE 256
char buffer[BUFFER_SIZE];
char *data;
- size_t datalen;
+ mach_msg_type_number_t datalen;
error_t err;
pthread_mutex_lock (&global_lock);
--
2.40.1
- [PATCH 15/41] utils: Avoid warnings about prototype mismatch, (continued)
- [PATCH 15/41] utils: Avoid warnings about prototype mismatch, Sergey Bugaev, 2023/05/08
- [PATCH 18/41] proc: Fix use-after-realloc, Sergey Bugaev, 2023/05/08
- [PATCH 31/41] mach-defpager: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 38/41] trans: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 19/41] exec: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 25/41] daemons: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 40/41] Disable Linux-based pfinet on x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 23/41] storeio: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 24/41] devnode: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 39/41] Look for mach_i386 in mach/machine/, Sergey Bugaev, 2023/05/08
- [PATCH 36/41] term: Port to x86_64,
Sergey Bugaev <=
- [PATCH 28/41] eth-multiplexer: Port to x86_64, Sergey Bugaev, 2023/05/08
- Re: [PATCH 00/41] The x86_64 port, Samuel Thibault, 2023/05/09
- Re: [PATCH 00/41] The x86_64 port, Sergey Bugaev, 2023/05/10
- Re: [PATCH 00/41] The x86_64 port, Samuel Thibault, 2023/05/10
- Re: [PATCH 00/41] The x86_64 port, Sergey Bugaev, 2023/05/10
- Re: [PATCH 00/41] The x86_64 port, Samuel Thibault, 2023/05/10
- Re: [PATCH 00/41] The x86_64 port, Sergey Bugaev, 2023/05/10
- Re: [PATCH 00/41] The x86_64 port, Samuel Thibault, 2023/05/10
- Re: [PATCH 00/41] The x86_64 port, Sergey Bugaev, 2023/05/10
- Re: [PATCH 00/41] The x86_64 port, Sergey Bugaev, 2023/05/10