parent
5a90576bdc
commit
aa5506191f
|
|
@ -297,6 +297,11 @@ typedef struct {
|
||||||
int fd;
|
int fd;
|
||||||
} SafeWriteFileInfo;
|
} SafeWriteFileInfo;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
char filename[PATH_MAX];
|
||||||
|
int fd;
|
||||||
|
} FilenameFDPair;
|
||||||
|
|
||||||
typedef void (*FreeDataFunc)(void *ptr);
|
typedef void (*FreeDataFunc)(void *ptr);
|
||||||
typedef int (*CompareFunc)(void *p1, void *p2);
|
typedef int (*CompareFunc)(void *p1, void *p2);
|
||||||
typedef void* (*MallocFunc)(size_t size);
|
typedef void* (*MallocFunc)(size_t size);
|
||||||
|
|
|
||||||
|
|
@ -776,7 +776,6 @@ int get_sysinfo(struct fast_sysinfo *info)
|
||||||
page_size = sysconf(_SC_PAGESIZE);
|
page_size = sysconf(_SC_PAGESIZE);
|
||||||
info->freeram = vm.t_free * page_size;
|
info->freeram = vm.t_free * page_size;
|
||||||
info->sharedram = vm.t_rmshr * page_size;
|
info->sharedram = vm.t_rmshr * page_size;
|
||||||
//info->bufferram = vm. //TODO:
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue