diff options
Diffstat (limited to 'openbsd-compat/bsd-misc.h')
-rw-r--r-- | openbsd-compat/bsd-misc.h | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h index 0b1a3504f..52ec52853 100644 --- a/openbsd-compat/bsd-misc.h +++ b/openbsd-compat/bsd-misc.h | |||
@@ -49,10 +49,6 @@ int setegid(uid_t); | |||
49 | const char *strerror(int); | 49 | const char *strerror(int); |
50 | #endif | 50 | #endif |
51 | 51 | ||
52 | #if !defined(HAVE_STRSIGNAL) | ||
53 | char *strsignal(int); | ||
54 | #endif | ||
55 | |||
56 | #if !defined(HAVE_SETLINEBUF) | 52 | #if !defined(HAVE_SETLINEBUF) |
57 | #define setlinebuf(a) (setvbuf((a), NULL, _IOLBF, 0)) | 53 | #define setlinebuf(a) (setvbuf((a), NULL, _IOLBF, 0)) |
58 | #endif | 54 | #endif |
@@ -98,12 +94,6 @@ int tcsendbreak(int, int); | |||
98 | int unsetenv(const char *); | 94 | int unsetenv(const char *); |
99 | #endif | 95 | #endif |
100 | 96 | ||
101 | /* wrapper for signal interface */ | ||
102 | typedef void (*mysig_t)(int); | ||
103 | mysig_t mysignal(int sig, mysig_t act); | ||
104 | |||
105 | #define signal(a,b) mysignal(a,b) | ||
106 | |||
107 | #ifndef HAVE_ISBLANK | 97 | #ifndef HAVE_ISBLANK |
108 | int isblank(int); | 98 | int isblank(int); |
109 | #endif | 99 | #endif |
@@ -143,4 +133,28 @@ void warn(const char *, ...) __attribute__((format(printf, 1, 2))); | |||
143 | long long llabs(long long); | 133 | long long llabs(long long); |
144 | #endif | 134 | #endif |
145 | 135 | ||
136 | #if defined(HAVE_DECL_BZERO) && HAVE_DECL_BZERO == 0 | ||
137 | void bzero(void *, size_t); | ||
138 | #endif | ||
139 | |||
140 | #ifndef HAVE_RAISE | ||
141 | int raise(int); | ||
142 | #endif | ||
143 | |||
144 | #ifndef HAVE_GETSID | ||
145 | pid_t getsid(pid_t); | ||
146 | #endif | ||
147 | |||
148 | #ifndef HAVE_FLOCK | ||
149 | # define LOCK_SH 0x01 | ||
150 | # define LOCK_EX 0x02 | ||
151 | # define LOCK_NB 0x04 | ||
152 | # define LOCK_UN 0x08 | ||
153 | int flock(int, int); | ||
154 | #endif | ||
155 | |||
156 | #ifdef FFLUSH_NULL_BUG | ||
157 | # define fflush(x) (_ssh_compat_fflush(x)) | ||
158 | #endif | ||
159 | |||
146 | #endif /* _BSD_MISC_H */ | 160 | #endif /* _BSD_MISC_H */ |