mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-29 19:41:00 +00:00
(NSPageSize, NSLogPageSize, NSRoundUpToMultipleOfPageSize,
NSRoundDownToMultipleOfPageSize, NSRealMemoryAvailable, NSAllocateMemoryPages, NSDeallocateMemoryPages, NSCopyMemoryPages): New functions declared. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1572 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
04bedab012
commit
ecf3fd8373
1 changed files with 19 additions and 1 deletions
|
@ -26,9 +26,12 @@
|
||||||
#define h_zone_NS_h
|
#define h_zone_NS_h
|
||||||
|
|
||||||
#if NeXT_runtime
|
#if NeXT_runtime
|
||||||
|
|
||||||
#include <objc/zone.h>
|
#include <objc/zone.h>
|
||||||
#define NSZone NXZone
|
#define NSZone NXZone
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <gnustep/base/config.h>
|
#include <gnustep/base/config.h>
|
||||||
|
@ -162,5 +165,20 @@ extern void NSNameZone(NSZone *z, const char *name);
|
||||||
extern void NSSetZoneName (NSZone *z, NSString *name);
|
extern void NSSetZoneName (NSZone *z, NSString *name);
|
||||||
extern NSString *NSZoneName (NSZone *z);
|
extern NSString *NSZoneName (NSZone *z);
|
||||||
|
|
||||||
#endif /* __NeXT__ */
|
|
||||||
|
/* Memory-Page-related functions. */
|
||||||
|
|
||||||
|
extern unsigned NSPageSize ();
|
||||||
|
extern unsigned NSLogPageSize ();
|
||||||
|
extern unsigned NSRoundUpToMultipleOfPageSize (unsigned bytes);
|
||||||
|
extern unsigned NSRoundDownToMultipleOfPageSize (unsigned bytes);
|
||||||
|
|
||||||
|
extern unsigned NSRealMemoryAvailable ();
|
||||||
|
|
||||||
|
extern void *NSAllocateMemoryPages (unsigned bytes);
|
||||||
|
extern void NSDeallocateMemoryPages (void *ptr, unsigned bytes);
|
||||||
|
extern void NSCopyMemoryPages (const void *source, void *dest, unsigned bytes);
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* NeXT_runtime */
|
||||||
#endif /* h_zone_NS_h */
|
#endif /* h_zone_NS_h */
|
||||||
|
|
Loading…
Reference in a new issue