⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hpux.c

📁 关系型数据库 Postgresql 6.5.2
💻 C
字号:
/*------------------------------------------------------------------------- * * dynloader.c *	  dynamic loader for HP-UX using the shared library mechanism * * Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION *	  $Header: /usr/local/cvsroot/pgsql/src/backend/port/dynloader/hpux.c,v 1.7 1999/02/13 23:17:20 momjian Exp $ * *	NOTES *		all functions are defined here -- it's impossible to trace the *		shl_* routines from the bundled HP-UX debugger. * *------------------------------------------------------------------------- *//* System includes */#include <stdio.h>#include <a.out.h>#include <dl.h>#include "postgres.h"#include "fmgr.h"#include "utils/dynamic_loader.h"#include "dynloader.h"void *pg_dlopen(char *filename){	shl_t		handle = shl_load(filename, BIND_DEFERRED, 0);	return (void *) handle;}func_ptrpg_dlsym(void *handle, char *funcname){	func_ptr	f;	if (shl_findsym((shl_t *) & handle, funcname, TYPE_PROCEDURE, &f) == -1)		f = (func_ptr) NULL;	return f;}voidpg_dlclose(void *handle){	shl_unload((shl_t) handle);}char *pg_dlerror(){	static char errmsg[] = "shl_load failed";	return errmsg;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -