diff options
author | bonefish@cs.tu-berlin.de <bonefish@cs.tu-berlin.de> | 2004-12-17 02:17:40 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-12-17 09:08:23 +0000 |
commit | e56d2c0452c35b83da9b40ac35fd5558c48f7b73 (patch) | |
tree | 6fdf7ee53e174f39e475f6b9973046d0dba8a178 /beos/beosish.h | |
parent | d4c5c869043fa9353a750a98a5c2dad02bf2491c (diff) | |
download | perl-e56d2c0452c35b83da9b40ac35fd5558c48f7b73.tar.gz |
Re: [perl #32717] BeOS specific Updates
Message-Id: <20041217011740.14398.1@cs.tu-berlin.de>
p4raw-id: //depot/perl@23661
Diffstat (limited to 'beos/beosish.h')
-rw-r--r-- | beos/beosish.h | 22 |
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 |