X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=beos%2Fbeosish.h;h=7aab15f4022651bbc0d36db0307e8dae5e54885e;hb=bc81784acdb7beadae0cc705ebadbd8f365f30ba;hp=66de1104b2c1c845fa9ae89617d640717d480df7;hpb=531c60d54ac0c8d986882963cc1cc6a92c370a4f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/beos/beosish.h b/beos/beosish.h index 66de110..7aab15f 100644 --- a/beos/beosish.h +++ b/beos/beosish.h @@ -11,5 +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 + +#include + +#undef close +#define close flock_close + +#undef dup2 +#define dup2 flock_dup2 + +#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