1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-12 05:01:15 +03:00

Remove OPENLINK define

This commit is contained in:
Bruce Momjian
1996-11-04 04:53:51 +00:00
parent 0108fddf13
commit 18bbad7696
5 changed files with 6 additions and 37 deletions

View File

@@ -6,7 +6,7 @@
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Id: fd.c,v 1.6 1996/10/31 10:19:59 scrappy Exp $
* $Id: fd.c,v 1.7 1996/11/04 04:53:24 momjian Exp $
*
* NOTES:
*
@@ -197,14 +197,12 @@ static int FileAccess(File file);
static File fileNameOpenFile(FileName fileName, int fileFlags, int fileMode);
static char *filepath(char *filename);
#ifdef OPENLINK_PATCHES
pg_fsync(fd)
{
extern int fsyncOff;
return fsyncOff ? 0 : fsync(fd);
}
#define fsync pg_fsync
#endif
#if defined(FDDEBUG)
static void

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.6 1996/11/03 05:07:55 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.7 1996/11/04 04:53:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -470,11 +470,7 @@ mdblindwrt(char *dbstr,
status = SM_SUCCESS;
/* write and sync the block */
#ifdef OPENLINK_PATCHES
if (write(fd, buffer, BLCKSZ) != BLCKSZ || (pg_fsync(fd) < 0))
#else
if (write(fd, buffer, BLCKSZ) != BLCKSZ || fsync(fd) < 0)
#endif
status = SM_FAIL;
if (close(fd) < 0)