}
#else /* ! (WITH_SETRLIMIT && defined(RLIMIT_MEMLOCK)) */
int
-virProcessSetMaxMemLock(pid_t pid G_GNUC_UNUSED, unsigned long long bytes)
+virProcessSetMaxMemLock(pid_t pid G_GNUC_UNUSED,
+ unsigned long long bytes G_GNUC_UNUSED)
{
- if (bytes == 0)
- return 0;
-
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return -1;
}
#else /* ! (WITH_GETRLIMIT && defined(RLIMIT_MEMLOCK)) */
int
virProcessGetMaxMemLock(pid_t pid G_GNUC_UNUSED,
- unsigned long long *bytes)
+ unsigned long long *bytes G_GNUC_UNUSED)
{
- if (!bytes)
- return 0;
-
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return -1;
}
}
#else /* ! (WITH_SETRLIMIT && defined(RLIMIT_NPROC)) */
int
-virProcessSetMaxProcesses(pid_t pid G_GNUC_UNUSED, unsigned int procs)
+virProcessSetMaxProcesses(pid_t pid G_GNUC_UNUSED,
+ unsigned int procs G_GNUC_UNUSED)
{
- if (procs == 0)
- return 0;
-
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return -1;
}
}
#else /* ! (WITH_SETRLIMIT && defined(RLIMIT_NOFILE)) */
int
-virProcessSetMaxFiles(pid_t pid G_GNUC_UNUSED, unsigned int files)
+virProcessSetMaxFiles(pid_t pid G_GNUC_UNUSED,
+ unsigned int files G_GNUC_UNUSED)
{
- if (files == 0)
- return 0;
-
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return -1;
}
#else /* ! (WITH_SETRLIMIT && defined(RLIMIT_CORE)) */
int
virProcessSetMaxCoreSize(pid_t pid G_GNUC_UNUSED,
- unsigned long long bytes)
+ unsigned long long bytes G_GNUC_UNUSED)
{
- if (bytes == 0)
- return 0;
-
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return -1;
}