home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / gnu / g__inc / std.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-23  |  2.1 KB  |  75 lines

  1. // This may look like C code, but it is really -*- C++ -*-
  2. /* 
  3. Copyright (C) 1988 Free Software Foundation
  4.     written by Doug Lea (dl@rocky.oswego.edu)
  5.  
  6. This file is part of the GNU C++ Library.  This library is free
  7. software; you can redistribute it and/or modify it under the terms of
  8. the GNU Library General Public License as published by the Free
  9. Software Foundation; either version 2 of the License, or (at your
  10. option) any later version.  This library is distributed in the hope
  11. that it will be useful, but WITHOUT ANY WARRANTY; without even the
  12. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  13. PURPOSE.  See the GNU Library General Public License for more details.
  14. You should have received a copy of the GNU Library General Public
  15. License along with this library; if not, write to the Free Software
  16. Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  17. */
  18.  
  19.  
  20. #ifndef _std_h
  21. #ifdef __GNUG__
  22. #pragma once
  23. #pragma interface
  24. #endif
  25. #define _std_h 1
  26.  
  27. #include <stddef.h>
  28. #include <stdio.h>
  29. #include <string.h>
  30. #include <memory.h>
  31. #include <process.h>
  32. #include <unistd.h>
  33. #include <stdlib.h>
  34. #include <signal.h>
  35. #include <termcap.h>
  36.  
  37. extern "C" {
  38.  
  39. int       execl(const char*, const char *, ...);
  40. int       execle(const char*, const char *, ...);
  41. int       execlp(const char*, const char*, ...);
  42. int       exect(const char*,  const char**,  char**);
  43. int       execv(const char*,  const char**);
  44. int       execve(const char*, const char**, char**);
  45. int       execvp(const char*,  const char**);
  46. void volatile exit(int);
  47.  
  48. int       fork(void);
  49.  
  50. int       isatty(int);
  51. void      swab(void*, void*, int);
  52. int       symlink(const char*, const char*);
  53. int       system(const char*);
  54.  
  55. }
  56. extern char**   environ;
  57. extern volatile int errno;
  58. extern char*    sys_errlist[];
  59. extern int      sys_nerr;                  
  60. extern char*    optarg;
  61. extern int      opterr;
  62. extern int      optind;
  63.  
  64.  
  65. // extern "C" void* alloca(long unsigned int);
  66. #ifndef alloca
  67. #define alloca  __builtin_alloca
  68. #endif
  69. #if !(defined(__GNUG__) || defined(__GNUC__))
  70. extern "C" void *__builtin_alloca (long unsigned int);
  71. #endif
  72.  
  73.  
  74. #endif 
  75.