X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=win32%2Fwin32iop.h;h=c33d94430752682a2dfc3421a593cb4c64ec6f5b;hb=c90c0ff485be15aaf3ee20121299cb014ee6b1ff;hp=f6300006300a80e85c23d0f46a4a2b4c6c2ad73c;hpb=7b05b7e32c22894360c5332cd30232bdea49f5a8;p=p5sagit%2Fp5-mst-13.2.git diff --git a/win32/win32iop.h b/win32/win32iop.h index f630000..c33d944 100644 --- a/win32/win32iop.h +++ b/win32/win32iop.h @@ -63,6 +63,7 @@ EXT int win32_spawnle(int mode, const char *cmdname, const char *,...); EXT int win32_mkdir(const char *dir, int mode); EXT int win32_rmdir(const char *dir); EXT int win32_chdir(const char *dir); +EXT int win32_flock(int fd, int oper); /* * these two are win32 specific but still io related @@ -70,6 +71,14 @@ EXT int win32_chdir(const char *dir); int stolen_open_osfhandle(long handle, int flags); long stolen_get_osfhandle(int fd); +/* + * defines for flock emulation + */ +#define LOCK_SH 1 +#define LOCK_EX 2 +#define LOCK_NB 4 +#define LOCK_UN 8 + #include /* pull in the io sub system structure */ void * SetIOSubSystem(void *piosubsystem); @@ -140,6 +149,7 @@ void * SetIOSubSystem(void *piosubsystem); #define mkdir win32_mkdir #define rmdir win32_rmdir #define chdir win32_chdir +#define flock(fd,o) win32_flock(fd,o) #endif /* WIN32IO_IS_STDIO */ #endif /* WIN32IOP_H */