osbind.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Copyright (c) 1983-2013 Composers Desktop Project Ltd
  3. * http://www.composersdesktop.com
  4. * This file is part of the CDP System.
  5. * The CDP System is free software; you can redistribute it
  6. * and/or modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2.1 of the License, or (at your option) any later version.
  9. *
  10. * The CDP System is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. * See the GNU Lesser General Public License for more details.
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with the CDP System; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. *
  18. */
  19. /*
  20. * osbind.h - version for porting from Atari to WindowsNT, DOS and Unix
  21. */
  22. #ifndef __OSBIND_INCLUDED__
  23. #define __OSBIND_INCLUDED__
  24. #define OSBIND_H_RCSID "$Id: osbind.h%v 1.3 1995/10/28 17:10:20 martin Exp $"
  25. /*
  26. * $Log: osbind.h%v $
  27. * Revision 1.3 1995/10/28 17:10:20 martin
  28. * Change memory size constants to user-visible #defines
  29. *
  30. * Revision 1.2 1994/12/13 00:46:19 martin
  31. * Change declarations for portability of Unix
  32. *
  33. * Revision 1.1 1994/10/31 15:25:06 martin
  34. * Initial revision
  35. *
  36. */
  37. /* RWD note: size needs to be a signed value, so we can't use size_t */
  38. /* NB these decls also in sfsys.h */
  39. void *Malloc(long size);
  40. void Mfree(void *ptr);
  41. unsigned int hz200(void);
  42. unsigned int hz1000(void);
  43. unsigned int getdrivefreespace(const char *path);
  44. char *legalfilename(char *filename);
  45. #if !defined(_WIN32)
  46. char *_fullpath(char *, const char *, size_t);
  47. #endif
  48. #if defined unix || defined __GNUWIN32__
  49. int _stricmp(const char *a, const char *b);
  50. int _strnicmp(const char *a, const char *b, size_t len);
  51. #ifndef O_BINARY
  52. #define O_BINARY (0)
  53. #endif
  54. #endif
  55. #if defined(_WIN32) || defined __GNUWIN32__
  56. double drand48(void);
  57. #endif
  58. void initrand48(void);
  59. #define MIN_CDP_MEMORY_K_BBSIZE (100)
  60. #define MAX_CDP_MEMORY_K_BBSIZE (20 * 1024)
  61. #define MAX_CDP_MEMORY_BBSIZE (20 * 1024 * 1024)
  62. #define DEFAULT_CDP_MEMORY_BBSIZE (1024*1024)
  63. #endif /*__OSBIND_INCLUDED__*/