search for: limits_file

Displaying 1 result from an estimated 1 matches for "limits_file".

Did you mean: limitnofile
2001 Feb 08
0
openssh2.3.0p1 and /etc/limits
...ekm + * Resource limits thanks to Cristian Gafton. + */ + +#include <sys/types.h> +#include <sys/stat.h> +#include <syslog.h> + +#include <stdio.h> +#include <utmp.h> +#include <pwd.h> + +#include <sys/resource.h> +#define LIMITS + +#ifdef LIMITS + +#ifndef LIMITS_FILE +#define LIMITS_FILE "/etc/limits" +#endif + +#define memzero(ptr, size) memset((void *)(ptr), 0, (size)) + +#define LOGIN_ERROR_RLIMIT 1 +#define LOGIN_ERROR_LOGIN 2 + +/* Set a limit on a resource */ +/* + * rlimit - RLIMIT_XXXX + * value - string value to be read + * multiplier - value...