mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-25 11:53:32 +02:00
6545c64ca8
They are used by another project, but not used by pg_rman. git-svn-id: http://pg-rman.googlecode.com/svn/trunk@18 182aca00-e38e-11de-a668-6fd11605f5ce
31 lines
710 B
C
31 lines
710 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* pgut-port.h
|
|
*
|
|
* Copyright (c) 2009, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef PGUT_PORT_H
|
|
#define PGUT_PORT_H
|
|
|
|
#ifdef WIN32
|
|
|
|
#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. */
|
|
|
|
#define S_IFLNK (0)
|
|
#define S_IRWXG (0)
|
|
#define S_IRWXO (0)
|
|
#define S_ISLNK(mode) (0)
|
|
|
|
extern int flock(int fd, int operation);
|
|
extern ssize_t readlink(const char *path, char *target, size_t size);
|
|
|
|
#endif
|
|
|
|
#endif /* PGUT_PORT_H */
|