Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / network / stacks / AROSTCP / netinclude / clib / netlib_protos.h
blob7626b537f072718c46467106bd8cabeeb6d4a77c
1 #ifndef CLIB_NETLIB_PROTOS_H
2 #define CLIB_NETLIB_PROTOS_H
3 /*
4 ** $Filename: clib/netlib_protos.h $
5 ** $Release$
6 ** $Revision$
7 ** $Date$
8 **
9 ** Prototypes for netlib utility functions
11 ** Copyright © 1993 AmiTCP/IP Group, <AmiTCP-Group@hut.fi>
12 ** Helsinki University of Technology, Finland.
13 ** All rights reserved.
14 ** Copyright © 2005 Pavel Fedin
17 #ifndef EXEC_TYPES_H
18 #include <exec/types.h>
19 #endif
20 #ifndef SYS_TYPES_H
21 #include <sys/types.h>
22 #endif
23 #ifndef SYS_CDEFS_H
24 #include <sys/cdefs.h>
25 #endif
26 #ifndef EXEC_LIBRARIES_H
27 struct Library;
28 #endif
29 #ifndef SYS_TIME_H
30 #include <sys/time.h>
31 #endif
32 #ifndef SYS_SOCKET_H
33 #include <sys/socket.h>
34 #endif
35 #ifndef NETDB_H
36 struct hostent;
37 struct netent;
38 struct servent;
39 struct protoent;
40 #endif
41 #ifndef NETINET_IN_H
42 #include <netinet/in.h>
43 #endif
44 #ifndef DOS_DOS_H
45 #include <dos/dos.h>
46 #endif
47 #ifndef SYS_STAT_H
48 #include <sys/stat.h>
49 #endif
50 //#include <lineread.h>
51 #include <stdio.h>
53 /* chmod.c */
54 int chmod(const char *path, mode_t mode);
56 /* chown.c */
57 int chown(const char *name, uid_t uid, gid_t gid);
59 /* dummy.c */
60 struct netent *getnetent(void);
61 struct servent *getservent(void);
63 /* getopt.c */
64 extern int opterr;
65 extern int optind;
66 extern int optopt;
67 extern char *optarg;
68 int getopt(int argc, char * const *argv, const char *opts);
70 /* gettimeofday.c */
71 int gettimeofday(struct timeval *tp, struct timezone *tzp);
73 /* herror.c */
74 void herror(const char *banner);
76 /* init_inet_daemon.c */
77 int init_inet_daemon(void);
79 /* ioctl.c */
80 int ioctl(int fd, unsigned int request, char *argp);
82 /* iomode.c */
83 int iomode(int fd, int mode);
85 /* isatty.c */
86 int isatty(int fd);
88 /* lineread.c */
89 int lineRead(struct LineRead * rl);
91 /* perror.c */
92 void perror(const char *banner);
94 /* popen.c */
95 FILE *popen(const char *cmd, const char *mode);
96 FILE *popenl(const char *arg0, ...);
97 int pclose(FILE *fptr);
98 char *mktemp(char * template);
100 /* printfault.c */
101 void PrintNetFault(LONG code, const UBYTE *banner);
103 /* printuserfault.c */
104 void PrintUserFault(LONG code, const UBYTE *banner);
106 /* rcmd.c */
107 int rcmd(char **, int, const char *, const char *, const char *, int *);
108 int rresvport(int *alport);
110 /* serveraccept.c */
111 long serveraccept(char *pname, struct sockaddr_in *ha);
113 /* set_socket_stdio.c */
114 int set_socket_stdio(int sock);
116 /* setegid.c */
117 int setegid(gid_t g);
119 /* seteuid.c */
120 int seteuid(uid_t u);
122 /* sleep.c */
123 unsigned sleep(unsigned secs);
125 /* stat.c */
126 int stat(const char *name, struct stat *st);
128 /* strerror.c */
129 char *strerror(int code);
131 /* stubs.c */
132 #ifndef inet_ntoa
133 char * inet_ntoa(struct in_addr addr);
134 #endif
135 #ifndef inet_makeaddr
136 struct in_addr inet_makeaddr(int net, int host);
137 #endif
138 #ifndef inet_lnaof
139 unsigned long inet_lnaof(struct in_addr addr);
140 #endif
141 #ifndef inet_netof
142 unsigned long inet_netof(struct in_addr addr);
143 #endif
144 #ifndef select
145 int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exeptfds,
146 struct timeval *timeout);
147 #endif
149 /* getpid.c */
150 #ifndef getpid
151 pid_t getpid(void);
152 #endif
154 /* syslog.c */
155 void openlog(const char *ident, int logstat, int logfac);
156 void closelog(void);
157 int setlogmask(int pmask);
159 /* timerinit.c */
160 extern long __local_to_GMT;
162 /* usleep.c */
163 void usleep(unsigned int usecs);
165 /* utime.c */
166 #ifndef UTIME_H
167 struct utimbuf;
168 #endif
169 int utime(const char *name, const struct utimbuf *times);
171 /* asprintf.c */
172 int asprintf(char **ret, const char *format, ...);
174 /* vasprintf.c */
175 int vasprintf(char **ret, const char *format, va_list ap);
177 /* err.c */
178 void verrc(int eval, int code, const char *fmt, va_list ap) __attribute__((noreturn));
179 void vwarnc(int code, const char *fmt, va_list ap);
181 #if 0 /* TODO */
183 /* _close.c */
184 int __close(int fd);
186 /* _dup.c */
187 /* _dup2.c */
189 /* access.c */
190 int __access(const char *name, int mode);
192 /* dostat.c */
193 void __dostat(struct FileInfoBlock *fib, struct stat *st);
195 /* fhopen.c */
196 int fhopen(long file, int mode);
198 /* fib.c */
199 extern struct FileInfoBlock __dostat_fib[1];
201 /* _fstat.c */
202 int fstat(int fd, struct stat *st);
204 /* _lseek.c */
205 long __lseek(int fd, long rpos, int mode);
207 /* _open.c */
208 int __open(const char *name, int mode, ...);
210 /* _read.c */
211 int __read(int fd, void *buffer, unsigned int length);
213 /* _write.c */
214 int __write(int fd, const void *buffer, unsigned int length);
216 #endif
218 #endif /* !CLIB_NETLIB_PROTOS_H */