aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2014-01-30 21:03:07 +0000
committerRon Yorston <rmy@pobox.com>2014-01-30 21:03:07 +0000
commit0a2a7b55a9212d8fc708fd564407e5505b5e8363 (patch)
tree1db3e0b2a8df9f5e80648519aa9d75531333696c /include
parent91229e15fe0cbc76eeae6f389879a42bff443f70 (diff)
downloadbusybox-w32-0a2a7b55a9212d8fc708fd564407e5505b5e8363.tar.gz
busybox-w32-0a2a7b55a9212d8fc708fd564407e5505b5e8363.tar.bz2
busybox-w32-0a2a7b55a9212d8fc708fd564407e5505b5e8363.zip
mingw: dummy implementation of times/sysconf
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 9f2e192b5..ede7a72f5 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -307,10 +307,26 @@ int stime(time_t *t);
307#define strftime mingw_strftime 307#define strftime mingw_strftime
308 308
309/* 309/*
310 * times.h
311 */
312#define clock_t long
313
314struct tms {
315 clock_t tms_utime; /* user CPU time */
316 clock_t tms_stime; /* system CPU time */
317 clock_t tms_cutime; /* user CPU time of children */
318 clock_t tms_cstime; /* system CPU time of children */
319};
320
321clock_t times(struct tms *buf);
322
323/*
310 * unistd.h 324 * unistd.h
311 */ 325 */
312#define PIPE_BUF 8192 326#define PIPE_BUF 8192
313 327
328#define _SC_CLK_TCK 2
329
314IMPL(alarm,unsigned int,0,unsigned int seconds UNUSED_PARAM); 330IMPL(alarm,unsigned int,0,unsigned int seconds UNUSED_PARAM);
315NOIMPL(chown,const char *path UNUSED_PARAM, uid_t uid UNUSED_PARAM, gid_t gid UNUSED_PARAM); 331NOIMPL(chown,const char *path UNUSED_PARAM, uid_t uid UNUSED_PARAM, gid_t gid UNUSED_PARAM);
316NOIMPL(chroot,const char *root UNUSED_PARAM); 332NOIMPL(chroot,const char *root UNUSED_PARAM);
@@ -349,6 +365,7 @@ NOIMPL(seteuid,uid_t gid UNUSED_PARAM);
349unsigned int sleep(unsigned int seconds); 365unsigned int sleep(unsigned int seconds);
350NOIMPL(symlink,const char *oldpath UNUSED_PARAM, const char *newpath UNUSED_PARAM); 366NOIMPL(symlink,const char *oldpath UNUSED_PARAM, const char *newpath UNUSED_PARAM);
351static inline void sync(void) {} 367static inline void sync(void) {}
368long sysconf(int name);
352NOIMPL(ttyname_r,int fd UNUSED_PARAM, char *buf UNUSED_PARAM, int sz UNUSED_PARAM); 369NOIMPL(ttyname_r,int fd UNUSED_PARAM, char *buf UNUSED_PARAM, int sz UNUSED_PARAM);
353int mingw_unlink(const char *pathname); 370int mingw_unlink(const char *pathname);
354NOIMPL(vfork,void); 371NOIMPL(vfork,void);