]> git.saurik.com Git - apple/xnu.git/blob - tests/no32exec_35914211_helper.c
xnu-6153.141.1.tar.gz
[apple/xnu.git] / tests / no32exec_35914211_helper.c
1 /* This is a file that compiles as a 32-bit helper to test
2 * forking of 32-bit programs, now that 32-bit has been
3 * deprecated on macOS despite still requiring its support in
4 * the watchOS simulator.
5 */
6
7 #include <stdio.h>
8 #include <unistd.h>
9
10 int
11 main(int argc __unused, char **argv)
12 {
13 (void)argc;
14 size_t retval = sizeof(void *);
15 printf("%s(%d): sizeof(void *) = %lu\n", argv[0], getpid(), retval);
16 return (int)retval;
17 }