summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
Diffstat (limited to 'hurd')
-rw-r--r--hurd/console.h10
-rw-r--r--hurd/process.defs8
-rw-r--r--hurd/process_request.defs6
3 files changed, 21 insertions, 3 deletions
diff --git a/hurd/console.h b/hurd/console.h
index 065ed7d2..4634cc28 100644
--- a/hurd/console.h
+++ b/hurd/console.h
@@ -1,5 +1,5 @@
/* console.h -- Public interface to the console server.
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002,10 Free Software Foundation, Inc.
Written by Marcus Brinkmann.
This program is free software; you can redistribute it and/or
@@ -50,7 +50,13 @@ typedef struct
uint32_t italic : 1;
uint32_t bold : 1;
} conchar_attr_t;
-
+
+/* We support double-width characters by using an extra bit to identify the
+ continuation in the character matrix. The constants below document our
+ usage of wchar_t. */
+#define CONS_WCHAR_MASK ((wchar_t) 0x401fffff)
+#define CONS_WCHAR_CONTINUED ((wchar_t) 0x40000000)
+
typedef struct
{
wchar_t chr;
diff --git a/hurd/process.defs b/hurd/process.defs
index a87cc421..43cc9f2a 100644
--- a/hurd/process.defs
+++ b/hurd/process.defs
@@ -356,7 +356,7 @@ routine proc_getpgrppids (
out pidset: pidarray_t, dealloc);
-/*** Another miscelleneous info query ***/
+/*** Other miscelleneous info queries ***/
/* Return the controlling TTY used by PID in TTY; opened without read or
write access. */
@@ -364,3 +364,9 @@ routine proc_get_tty (
calling_process: process_t;
target_process: pid_t;
out tty: mach_port_send_t);
+
+/* Return the number of Mach ports used by PID */
+routine proc_getnports (
+ process: process_t;
+ which: pid_t;
+ out nports: mach_msg_type_number_t);
diff --git a/hurd/process_request.defs b/hurd/process_request.defs
index 8669e443..80a28282 100644
--- a/hurd/process_request.defs
+++ b/hurd/process_request.defs
@@ -365,3 +365,9 @@ simpleroutine proc_get_tty_request (
process: process_t;
ureplyport reply: reply_port_t;
pid: pid_t);
+
+/* Return the number of Mach ports used by PID */
+simpleroutine proc_getnports_request (
+ process: process_t;
+ ureplyport reply: reply_port_t;
+ which: pid_t);