summaryrefslogtreecommitdiff
path: root/src/backend/port/dynloader
AgeCommit message (Collapse)Author
2001-10-25Add do { ... } while (0) to more bad macros.Bruce Momjian
2001-08-07A small patch to keep postgres working on the latest BeOS.Bruce Momjian
Cyril VELTER
2001-06-20There is no RTLD_GLOBAL on OpenBSD, says Alex Pilosov <alex@pilosoft.com>.Peter Eisentraut
2001-05-30Fix broken $Header$ declaration.Tom Lane
2001-05-15Add missing dlfcn.h includes. Fix "" vs <>.Peter Eisentraut
2001-05-15Re-add pg_index.indisclustered in a minimalist way. Also fix BSDiBruce Momjian
dynamic linker change. #include must be before #ifdef test.
2001-05-14Use RTLD_GLOBAL flag for dlopen-style dynamic loaders.Peter Eisentraut
2001-04-02Tom Ivar Helbekkmo <tih@kpnQwest.no> says that dynamic linking worksTom Lane
now on VAX NetBSD. Hence, remove #ifdef'd disable tests.
2001-03-22pgindent run. Make it all clean.Bruce Momjian
2001-03-01Add missing include.Peter Eisentraut
2001-02-10Restructure the key include files per recent pghackers discussion: thereTom Lane
are now separate files "postgres.h" and "postgres_fe.h", which are meant to be the primary include files for backend .c files and frontend .c files respectively. By default, only include files meant for frontend use are installed into the installation include directory. There is a new make target 'make install-all-headers' that adds the whole content of the src/include tree to the installed fileset, for use by people who want to develop server-side code without keeping the complete source tree on hand. Cleaned up a whole lot of crufty and inconsistent header inclusions.
2001-02-07Need to specify DYNAMIC_PATH flag to shl_load, else HPUX's dld will notTom Lane
honor library search path that we so carefully installed into the executable ...
2001-01-24Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group.Bruce Momjian
2000-12-18>> Here is a patch for the beos port (All regression tests are OK).Bruce Momjian
>> xlog.c : special case for beos to avoid 'link' which does not work yet >> beos/sem.c : implementation of new sem_ctl call (GETPID) and a new >sem_op >> flag (IPCNOWAIT) >> dynloader/beos.c : add a verification of symbol validity (seem that the >> loader sometime return OK with an invalid symbol) >> postmaster.c : add beos forking support for the new checkpoint process >> postgres.c : remove beos special case for getrusage >> beos.h : Correction of a bas definition of AF_UNIX, misc defnitions >> >> >> thanks >> >> >> cyril Cyril VELTER
2000-12-11Darwin porting patches from Peter Bierman <bierman@apple.com>Tom Lane
2000-11-14Fix return typePeter Eisentraut
2000-11-09Real dynamic loader codePeter Eisentraut
2000-10-31This is the minimal version of the Darwin support patch fromPeter Eisentraut
Bruce Hartzler <bruceh@mail.utexas.edu>. It contains shared library support, regression test map, and the usual template files. The dynamic loader is missing, the spin lock code apparently doesn't assemble due to syntax problems, and semaphores are to be hoped for from Apple.
2000-10-10Unify solaris_i386 and solaris_sparc templates. They were almost identicalPeter Eisentraut
anyway, the rest being due to them not being kept in sync. Add configure test for lorder and use it (on Solaris) when found.
2000-10-10Some dynloader files missed the template rename a while back.Peter Eisentraut
2000-10-07 The beos port in the source tree doesn't even compile. and evenBruce Momjian
after that dynamic loading isn't working and shared memory handling is broken. Attached with this message, there is a Zip file which contain : * beos.diff = patch file generated with difforig * beos = folder with beos support files which need to be moved in / src/backend/port * expected = foler with three file for message and precision difference in regression test * regression.diff = rule problem (need to kill the backend manualy) * dynloader = dynloader files (they are also in the pacth files, but there is so much modification that I have join full files) Everything works except a problem in 'rules' Is there some problems with rules in the current tree ? It used to works with last week tree. Cyril VELTER
2000-10-03New diff that now covers the entire tree. Applying this gets postgresqlBruce Momjian
working on the VERY latest version of BeOS. I'm sure there will be alot of comments, but then if there weren't I'd be disappointed! Thanks for your continuing efforts to get this into your tree. Haven't bothered with the new files as they haven't changed. BTW Peter, the compiler is "broken" about the bool define and so on. I'm filing a bug report to try and get it addressed. Hopefully then we can tidy up the code a bit. I await the replies with interest :) David Reid
2000-10-02Here is the first batch of files and diffs for the BeOS port. I've run intoBruce Momjian
problems with some bits of it, but when all the patches are in it'll build and we can fix it from there :) I've got a version that builds and runs and that is the basis for these patches. The first file has the new additional files that are required, template/beos backend/port/dynloader/beos.c backend/port/dynloader/beos.h include/port/beos.h makefiles/Makefile.beos The second is a tarball of diffs against a few files. I've added sys/ipc.h to configure and config.h via configure.in and config.h.in and then started adding the check as this file isn't needed on BeOS and having loads of #ifdef BEOS isn't as obvious as #ifdef HAVE_SYS_IPC_H and isn't as autconf'ish :) Files touched are include/c.h configure.in include/config.h.in include/storage/ipc.h include/utils/int8.h Let me know how these go. I'll await a response before submitting any more. Any problems just get in touch. David Reid
2000-09-29Please apply the following patch to fix problems with the AIX portBruce Momjian
and the fmgr redesign. It makes the homebrewn dl*() functions for more recent Versions of AIX obsolete by using the system dl*() functions instead. It also fixes the expected file for the horology regression test. Please regenerate configure from configure.in, I don't have the environment/time. Andreas
2000-07-07Fix misuse of StrNCpy to copy and add null to non-null-terminated data.Tom Lane
Does not work since it fetches one byte beyond the source data, and when the phase of the moon is wrong, the source data is smack up against the end of backend memory and you get SIGSEGV. Don't laugh, this is a fix for an actual user bug report.
2000-05-28First round of changes for new fmgr interface. fmgr itself and theTom Lane
key call sites are changed, but most called functions are still oldstyle. An exception is that the PL managers are updated (so, for example, NULL handling now behaves as expected in plperl and plpgsql functions). NOTE initdb is forced due to added column in pg_proc.
2000-04-26On HPUX, shl_load should be called with options BIND_IMMEDIATE ratherTom Lane
than BIND_DEFERRED. That way, if the loaded library has unresolved references, shl_load fails cleanly. As we had it, shl_load would succeed and then the dynlinker would call abort() when we try to call into the loaded library. abort()ing a backend is uncool.
2000-03-08I've made a diff against the 7.0beta1 tree that accomplishes several things:Bruce Momjian
1) adds NetBSD shared lib support on both ELF and a.out platforms 2) replaces "-L$(LIBPQDIR) -lpq" with "$(LIBPQ)" defined in Makefile.global. This makes it much easier to build stuff in the source tree after you've already installed the libraries. 3) adds TEMPLATEDIR in Makefile.global that indicates where the database templates are stored. This separates the template files from real libraries that are installed in $(LIBDIR). 4) changes include order of <readline/readline.h> and <readline.h>. The latest GNU readline installs its headers under a readline subdirectory. In addition to applying the patch below the following files need to be copied: backend/port/dynloader: bsd.h -> netbsd.h bsd.c -> netbsd.c include/port: bsd.h -> netbsd.h makefiles: Makefile.bsd -> Makefile.netbsd It would be great to see this incorporated into the source tree before the 7.0 release is cut. Thanks! -- Johnny C. Lam <lamj@stat.cmu.edu>
2000-01-26Add:Bruce Momjian
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc to all files copyright Regents of Berkeley. Man, that's a lot of files.
1999-12-17Remove unused files.Bruce Momjian
1999-12-17Fix MULTIBYTE handling in string by using strcat.Bruce Momjian
1999-12-16Update for QNX.Bruce Momjian
1999-12-16I have done the QNX4 port with the current source tree. The number ofBruce Momjian
backend/Makefiles to be patched could significantly be reduced since they have been adopted to the QNX4 needs. Andreas Kardos
1999-10-25'extern char *pg_pathname' in these files fails to agree withTom Lane
postgres.c's declaration of 'char pg_pathname[...]'. I dunno when these ports were last used, but they are sure broken now...
1999-09-28Fix for AIX dynaloader from Zeugswetter AndreaBruce Momjian
1999-07-17 Move some system includes into c.h, and remove duplicates.Bruce Momjian
1999-07-16Final cleanup.Bruce Momjian
1999-07-16Update #include cleanupsBruce Momjian
1999-07-15Change #include's to use <> and "" as appropriate.Bruce Momjian
1999-07-15Remove unused #includes in *.c files.Bruce Momjian
1999-07-15Clean up #include in /include directory. Add scripts for checking includes.Bruce Momjian
1999-07-13Redefine cpu's as __cpu__. Only for 6.6 branch.Bruce Momjian
1999-05-25pgindent run over code.Bruce Momjian
1999-05-17Apply freebsd specific patches dealign with ELF system from FreeBSD'sMarc G. Fournier
ports collection ...
1999-05-05small error message improvement from Dmitry SamersoffBruce 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
1999-02-21From: Tatsuo Ishii <t-ishii@sra.co.jp>Marc G. Fournier
Ok. I made patches replacing all of "#if FALSE" or "#if 0" to "#ifdef NOT_USED" for current. I have tested these patches in that the postgres binaries are identical.
1999-02-13Change my-function-name-- to my_function_name, and optimizer renames.Bruce Momjian
1999-01-18Add missing Windows files.Bruce Momjian
1999-01-17Replace direct inclusions of c.h with inclusion of postgres.h,Tom Lane
to ensure that config.h is included as well.