~mirabilos/klibc/master

« back to all changes in this revision

Viewing changes to usr/include/time.h

  • Committer: H. Peter Anvin
  • Date: 2006-05-01 00:56:02 UTC
  • Revision ID: git-v1:5dea5e01daaaff0685016f23b5cb46240f28e792
[klibc] Reorganize the standalone klibc tree to match the in-kernel tree

Right now, it's harder than it should to apply and test patches using
the standalone klibc tree.  Reorganize the standalone tree to match
the in-kernel tree.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * time.h
 
3
 */
 
4
 
 
5
#ifndef _TIME_H
 
6
#define _TIME_H
 
7
 
 
8
#include <klibc/extern.h>
 
9
#include <sys/time.h>
 
10
 
 
11
__extern time_t time(time_t *);
 
12
__extern int nanosleep(const struct timespec *, struct timespec *);
 
13
 
 
14
/* klibc-specific but useful since we don't have floating point */
 
15
__extern char *strtotimeval(const char *str, struct timeval *tv);
 
16
__extern char *strtotimespec(const char *str, struct timespec *tv);
 
17
 
 
18
#endif /* _TIME_H */