1 /*
2                     Language Independent Library
3 
4             Copyright 1983-2009 Green Hills Software,Inc.
5 
6  *  This program is the property of Green Hills Software, Inc,
7  *  its contents are proprietary information and no part of it
8  *  is to be disclosed to anyone except employees of Green Hills
9  *  Software, Inc., or as agreed in writing signed by the President
10  *  of Green Hills Software, Inc.
11 */
12 /* ind_io.h: declarations for callers of ind_io.c */
13 
14 #if defined(__VXWORKS) || defined (__OSE)
15 #  include <unistd.h>
16 #else
17 
18 /*      Basic I/O Routines					*/
19 
20 int write (int fno, const void *buf, int size);
21 int read (int fno, void *buf, int size);
22 int open (const char *filename, int mode, ...);
23 int creat (const char *filename, int prot);
24 int close (int fno);
25 #ifdef __INTEGRITY_SHARED_LIBS
26 int hostio_creat (const char *filename, int prot);
27 /*   INTEGRITY's lseek has off_t defined to be a 64 bit signed integer. */
28 long long lseek (int fno, long long offset, int end);
29 #else
30 long lseek (int fno, long offset, int end);
31 #endif
32 int unlink (const char *name);
33 int fcntl (int fno, int cmd, int arg);
34 
35 /*	Host I/O-specific defaults for above routines		*/
36 #ifndef __INTEGRITY_SHARED_LIBS
37 int __ghs_hostio_write (int fno, const void *buf, int size);
38 int __ghs_hostio_read (int fno, void *buf, int size);
39 int __ghs_hostio_open (const char *filename, int mode, ...);
40 int __ghs_hostio_creat (const char *filename, int prot);
41 int __ghs_hostio_close (int fno);
42 long __ghs_hostio_lseek (int fno, long offset, int end);
43 int __ghs_hostio_unlink (const char *name);
44 int __ghs_hostio_fcntl (int fno, int cmd, int arg);
45 #endif
46 
47 /*	Optional Function					*/
48 
49 int getpid (void);
50 
51 #endif /* __VXWORKS || __OSE */
52