retire rumpuser_usleep() in favor of rumpuser_nanosleep()
This commit is contained in:
parent
441a8c67a3
commit
281bc3d490
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: rumpuser.c,v 1.15 2008/06/24 14:11:45 pooka Exp $ */
|
/* $NetBSD: rumpuser.c,v 1.16 2008/06/24 14:14:57 pooka Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
||||||
|
@ -88,13 +88,6 @@ rumpuser_lstat(const char *path, struct stat *sb, int *error)
|
||||||
DOCALL(int, (lstat(path, sb)));
|
DOCALL(int, (lstat(path, sb)));
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
rumpuser_usleep(unsigned long sec, int *error)
|
|
||||||
{
|
|
||||||
|
|
||||||
DOCALL(int, (usleep(sec)));
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
rumpuser_nanosleep(const struct timespec *rqtp, struct timespec *rmtp,
|
rumpuser_nanosleep(const struct timespec *rqtp, struct timespec *rmtp,
|
||||||
int *error)
|
int *error)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: rumpuser.h,v 1.17 2008/06/24 14:11:45 pooka Exp $ */
|
/* $NetBSD: rumpuser.h,v 1.18 2008/06/24 14:14:57 pooka Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
||||||
|
@ -36,7 +36,6 @@
|
||||||
|
|
||||||
int rumpuser_stat(const char *, struct stat *, int *);
|
int rumpuser_stat(const char *, struct stat *, int *);
|
||||||
int rumpuser_lstat(const char *, struct stat *, int *);
|
int rumpuser_lstat(const char *, struct stat *, int *);
|
||||||
int rumpuser_usleep(unsigned long, int *);
|
|
||||||
int rumpuser_nanosleep(const struct timespec *, struct timespec *, int *);
|
int rumpuser_nanosleep(const struct timespec *, struct timespec *, int *);
|
||||||
|
|
||||||
#define rumpuser_malloc(a,b) _rumpuser_malloc(a,b,__func__,__LINE__);
|
#define rumpuser_malloc(a,b) _rumpuser_malloc(a,b,__func__,__LINE__);
|
||||||
|
|
Loading…
Reference in New Issue