cc -pthread -Wall -Wextra tcgetsid-wrong-controlling.c -o tcgetsid-wrong-controlling -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt relibc getrlimit(3, 0x7ffffffffc90): not implemented relibc getrusage(0, 0x7ffffffffb60): not implemented relibc getrlimit(7, 0x7ffffffff970): not implemented /usr/lib/gcc/x86_64-unknown-redox/13.2.0/../../../../x86_64-unknown-redox/bin/ld: ../out/redox/pty/tcgetsid-wrong-controlling.o: in function `main': tcgetsid-wrong-controlling.c:(.text+0x97f): undefined reference to `tcgetsid' collect2: error: ld returned 1 exit status