Skip to content

Commit

Permalink
<time.h>: Provide time2posix(), posix2time() prototypes.
Browse files Browse the repository at this point in the history
They have a manual page too. Also provide offtime() and timeoff()
prototypes.

Fixes some -Wmissing-prototypes warnings.
  • Loading branch information
Sascha Wildner committed Apr 16, 2019
1 parent 961edc7 commit c6cc3d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ int getcpuclockid(pid_t, lwpid_t, clockid_t *);
void tzsetwall(void);
time_t timelocal(struct tm * const);
time_t timegm(struct tm * const);
time_t time2posix(time_t);
time_t posix2time(time_t);
struct tm *offtime(const time_t * const, const long);
time_t timeoff(struct tm * const, const long);
#endif /* __BSD_VISIBLE */

#if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_)
Expand Down

0 comments on commit c6cc3d1

Please sign in to comment.