Skip to content
Browse files

time_t: define using a fixed-width type

Make sure type_t and suseconds_t keep the same size on 32-bit and
64-bit targets.

Signed-off-by: Nicolas Pitre <>
  • Loading branch information...
Nicolas Pitre authored and andrewboie committed Jun 5, 2019
1 parent aa92288 commit eeb2e67f2b3b025a57499411a109f5d0ba7df15c
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/libc/minimal/include/sys/types.h
@@ -8,6 +8,8 @@

#include <stdint.h>

typedef unsigned int mode_t;

#if !defined(__ssize_t_defined)
@@ -40,7 +42,7 @@ typedef int off_t;


typedef long long time_t;
typedef long suseconds_t;
typedef int64_t time_t;
typedef int32_t suseconds_t;


0 comments on commit eeb2e67

Please sign in to comment.
You can’t perform that action at this time.