summaryrefslogtreecommitdiff
path: root/src/backend/port/ultrix4/port-protos.h
blob: 25f49db393dbc83fa0a6acaa8b4f7355e3f69f50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*-------------------------------------------------------------------------
 *
 * port-protos.h--
 *	  prototypes for Ultrix-specific routines
 *
 *
 * Copyright (c) 1994, Regents of the University of California
 *
 * $Id: port-protos.h,v 1.6 1997/09/07 04:47:24 momjian Exp $
 *
 *-------------------------------------------------------------------------
 */
#ifndef PORT_PORTOS_H
#define PORT_PORTOS_H

/*
 * Externals in libc that need prototypes (or at least declarations)
 */

extern char    *ecvt(double, int, int *, int *);
extern char    *fcvt(double, int, int *, int *);

/* dynloader.c */
/*
 * New dynamic loader.
 *
 * This dynamic loader uses Andrew Yu's libdl-1.0 package for Ultrix 4.x.
 * (Note that pg_dlsym and pg_dlclose are actually macros defined in
 * "port-protos.h".)
 */

#define pg_dlsym(h, f)	((func_ptr)dl_sym(h, f))
#define pg_dlclose(h)	dl_close(h)
#define pg_dlerror()	dl_error()
extern int		dl_init(char *);

/* port.c */

extern int		syscall();

extern void		init_address_fixup(void);

/* strdup.c: strdup() is not part of libc on Ultrix */
extern char    *strdup(char const *);

/* inet_aton() is not part of libc on Ultrix.  The following is from
   backend/port/inet_aton.h
*/

struct in_addr;
int
				inet_aton(const char *cp, struct in_addr * addr);

#endif							/* PORT_PORTOS_H */