Changeset f33c989e in mainline


Ignore:
Timestamp:
2018-08-24T18:47:05Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Children:
8c85f0f
Parents:
205f1add
git-author:
Jakub Jermar <jakub@…> (2018-08-24 18:47:01)
git-committer:
Jakub Jermar <jakub@…> (2018-08-24 18:47:05)
Message:

Move decs from posix/time.h to posix/sys/time.h

Location:
uspace/lib/posix
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/include/posix/sys/time.h

    r205f1add rf33c989e  
    3434#define POSIX_SYS_TIME_H_
    3535
     36#define DST_NONE  0
     37
     38typedef long suseconds_t;
     39
     40struct timeval {
     41        time_t tv_sec;        /* seconds */
     42        suseconds_t tv_usec;  /* microseconds */
     43};
     44
     45struct timezone {
     46        int tz_minuteswest;  /* minutes W of Greenwich */
     47        int tz_dsttime;      /* type of dst correction */
     48};
     49
     50extern int gettimeofday(struct timeval *, struct timezone *);
     51
    3652#endif
    3753
  • uspace/lib/posix/include/posix/time.h

    r205f1add rf33c989e  
    5959#define CLOCK_REALTIME ((clockid_t) 0)
    6060
    61 #define DST_NONE  0
    62 
    6361#define ASCTIME_BUF_LEN  26
    64 
    65 typedef long suseconds_t;
    66 
    67 struct timeval {
    68         time_t tv_sec;        /* seconds */
    69         suseconds_t tv_usec;  /* microseconds */
    70 };
    71 
    72 struct timezone {
    73         int tz_minuteswest;  /* minutes W of Greenwich */
    74         int tz_dsttime;      /* type of dst correction */
    75 };
    7662
    7763struct itimerspec {
     
    120106extern clock_t clock(void);
    121107
    122 extern int gettimeofday(struct timeval *, struct timezone *);
    123 
    124108#endif  // POSIX_TIME_H_
    125109
  • uspace/lib/posix/src/time.c

    r205f1add rf33c989e  
    3535
    3636#include "internal/common.h"
     37#include "posix/sys/time.h"
    3738#include "posix/time.h"
    3839
Note: See TracChangeset for help on using the changeset viewer.