FixFopen.c 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /************************************************************
  2. * * Hyphenate CONFIDENTIAL
  3. * __________________
  4. * Copyright (C) 2016 Hyphenate Inc. All rights reserved.
  5. *
  6. * NOTICE: All information contained herein is, and remains
  7. * the property of Hyphenate Inc.
  8. * Dissemination of this information or reproduction of this material
  9. * is strictly forbidden unless prior written permission is obtained
  10. * from Hyphenate Inc.
  11. */
  12. #include <stdio.h>
  13. #include <unistd.h>
  14. #include <string.h>
  15. #include <stdlib.h>
  16. FILE *fopen$UNIX2003( const char *filename, const char *mode )
  17. {
  18. return fopen(filename, mode);
  19. }
  20. int fputs$UNIX2003(const char *res1, FILE *res2){
  21. return fputs(res1,res2);
  22. }
  23. int nanosleep$UNIX2003(int val){
  24. return usleep(val);
  25. }
  26. char* strerror$UNIX2003(int errornum){
  27. return strerror(errornum);
  28. }
  29. double strtod$UNIX2003(const char *nptr, char **endptr){
  30. return strtod(nptr, endptr);
  31. }
  32. size_t fwrite$UNIX2003( const void *a, size_t b, size_t c, FILE *d )
  33. {
  34. return fwrite(a, b, c, d);
  35. }