File: machdev_trivfs_server

package info (click to toggle)
hurd 1%3A0.9.git20251029-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 37,152 kB
  • sloc: ansic: 539,358; sh: 5,143; asm: 2,998; makefile: 2,303; perl: 589; pascal: 484; awk: 157
file content (28 lines) | stat: -rw-r--r-- 1,233 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
For the existing netdde translator...

Index: hurd-debian/libmachdev/machdev.h
===================================================================
--- hurd-debian.orig/libmachdev/machdev.h
+++ hurd-debian/libmachdev/machdev.h
@@ -37,6 +37,7 @@ void * machdev_server(void *);
 error_t machdev_create_device_port (size_t size, void *result);
 int machdev_trivfs_init(int argc, char **argv, mach_port_t bootstrap_resume_task, const char *name, const char *path, mach_port_t *bootstrap);
 int machdev_demuxer(mach_msg_header_t *inp, mach_msg_header_t *outp);
+void machdev_trivfs_server(mach_port_t bootstrap);
 void machdev_trivfs_server_startup(mach_port_t bootstrap);
 void * machdev_trivfs_server_loop(void *);
 void * machdev_trivfs_server_loop_forever(void *);
Index: hurd-debian/libmachdev/trivfs_server.c
===================================================================
--- hurd-debian.orig/libmachdev/trivfs_server.c
+++ hurd-debian/libmachdev/trivfs_server.c
@@ -575,3 +575,9 @@ machdev_trivfs_server_loop_forever(void
   /* Not reached, or machine powers off */
   return NULL;
 }
+
+void machdev_trivfs_server(mach_port_t bootstrap)
+{
+  machdev_trivfs_server_startup(bootstrap);
+  machdev_trivfs_server_loop (NULL);
+}