def getrlimit(resource): if not (0 <= resource < lib.RLIM_NLIMITS): return ValueError("invalid resource specified") result = ffi.new("long long[2]") if lib.my_getrlimit(resource, result) == -1: raise error(ffi.errno) return (result[0], result[1])
def getrlimit(resource): if not (0 <= resource < lib.RLIM_NLIMITS): return ValueError("invalid resource specified") result = ffi.new("long long[2]") if lib.my_getrlimit(resource, result) == -1: raise error(ffi.errno) return (result[0], result[1])