Skip to content
Advertisement

Tag: types

Where is ssize_t defined in Linux?

OS: Debian 9 (Linux 4.9) Compiler: GCC 8.2 Currently I am including <stddef.h> (where size_t is defined) and <stdint.h> (where most integral types are defined), but I still don’t have ssize_t. Where is it defined? Answer ssize_t is defined in sys/types.h. Per the POSIX documentation: NAME sys/types.h – data types SYNOPSIS DESCRIPTION The header shall define at least the following

What is time_t ultimately a typedef to?

I searched my Linux box and saw this typedef: But I could not find the __time_t definition. Answer The time_t Wikipedia article article sheds some light on this. The bottom line is that the type of time_t is not guaranteed in the C specification. The time_t datatype is a data type in the ISO C library defined for storing system

Advertisement