STDERRFILENO
STDERR_FILENO is a POSIX macro that expands to the file descriptor number assigned to the standard error stream (stderr). It is typically defined as 2 and is used by low-level I/O routines that operate on file descriptors rather than FILE* streams.
In POSIX systems, STDERR_FILENO is declared in unistd.h alongside the other standard file descriptors, with STDIN_FILENO
Common uses include redirecting standard error to a file or another descriptor by manipulating file descriptors
Portability notes: while STDERR_FILENO is standard in POSIX, it may not be defined in non-POSIX environments
See also: STDIN_FILENO, STDOUT_FILENO, unistd.h, dup2, write, read.