Skip to content
Browse files

libc: minimal: Introduce sys/_timeval.h

This is implementation-level header which defines struct timeval, and
intended to be included by headers which need this structure. This
implementation scheme is compatible with Newlib, and thus provides a
step to use minlibc vs Newlib interchangeably.

Signed-off-by: Paul Sokolovsky <>
  • Loading branch information...
pfalcon authored and nashif committed Apr 23, 2019
1 parent d79d3eb commit c896f87d5d7db18bec3f0c9f245a550d797f590e
Showing with 17 additions and 0 deletions.
  1. +17 −0 lib/libc/minimal/include/sys/_timeval.h
@@ -0,0 +1,17 @@
* Copyright (c) 2019 Linaro Limited
* SPDX-License-Identifier: Apache-2.0


#include <sys/types.h>

struct timeval {
time_t tv_sec;
suseconds_t tv_usec;


0 comments on commit c896f87

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