1.1 --- a/test_files/programs/test_popenv.c Thu May 30 22:29:00 2024 +0200
1.2 +++ b/test_files/programs/test_popenv.c Fri May 31 16:31:12 2024 +0200
1.3 @@ -23,12 +23,7 @@
1.4 #include <sys/types.h>
1.5 #include <errno.h>
1.6 #include <port.h>
1.7 -
1.8 -
1.9 -
1.10 -/* NOTE: To be provided via a header. */
1.11 -
1.12 -extern pid_t popenv(int, const char *[], FILE **input, FILE **output, FILE **error);
1.13 +#include <process.h>
1.14
1.15
1.16
1.17 @@ -60,6 +55,7 @@
1.18 pid_t pid;
1.19 port_t port;
1.20 event_source_t source;
1.21 + event_values_t result;
1.22
1.23 if (argc < 2)
1.24 {
1.25 @@ -124,6 +120,7 @@
1.26 if (error != NULL)
1.27 transfer(error, stderr);
1.28
1.29 + result = port_source_event_values(source);
1.30 break;
1.31 }
1.32 }
1.33 @@ -134,6 +131,7 @@
1.34 if (error != NULL)
1.35 fclose(error);
1.36
1.37 + printf("Result: %ld\n", result.val);
1.38 return 0;
1.39 }
1.40
2.1 --- a/test_files/programs/test_systemv.c Thu May 30 22:29:00 2024 +0200
2.2 +++ b/test_files/programs/test_systemv.c Fri May 31 16:31:12 2024 +0200
2.3 @@ -22,10 +22,6 @@
2.4 #include <stdio.h>
2.5 #include <errno.h>
2.6
2.7 -/* NOTE: To be provided via a header. */
2.8 -
2.9 -extern int systemv(int, const char *[]);
2.10 -
2.11
2.12
2.13 /* List objects in the filesystem image. */