summaryrefslogtreecommitdiff
path: root/beos/beosish.h
diff options
context:
space:
mode:
Diffstat (limited to 'beos/beosish.h')
-rw-r--r--beos/beosish.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/beos/beosish.h b/beos/beosish.h
index d50cc55514..7aab15f402 100644
--- a/beos/beosish.h
+++ b/beos/beosish.h
@@ -11,24 +11,28 @@ pid_t beos_waitpid(pid_t process_id, int *status_location, int options);
/* This seems to be protoless. */
char *gcvt(double value, int num_digits, char *buffer);
+/* flock support, if available */
+#ifdef HAS_FLOCK
-/* flock() operation flags */
-#define LOCK_SH (0x00)
-#define LOCK_EX (0x01)
-#define LOCK_UN (0x02)
-#define LOCK_NB (0x04)
-
-int flock(int fd, int operation);
+#include <flock.h>
#undef close
-#define close beos_close
+#define close flock_close
+
+#undef dup2
+#define dup2 flock_dup2
-int beos_close(int fd);
+#endif /* HAS_FLOCK */
#undef kill
#define kill beos_kill
int beos_kill(pid_t pid, int sig);
+#undef sigaction
+#define sigaction(sig, act, oact) beos_sigaction((sig), (act), (oact))
+int beos_sigaction(int sig, const struct sigaction *act,
+ struct sigaction *oact);
+
#endif