# types war recently, I face a spesific issue in order choosing best types for my program. my goal is choose best need for my C datatype there has some header exists - `stdint.h` - `sys/types.h` difference from location presefective - `/usr/lib/clang/20/include/stdint.h` - `/usr/include/sys/types.h` see? `stdint.h` is more compiler oriented, and `sys/types.h` is more system oriented, that right, `sys/types.h` is POSIX. It's fundamentally about defining types used by system calls and other OS-level interfaces. # `sys/types.h` Purpose: To define data types used in system-level programming. These types are often opaque and their actual size can vary between different systems (e.g., a 32-bit vs. a 64-bit system), but they provide a portable way to interface with the OS kernel. Origin: System V and BSD systems, later standardized by POSIX. Use sys/types.h when you are writing code that makes POSIX-compliant system calls (open, read, fork, stat, etc.).