summaryrefslogtreecommitdiff
path: root/src/include/port/linux.h
AgeCommit message (Collapse)Author
2007-11-15pgindent run for 8.3.Bruce Momjian
2007-07-02Fix failure to restart Postgres when Linux kernel returns EIDRM for shmctl().Tom Lane
This is a Linux kernel bug that apparently exists in every extant kernel version: sometimes shmctl() will fail with EIDRM when EINVAL is correct. We were assuming that EIDRM indicates a possible conflict with pre-existing backends, and refusing to start the postmaster when this happens. Fortunately, there does not seem to be any case where Linux can legitimately return EIDRM (it doesn't track shmem segments in a way that would allow that), so we can get away with just assuming that EIDRM means EINVAL on this platform. Per reports from Michael Fuhr and Jon Lapham --- it's a bit surprising we have not seen more reports, actually.
2006-10-04pgindent run for 8.2.Bruce Momjian
2006-03-11Add CVS tag lines to files that were lacking them.Bruce Momjian
2004-08-29Pgindent run for 8.0.Bruce Momjian
2003-12-23Move slock_t typdefs into s_lock.h from include/port files forBruce Momjian
centralization and easier maintanence.
2003-10-26Update for m68k from Peter.Bruce Momjian
2003-10-26Fix #elif typo.Bruce Momjian
2003-10-26Update linux/mips port.Bruce Momjian
Add m68k to linux port.
2003-09-26Move -D_GNU_SOURCE hack from port header to template, so thatTom Lane
configure's tests see the same compilation environment as the code. Per discussion with Stephan Szabo.
2003-09-14Add missing support for Opteron (__x86_64__).Tom Lane
2002-11-10> > I'll re-check that with the ppc architecture guy here.Bruce Momjian
> > ... he is now about to write an inlined version that can go into > s_lock.h . I'll send the new patch later on... OK, here it comes: An inlined version of tas(), that works for both, powerpc and powerpc64. The patch is against 7.3b5 and passes the test suite on both architectures. Reinhard Max
2002-11-07Add #define _GNU_SOURCE to work around what seems to be Perl 5.8.0'sTom Lane
problem. Per recent discussions about plperl failing to build on Linux.
2001-10-28Another pgindent run. Fixes enum indenting, and improves #endifBruce Momjian
spacing. Also adds space for one-line comments.
2001-10-25pgindent run on all C files. Java run to follow. initdb/regressionBruce Momjian
tests pass.
2001-09-24Treat __s390x__ the same as __s390__. (taken from RPM patch set)Peter Eisentraut
2000-12-03Repair usage of the OVERLAPS operator.Thomas G. Lockhart
Allow some operator-like tokens to be used as function names. Flesh out support for time, timetz, and interval operators and interactions. Regression tests pass, but non-reference-platform horology test results will need to be updated.
2000-10-29USE_POSIX_TIME replaced by HAVE_TM_ZONE || HAVE_INT_TIMEZONE, which arePeter Eisentraut
equivalent. In linux.h there were some #undef HAVE_INT_TIMEZONE, which are useless because HAVE_TM_ZONE overrides it anyway, and messing with configure results isn't cool.
2000-10-28#define JMP_BUF has been unnecessary since the arrival of the sigsetjmpPeter Eisentraut
test.
2000-07-05attached to this mail is a patch from a colleague that makesBruce Momjian
PostgreSQL-7.0.2 run on Linux for the Intel-IA64 architecture. It also fixes a bug in the configure scripts that caused configure to fail on the fcntl(F_SETLK) test. This fix triggered a bug in the fcntl(F_SETLK) code of the Linux kernel when used on unix domain sockets resulting in postmaster to segfault immediately after startup. There is a fix available and included in the kernel that will be on SuSE Linux 7.0, but kernels <= 2.2.16 still have this bug. Reinhard Max
2000-04-18Include information for armv4l from Mark Knox <segfault@hardline.org>.Thomas G. Lockhart
2000-04-12Ye-old pgindent run. Same 4-space tabs.Bruce Momjian
2000-02-20Moved psql \eset and \eshow to \encodingPeter Eisentraut
Improved psql's Ctrl-C handling Fixed configure test for sigsetjmp that now even recognizes it if it's a macro
2000-01-15Fixed all elog related warnings, as well as a few others.Peter Eisentraut
1999-07-19linux/sparc cleanupBruce Momjian
1999-07-19Fix for linux/sparc.Bruce Momjian
1999-07-19Fix #if if.Bruce Momjian
1999-07-13More cpu cleanups, only for 6.6.Bruce Momjian
1999-03-14We have tested the patches on three platforms:Bruce Momjian
NetBSD/macppc LinuxPPC FreeBSD 2.2.6-RELEASE All of them seem happy with the regression test. Note that, however, compiling with optimization enabled on NetBSD/macppc causes an initdb failure (other two platforms are ok). After checking the asm code, we are suspecting that might be a compiler(egcs) bug. Tatsuo Ishii
1998-12-18I have ported PostgreSQL 6.4 to Cobalt Qube running Linux 2.0.33 withBruce Momjian
MIPS cpu (I think it's R4000). I have tested the patches on LinuxPPC and FreeBSD. I believe they do not harm other platforms. -- Tatsuo Ishii
1998-11-29Use autoconf to determine whether system has POSIX signals,Tom Lane
instead of relying on port's os.h to tell us. (Needed for HPUX where system major version is not enough info.) configure unsets USE_TK if X libraries not found. doc/Makefile uses gzcat or zcat as found by autoconf.
1998-09-01OK, folks, here is the pgindent output.Bruce Momjian
1998-05-04Missed the __alpha__ to __alpha change...Marc G. Fournier
From: David Gould <dg@illustra.com>
1998-05-04Major screwed up s_lock patches...need to be fixed...Marc G. Fournier
1998-04-29From: Jeroen van Vianen <jeroenv@design.nl>Marc G. Fournier
Attached patch will add a version() function to Postges, e.g. template1=> select version(); version ------------------------------------------------------------ PostgreSQL 6.3.2 on i586-pc-linux-gnu, compiled by gcc 2.8.1 (1 row)
1998-04-27From: Ryan Kirkpatrick <rkirkpat@nag.cs.colorado.edu>Marc G. Fournier
Ok, I have finally gotten all of the defines for Dec/Alpha and Linux/Alpha sorted out as Marc asked. There is no longer any need for '-Dalpha' or '-Dlinuxalpha' in either the Dec/Alpha or the Linux/Alpha template files (./src/template/{alpha,linuxalpha}). I have replaced every instance of 'alpha' or '__alpha__' with '__alpha', as that appears to be the common symbol between C compilers on both operating systems (RH4.2 & DecUnix 4.0b) for alpha.
1998-02-26pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian
1998-02-03From: teunis <teunis@mauve.computersupportcentre.com>Marc G. Fournier
Slight cleanups for glibc2.0
1997-09-16Mklinux patch from Tatsuo.Bruce Momjian
1997-09-07Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian
1997-08-17Fixes for alphalinux port by abrams@philos.umass.eduMarc G. Fournier
1997-07-29mkLinux patches from Tatsuo Ishii.Bruce Momjian
1997-04-24Various patches not commited, plus a linux/sparc patch fromMarc G. Fournier
Satoshi Ishikawa <power@sekine.densi.gifu-u.ac.jp>
1997-04-12More more of the include files under the include directoryMarc G. Fournier