Returns the current value of the real directory read flag. The old value of the real directory read flag is returned. NewLimit Specifies the new limit. The value and data type or structure of the NewLimit parameter depends on the Command parameter value that is used. Otherwise, a value of -1 is returned and the errno global variable is set to indicate the error.
All return values are permissible if the ulimit subroutine is successful.
To check for error situations, an application should set the errno global variable to 0 before calling the ulimit subroutine. If the ulimit subroutine returns a value of -1, the application should check the errno global variable to verify that it is nonzero. The brk subroutine, sbrk subroutine, getrlimit or setrlimit subroutine, pathconf subroutine, read subroutines, vlimit subroutine, write subroutine.