mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-10 23:29:34 +02:00
fa248a0507
Postgres has its own version in lpgport relying on junction points, so if we consider a WIN32 port this is actually not necessary.
37 lines
689 B
C
37 lines
689 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* pgut-port.h
|
|
*
|
|
* Copyright (c) 2009-2010, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef PGUT_PORT_H
|
|
#define PGUT_PORT_H
|
|
|
|
/*
|
|
* flock ports
|
|
*/
|
|
#ifndef LOCK_EX
|
|
|
|
#define PGUT_FLOCK
|
|
|
|
#undef LOCK_SH
|
|
#undef LOCK_EX
|
|
#undef LOCK_UN
|
|
#undef LOCK_NB
|
|
|
|
#define LOCK_SH 1 /* Shared lock. */
|
|
#define LOCK_EX 2 /* Exclusive lock. */
|
|
#define LOCK_UN 8 /* Unlock. */
|
|
#define LOCK_NB 4 /* Don't block when locking. */
|
|
|
|
extern int pgut_flock(int fd, int operation);
|
|
|
|
#define flock pgut_flock
|
|
|
|
#endif
|
|
|
|
#endif /* PGUT_PORT_H */
|