Advertisement
Guest User

minimal headers to build libgcc and libgcov

a guest
Sep 19th, 2014
709
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.59 KB | None | 0 0
  1. /* unistd.h: */
  2. #ifndef _UNISTD_H
  3. #define _UNISTD_H
  4. #include <sys/types.h>
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. int execv(const char*, char* const[]);
  9. int execve(const char*, char* const[], char* const[]);
  10. int execvp(const char*, char* const[]);
  11. pid_t fork(void);
  12. #ifdef __cplusplus
  13. }
  14. #endif
  15. #endif
  16. /* time.h: */
  17. /* stdio.h: */
  18. #ifndef _STDIO_H
  19. #define _STDIO_H
  20. #include <stdarg.h>
  21. #include <stddef.h>
  22. #define SEEK_SET 0
  23. typedef struct { int unused; } FILE;
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. extern FILE* stderr;
  28. #define stderr stderr
  29. int fclose(FILE*);
  30. int fflush(FILE*);
  31. FILE* fopen(const char*, const char*);
  32. int fprintf(FILE*, const char*, ...);
  33. size_t fread(void*, size_t, size_t, FILE*);
  34. int fseek(FILE*, long, int);
  35. long ftell(FILE*);
  36. size_t fwrite(const void*, size_t, size_t, FILE*);
  37. void setbuf(FILE*, char*);
  38. int vfprintf(FILE*, const char*, va_list);
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42. #endif
  43. /* sys/types.h: */
  44. #ifndef _SYS_TYPES_H
  45. #define _SYS_TYPES_H
  46. typedef int pid_t;
  47. #endif
  48. /* errno.h: */
  49. /* string.h: */
  50. #ifndef _STRING_H
  51. #define _STRING_H
  52. #include <stddef.h>
  53. #ifdef __cplusplus
  54. extern "C" {
  55. #endif
  56. void* memcpy(void*, const void*, size_t);
  57. void* memset(void*, int, size_t);
  58. char* strcpy(char*, const char*);
  59. size_t strlen(const char*);
  60. #ifdef __cplusplus
  61. }
  62. #endif
  63. #endif
  64. /* stdlib.h: */
  65. #ifndef _STDLIB_H
  66. #define _STDLIB_H
  67. #ifdef __cplusplus
  68. extern "C" {
  69. #endif
  70. void abort(void);
  71. int atexit(void (*)(void));
  72. int atoi(const char*);
  73. void free(void*);
  74. char* getenv(const char*);
  75. void* malloc(size_t);
  76. #ifdef __cplusplus
  77. }
  78. #endif
  79. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement