37d145c71807801efd9cb02926515c82e84c1c71 braney Wed Feb 7 10:12:23 2024 -0800 set up a mechanism to limit memory through an hg.conf variable diff --git src/inc/portable.h src/inc/portable.h index 9c792dc..0015e96 100644 --- src/inc/portable.h +++ src/inc/portable.h @@ -176,17 +176,21 @@ /* Return TRUE if fileName is a regular file. */ char *mustReadSymlinkExt(char *path, struct stat *sb); /* Read symlink or abort. FreeMem the returned value. */ char *mustReadSymlink(char *path); /* Read symlink or abort. Checks that path is a symlink. FreeMem the returned value. */ void makeSymLink(char *oldName, char *newName); /* Return a symbolic link from newName to oldName or die trying */ long long freeSpaceOnFileSystem(char *path); /* Given a path to a file or directory on a file system, return free space * in bytes. */ + +void setMemLimit(unsigned long maxMem); +/* Set the maximum amount of memory that the application can use. */ + #endif /* PORTABLE_H */