]> git.saurik.com Git - apple/xnu.git/blame - tests/no32exec_35914211_helper.c
xnu-6153.81.5.tar.gz
[apple/xnu.git] / tests / no32exec_35914211_helper.c
CommitLineData
94ff46dc
A
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 */
a39ff7e2 6
94ff46dc
A
7#include <stdio.h>
8#include <unistd.h>
9
10int
11main(int argc __unused, char **argv)
a39ff7e2 12{
94ff46dc
A
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;
a39ff7e2 17}