VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/nsprpub/pr/include/md/sunos4.h@ 21017

Last change on this file since 21017 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.2 KB
Line 
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 *
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
9 *
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
14 *
15 * The Original Code is the Netscape Portable Runtime (NSPR).
16 *
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998-2000
20 * the Initial Developer. All Rights Reserved.
21 *
22 * Contributor(s):
23 *
24 * Alternatively, the contents of this file may be used under the terms of
25 * either the GNU General Public License Version 2 or later (the "GPL"), or
26 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 * in which case the provisions of the GPL or the LGPL are applicable instead
28 * of those above. If you wish to allow use of your version of this file only
29 * under the terms of either the GPL or the LGPL, and not to allow others to
30 * use your version of this file under the terms of the MPL, indicate your
31 * decision by deleting the provisions above and replace them with the notice
32 * and other provisions required by the GPL or the LGPL. If you do not delete
33 * the provisions above, a recipient may use your version of this file under
34 * the terms of any one of the MPL, the GPL or the LGPL.
35 *
36 * ***** END LICENSE BLOCK ***** */
37
38#ifndef pr_sunos4_h___
39#define pr_sunos4_h___
40
41#ifndef SVR4
42
43/*
44** Hodge podge of random missing prototypes for the Sunos4 system
45*/
46#include <stdio.h>
47#include <stdarg.h>
48#include <time.h>
49#include <limits.h>
50#include <sys/types.h>
51
52#define PATH_MAX _POSIX_PATH_MAX
53
54struct timeval;
55struct timezone;
56struct itimerval;
57struct sockaddr;
58struct stat;
59struct tm;
60
61/* ctype.h */
62extern int tolower(int);
63extern int toupper(int);
64
65/* errno.h */
66extern char *sys_errlist[];
67extern int sys_nerr;
68
69#define strerror(e) sys_errlist[((unsigned)(e) < sys_nerr) ? e : 0]
70
71extern void perror(const char *);
72
73/* getopt */
74extern char *optarg;
75extern int optind;
76extern int getopt(int argc, char **argv, char *spec);
77
78/* math.h */
79extern int srandom(long val);
80extern long random(void);
81
82/* memory.h */
83#define memmove(to,from,len) bcopy((char*)(from),(char*)(to),len)
84
85extern void bcopy(const char *, char *, int);
86
87/* signal.h */
88/*
89** SunOS4 sigaction hides interrupts by default, so we can safely define
90** SA_RESTART to 0.
91*/
92#define SA_RESTART 0
93
94/* stdio.h */
95extern int printf(const char *, ...);
96extern int fprintf(FILE *, const char *, ...);
97extern int vprintf(const char *, va_list);
98extern int vfprintf(FILE *, const char *, va_list);
99extern char *vsprintf(char *, const char *, va_list);
100extern int scanf(const char *, ...);
101extern int sscanf(const char *, const char *, ...);
102extern int fscanf(FILE *, const char *, ...);
103extern int fgetc(FILE *);
104extern int fputc(int, FILE *);
105extern int fputs(const char *, FILE *);
106extern int puts(const char *);
107extern int fread(void *, size_t, size_t, FILE *);
108extern int fwrite(const char *, int, int, FILE *);
109extern int fseek(FILE *, long, int);
110extern long ftell(FILE *);
111extern int rewind(FILE *);
112extern int fflush(FILE *);
113extern int _flsbuf(unsigned char, FILE *);
114extern int fclose(FILE *);
115extern int remove(const char *);
116extern int setvbuf(FILE *, char *, int, size_t);
117extern int system(const char *);
118extern FILE *popen(const char *, const char *);
119extern int pclose(FILE *);
120
121/* stdlib.h */
122#define strtoul strtol
123
124extern int isatty(int fildes);
125extern long strtol(const char *, char **, int);
126extern int putenv(const char *);
127extern void srand48(long);
128extern long lrand48(void);
129extern double drand48(void);
130
131/* string.h */
132extern int strcasecmp(const char *, const char *);
133extern int strncasecmp(const char *, const char *, size_t);
134extern int strcoll(const char *, const char *);
135
136/* time.h */
137extern time_t mktime(struct tm *);
138extern size_t strftime(char *, size_t, const char *, const struct tm *);
139extern int gettimeofday(struct timeval *, struct timezone *);
140extern int setitimer(int, struct itimerval *, struct itimerval *);
141extern time_t time(time_t *);
142extern time_t timegm(struct tm *);
143extern struct tm *localtime(const time_t *);
144extern struct tm *gmtime(const time_t *);
145
146/* unistd.h */
147extern int rename(const char *, const char *);
148extern int ioctl(int, int, int *arg);
149extern int connect(int, struct sockaddr *, int);
150extern int readlink(const char *, char *, int);
151extern int symlink(const char *, const char *);
152extern int ftruncate(int, off_t);
153extern int fchmod(int, mode_t);
154extern int fchown(int, uid_t, gid_t);
155extern int lstat(const char *, struct stat *);
156extern int fstat(int, struct stat *);
157extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
158extern int gethostname(char *, int);
159extern char *getwd(char *);
160extern int getpagesize(void);
161
162#endif /* SVR4 */
163
164#endif /* pr_sunos4_h___ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette