mirror of https://github.com/postgres/postgres
structure, and move the init_address_fixup() code directly into backend/main/main.c with appropriate #ifdefs around it...REL6_4
parent
fe3737f6f9
commit
eb348bf41c
@ -1,34 +0,0 @@ |
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for port/alpha
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/alpha/Attic/Makefile,v 1.3 1997/12/20 00:25:13 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global |
||||
|
||||
INCLUDE_OPT = -I../..
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = port.o
|
||||
|
||||
all: SUBSYS.o |
||||
|
||||
SUBSYS.o: $(OBJS) |
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep: |
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean: |
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend)) |
||||
include depend |
||||
endif |
||||
|
||||
@ -1,19 +0,0 @@ |
||||
/*-------------------------------------------------------------------------
|
||||
* |
||||
* port-protos.h-- |
||||
* prototypes for OSF/1-specific routines |
||||
* |
||||
* |
||||
* Copyright (c) 1994, Regents of the University of California |
||||
* |
||||
* $Id: port-protos.h,v 1.4 1998/02/02 03:49:07 scrappy Exp $ |
||||
* |
||||
*------------------------------------------------------------------------- |
||||
*/ |
||||
|
||||
#ifndef PORT_PROTOS_H |
||||
#define PORT_PROTOS_H |
||||
|
||||
extern void init_address_fixup(void); |
||||
|
||||
#endif /* PORT_PROTOS_H */ |
||||
@ -1,37 +0,0 @@ |
||||
/*-------------------------------------------------------------------------
|
||||
* |
||||
* port.c-- |
||||
* OSF/1-specific routines |
||||
* |
||||
* Copyright (c) 1994, Regents of the University of California |
||||
* |
||||
* |
||||
* IDENTIFICATION |
||||
* $Header: /cvsroot/pgsql/src/backend/port/alpha/Attic/port.c,v 1.3 1997/09/08 02:25:50 momjian Exp $ |
||||
* |
||||
*------------------------------------------------------------------------- |
||||
*/ |
||||
#include <sys/types.h> |
||||
#include <sys/sysinfo.h> |
||||
#include <sys/proc.h> |
||||
#include "c.h" |
||||
#include "utils/elog.h" |
||||
|
||||
void |
||||
init_address_fixup() |
||||
{ |
||||
#ifdef NOFIXADE |
||||
int buffer[] = {SSIN_UACPROC, UAC_SIGBUS}; |
||||
|
||||
#endif /* NOFIXADE */ |
||||
#ifdef NOPRINTADE |
||||
int buffer[] = {SSIN_UACPROC, UAC_NOPRINT}; |
||||
|
||||
#endif /* NOPRINTADE */ |
||||
|
||||
if (setsysinfo(SSI_NVPAIRS, buffer, 1, (caddr_t) NULL, |
||||
(unsigned long) NULL) < 0) |
||||
{ |
||||
elog(NOTICE, "setsysinfo failed: %d\n", errno); |
||||
} |
||||
} |
||||
@ -1,34 +0,0 @@ |
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for port/hpux
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/hpux/Attic/Makefile,v 1.3 1997/12/20 00:25:34 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global |
||||
|
||||
INCLUDE_OPT = -I../..
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = port.o dynloader.o tas.o
|
||||
|
||||
all: SUBSYS.o |
||||
|
||||
SUBSYS.o: $(OBJS) |
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep: |
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean: |
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend)) |
||||
include depend |
||||
endif |
||||
|
||||
@ -1,32 +0,0 @@ |
||||
/*-------------------------------------------------------------------------
|
||||
* |
||||
* port.c-- |
||||
* port-specific routines for HP-UX |
||||
* |
||||
* Copyright (c) 1994, Regents of the University of California |
||||
* |
||||
* |
||||
* IDENTIFICATION |
||||
* $Header: /cvsroot/pgsql/src/backend/port/hpux/Attic/port.c,v 1.4 1997/12/19 02:45:44 scrappy Exp $ |
||||
* |
||||
* NOTES |
||||
* For the most part, this file gets around some non-POSIX calls |
||||
* in POSTGRES. |
||||
* |
||||
*------------------------------------------------------------------------- |
||||
*/ |
||||
#include <unistd.h> /* for rand()/srand() prototypes */ |
||||
#include <math.h> /* for pow() prototype */ |
||||
#include <sys/syscall.h> /* for syscall #defines */ |
||||
|
||||
#include "c.h" |
||||
|
||||
void |
||||
init_address_fixup() |
||||
{ |
||||
|
||||
/*
|
||||
* On PA-RISC, unaligned access fixup is handled by the compiler, not |
||||
* by the kernel. |
||||
*/ |
||||
} |
||||
@ -1,26 +0,0 @@ |
||||
/*-------------------------------------------------------------------------
|
||||
* |
||||
* port.c-- |
||||
* Ultrix-specific routines |
||||
* |
||||
* Copyright (c) 1994, Regents of the University of California |
||||
* |
||||
* |
||||
* IDENTIFICATION |
||||
* $Header: /cvsroot/pgsql/src/backend/port/ultrix4/Attic/port.c,v 1.3 1997/09/07 04:47:27 momjian Exp $ |
||||
* |
||||
*------------------------------------------------------------------------- |
||||
*/ |
||||
#include <sys/syscall.h> |
||||
#include <sys/sysmips.h> |
||||
|
||||
#include "c.h" |
||||
#include "port-protos.h" |
||||
|
||||
void |
||||
init_address_fixup() |
||||
{ |
||||
#ifdef NOFIXADE |
||||
syscall(SYS_sysmips, MIPS_FIXADE, 0, NULL, NULL, NULL); |
||||
#endif /* NOFIXADE */ |
||||
} |
||||
Loading…
Reference in new issue