Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.9 KiB

  1. /***
  2. *memory.h - declarations for buffer (memory) manipulation routines
  3. *
  4. * Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This include file contains the function declarations for the
  8. * buffer (memory) manipulation routines.
  9. * [System V]
  10. *
  11. ****/
  12. #ifndef _INC_MEMORY
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #if (_MSC_VER <= 600)
  17. #define __cdecl _cdecl
  18. #define __far _far
  19. #endif
  20. #ifndef _SIZE_T_DEFINED
  21. typedef unsigned int size_t;
  22. #define _SIZE_T_DEFINED
  23. #endif
  24. /* function prototypes */
  25. void * __cdecl _memccpy(void *, const void *,
  26. int, unsigned int);
  27. void * __cdecl memchr(const void *, int, size_t);
  28. int __cdecl memcmp(const void *, const void *,
  29. size_t);
  30. void * __cdecl memcpy(void *, const void *,
  31. size_t);
  32. int __cdecl _memicmp(const void *, const void *,
  33. unsigned int);
  34. void * __cdecl memset(void *, int, size_t);
  35. void __cdecl _movedata(unsigned int, unsigned int, unsigned int,
  36. unsigned int, unsigned int);
  37. /* model independent function prototypes */
  38. void __far * __far __cdecl _fmemccpy(void __far *, const void __far *,
  39. int, unsigned int);
  40. void __far * __far __cdecl _fmemchr(const void __far *, int, size_t);
  41. int __far __cdecl _fmemcmp(const void __far *, const void __far *,
  42. size_t);
  43. void __far * __far __cdecl _fmemcpy(void __far *, const void __far *,
  44. size_t);
  45. int __far __cdecl _fmemicmp(const void __far *, const void __far *,
  46. unsigned int);
  47. void __far * __far __cdecl _fmemset(void __far *, int, size_t);
  48. #ifndef __STDC__
  49. /* Non-ANSI names for compatibility */
  50. void * __cdecl memccpy(void *, const void *,
  51. int, unsigned int);
  52. int __cdecl memicmp(const void *, const void *,
  53. unsigned int);
  54. void __cdecl movedata(unsigned int, unsigned int, unsigned int,
  55. unsigned int, unsigned int);
  56. #endif
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60. #define _INC_MEMORY
  61. #endif /* _INC_MEMORY */