1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 16:07:45 +00:00

LibC: Move struct timeval to sys/time.h. #POSIX

This commit is contained in:
Andreas Kling 2019-05-28 13:48:06 +02:00
parent 16ea34fc12
commit cbd858544d
10 changed files with 42 additions and 34 deletions

View file

@ -1,9 +1,15 @@
#pragma once
#include <sys/cdefs.h>
#include <sys/types.h>
__BEGIN_DECLS
struct timeval {
time_t tv_sec;
suseconds_t tv_usec;
};
struct timezone {
int tz_minuteswest;
int tz_dsttime;

View file

@ -37,11 +37,6 @@ typedef uint32_t clock_t;
#define __socklen_t uint32_t
typedef __socklen_t socklen_t;
struct timeval {
time_t tv_sec;
suseconds_t tv_usec;
};
struct stat {
dev_t st_dev; /* ID of device containing file */
ino_t st_ino; /* inode number */