/proc if there are other ways to get the information. For example, use setprogname(argv[0]) in main() and then getprogname() if you want to “know your name”.gettimeofday, getpid) are much faster on Linux than on any other operating system due to caching and the vsyscall performance optimizations. Do not rely on them being cheap in performance-critical applications. In general, try hard to avoid syscalls if at all possible.setsockopt() with SO_SNDBUF and SO_RCVBUF), and while Linux's send() blocks when the socket buffer is full, FreeBSD's will fail and set ENOBUFS` in errno. 2)/bin/sh is bash. Ensure that a command line passed to system() will work with a POSIX compliant shell.#include <stdint.h> if inttypes.h is sufficient. This will assure that your software builds on older versions of FreeBSD.sys/types.h is often forgotten, which doesn't seem to be as much of a problem for Linux as for FreeBSD.