diff options
Diffstat (limited to 'openbsd-compat/bsd-misc.c')
-rw-r--r-- | openbsd-compat/bsd-misc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c index 18bf62dd8..6f3bc8f1d 100644 --- a/openbsd-compat/bsd-misc.c +++ b/openbsd-compat/bsd-misc.c | |||
@@ -70,8 +70,8 @@ int setlogin(const char *name) | |||
70 | #endif /* !HAVE_SETLOGIN */ | 70 | #endif /* !HAVE_SETLOGIN */ |
71 | 71 | ||
72 | #ifndef HAVE_INNETGR | 72 | #ifndef HAVE_INNETGR |
73 | int innetgr(const char *netgroup, const char *host, | 73 | int innetgr(const char *netgroup, const char *host, |
74 | const char *user, const char *domain) | 74 | const char *user, const char *domain) |
75 | { | 75 | { |
76 | return (0); | 76 | return (0); |
77 | } | 77 | } |
@@ -96,7 +96,7 @@ const char *strerror(int e) | |||
96 | { | 96 | { |
97 | extern int sys_nerr; | 97 | extern int sys_nerr; |
98 | extern char *sys_errlist[]; | 98 | extern char *sys_errlist[]; |
99 | 99 | ||
100 | if ((e >= 0) && (e < sys_nerr)) | 100 | if ((e >= 0) && (e < sys_nerr)) |
101 | return (sys_errlist[e]); | 101 | return (sys_errlist[e]); |
102 | 102 | ||
@@ -111,10 +111,10 @@ int utimes(char *filename, struct timeval *tvp) | |||
111 | 111 | ||
112 | ub.actime = tvp[0].tv_sec; | 112 | ub.actime = tvp[0].tv_sec; |
113 | ub.modtime = tvp[1].tv_sec; | 113 | ub.modtime = tvp[1].tv_sec; |
114 | 114 | ||
115 | return (utime(filename, &ub)); | 115 | return (utime(filename, &ub)); |
116 | } | 116 | } |
117 | #endif | 117 | #endif |
118 | 118 | ||
119 | #ifndef HAVE_TRUNCATE | 119 | #ifndef HAVE_TRUNCATE |
120 | int truncate(const char *path, off_t length) | 120 | int truncate(const char *path, off_t length) |
@@ -149,9 +149,9 @@ int nanosleep(const struct timespec *req, struct timespec *rem) | |||
149 | saverrno = errno; | 149 | saverrno = errno; |
150 | (void) gettimeofday (&tstop, NULL); | 150 | (void) gettimeofday (&tstop, NULL); |
151 | errno = saverrno; | 151 | errno = saverrno; |
152 | tremain.tv_sec = time2wait.tv_sec - | 152 | tremain.tv_sec = time2wait.tv_sec - |
153 | (tstop.tv_sec - tstart.tv_sec); | 153 | (tstop.tv_sec - tstart.tv_sec); |
154 | tremain.tv_usec = time2wait.tv_usec - | 154 | tremain.tv_usec = time2wait.tv_usec - |
155 | (tstop.tv_usec - tstart.tv_usec); | 155 | (tstop.tv_usec - tstart.tv_usec); |
156 | tremain.tv_sec += tremain.tv_usec / 1000000L; | 156 | tremain.tv_sec += tremain.tv_usec / 1000000L; |
157 | tremain.tv_usec %= 1000000L; | 157 | tremain.tv_usec %= 1000000L; |