Tagged files with gromacs 3.0 header and added some license info
[alexxy/gromacs.git] / include / sysstuff.h
1 /*
2  * $Id$
3  * 
4  *                This source code is part of
5  * 
6  *                 G   R   O   M   A   C   S
7  * 
8  *          GROningen MAchine for Chemical Simulations
9  * 
10  *                        VERSION 3.0
11  * 
12  * Copyright (c) 1991-2001
13  * BIOSON Research Institute, Dept. of Biophysical Chemistry
14  * University of Groningen, The Netherlands
15  * 
16  * This program is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU General Public License
18  * as published by the Free Software Foundation; either version 2
19  * of the License, or (at your option) any later version.
20  * 
21  * If you want to redistribute modifications, please consider that
22  * scientific software is very special. Version control is crucial -
23  * bugs must be traceable. We will be happy to consider code for
24  * inclusion in the official distribution, but derived work must not
25  * be called official GROMACS. Details are found in the README & COPYING
26  * files - if they are missing, get the official version at www.gromacs.org.
27  * 
28  * To help us fund GROMACS development, we humbly ask that you cite
29  * the papers on the package - you can find them in the top README file.
30  * 
31  * Do check out http://www.gromacs.org , or mail us at gromacs@gromacs.org .
32  * 
33  * And Hey:
34  * GRoups of Organic Molecules in ACtion for Science
35  */
36
37 #ifndef _sysstuff_h
38 #define _sysstuff_h
39
40 static char *SRCID_sysstuff_h = "$Id$";
41 #ifdef HAVE_CONFIG_H
42 #include <config.h>
43 #endif
44
45 #ifdef HAVE_IDENT
46 #ident  "@(#) sysstuff.h 1.22 12/16/92"
47 #endif /* HAVE_IDENT */
48
49 #ifdef CPLUSPLUS
50 extern "C" { 
51 #endif
52
53
54 #ifndef NO_STDINCLUDE
55
56 #ifndef _386_
57 #include <stdlib.h>
58 #endif
59 #include <stdio.h>
60 #include <errno.h>
61 #include <signal.h>
62 #ifndef _860_
63 #include <unistd.h>
64 #endif
65 #include <limits.h>
66 #include <time.h>
67
68 #else
69
70 extern  int     kill(int pid,int sig);
71 extern  int     fork();
72 extern  int     setpgrp();
73 extern  int     execv (char *path,char *argv[]);
74 extern  int     execvp(char *path,char *argv[]);
75 extern  int     execlp(char *path,...);
76 extern  int     getpid();
77 extern  int     getgid();
78 extern  int     _filbuf(FILE *stream);
79 extern void     perror(char *s);
80 extern int      printf(char *format,...);
81 extern int      fprintf(FILE *stream,char *format,...);
82 extern void     fflush(FILE *stream);
83 extern int      fread (char *ptr,int size,int nitems,FILE *stream);
84 extern int      fwrite(char *ptr,int size,int nitems,FILE *stream);
85 extern void     ungetc(char c,FILE *stream);
86 extern int      sscanf(char *s,char *format,...);
87 extern int      fscanf(FILE *,char *format,...);
88 extern int      scanf(char *format,...);
89 extern int      close(int fd);
90 extern int      fclose(FILE *stream);
91 extern int      fseek(FILE *stream,long offset,int ptrname);
92 extern int      read(int fd,char *buf,int nbyte);
93 extern int      write(int fd,char *buf,int nbyte);
94 extern int      ioctl(int fildes, int request, void *buf);
95 extern int      unlink(char *path);
96
97 #endif
98
99 #ifdef CPLUSPLUS
100 }
101 #endif
102
103 #endif  /* _sysstuff_h */