Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/sys
File: resource.h
/* Copyright (C) 1992-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
#ifndef _SYS_RESOURCE_H
[17] Fix | Delete
#define _SYS_RESOURCE_H 1
[18] Fix | Delete
[19] Fix | Delete
#include <features.h>
[20] Fix | Delete
[21] Fix | Delete
/* Get the system-dependent definitions of structures and bit values. */
[22] Fix | Delete
#include <bits/resource.h>
[23] Fix | Delete
[24] Fix | Delete
#ifndef __id_t_defined
[25] Fix | Delete
typedef __id_t id_t;
[26] Fix | Delete
# define __id_t_defined
[27] Fix | Delete
#endif
[28] Fix | Delete
[29] Fix | Delete
__BEGIN_DECLS
[30] Fix | Delete
[31] Fix | Delete
/* The X/Open standard defines that all the functions below must use
[32] Fix | Delete
`int' as the type for the first argument. When we are compiling with
[33] Fix | Delete
GNU extensions we change this slightly to provide better error
[34] Fix | Delete
checking. */
[35] Fix | Delete
#if defined __USE_GNU && !defined __cplusplus
[36] Fix | Delete
typedef enum __rlimit_resource __rlimit_resource_t;
[37] Fix | Delete
typedef enum __rusage_who __rusage_who_t;
[38] Fix | Delete
typedef enum __priority_which __priority_which_t;
[39] Fix | Delete
#else
[40] Fix | Delete
typedef int __rlimit_resource_t;
[41] Fix | Delete
typedef int __rusage_who_t;
[42] Fix | Delete
typedef int __priority_which_t;
[43] Fix | Delete
#endif
[44] Fix | Delete
[45] Fix | Delete
/* Put the soft and hard limits for RESOURCE in *RLIMITS.
[46] Fix | Delete
Returns 0 if successful, -1 if not (and sets errno). */
[47] Fix | Delete
#ifndef __USE_FILE_OFFSET64
[48] Fix | Delete
extern int getrlimit (__rlimit_resource_t __resource,
[49] Fix | Delete
struct rlimit *__rlimits) __THROW;
[50] Fix | Delete
#else
[51] Fix | Delete
# ifdef __REDIRECT_NTH
[52] Fix | Delete
extern int __REDIRECT_NTH (getrlimit, (__rlimit_resource_t __resource,
[53] Fix | Delete
struct rlimit *__rlimits), getrlimit64);
[54] Fix | Delete
# else
[55] Fix | Delete
# define getrlimit getrlimit64
[56] Fix | Delete
# endif
[57] Fix | Delete
#endif
[58] Fix | Delete
#ifdef __USE_LARGEFILE64
[59] Fix | Delete
extern int getrlimit64 (__rlimit_resource_t __resource,
[60] Fix | Delete
struct rlimit64 *__rlimits) __THROW;
[61] Fix | Delete
#endif
[62] Fix | Delete
[63] Fix | Delete
/* Set the soft and hard limits for RESOURCE to *RLIMITS.
[64] Fix | Delete
Only the super-user can increase hard limits.
[65] Fix | Delete
Return 0 if successful, -1 if not (and sets errno). */
[66] Fix | Delete
#ifndef __USE_FILE_OFFSET64
[67] Fix | Delete
extern int setrlimit (__rlimit_resource_t __resource,
[68] Fix | Delete
const struct rlimit *__rlimits) __THROW;
[69] Fix | Delete
#else
[70] Fix | Delete
# ifdef __REDIRECT_NTH
[71] Fix | Delete
extern int __REDIRECT_NTH (setrlimit, (__rlimit_resource_t __resource,
[72] Fix | Delete
const struct rlimit *__rlimits),
[73] Fix | Delete
setrlimit64);
[74] Fix | Delete
# else
[75] Fix | Delete
# define setrlimit setrlimit64
[76] Fix | Delete
# endif
[77] Fix | Delete
#endif
[78] Fix | Delete
#ifdef __USE_LARGEFILE64
[79] Fix | Delete
extern int setrlimit64 (__rlimit_resource_t __resource,
[80] Fix | Delete
const struct rlimit64 *__rlimits) __THROW;
[81] Fix | Delete
#endif
[82] Fix | Delete
[83] Fix | Delete
/* Return resource usage information on process indicated by WHO
[84] Fix | Delete
and put it in *USAGE. Returns 0 for success, -1 for failure. */
[85] Fix | Delete
extern int getrusage (__rusage_who_t __who, struct rusage *__usage) __THROW;
[86] Fix | Delete
[87] Fix | Delete
/* Return the highest priority of any process specified by WHICH and WHO
[88] Fix | Delete
(see above); if WHO is zero, the current process, process group, or user
[89] Fix | Delete
(as specified by WHO) is used. A lower priority number means higher
[90] Fix | Delete
priority. Priorities range from PRIO_MIN to PRIO_MAX (above). */
[91] Fix | Delete
extern int getpriority (__priority_which_t __which, id_t __who) __THROW;
[92] Fix | Delete
[93] Fix | Delete
/* Set the priority of all processes specified by WHICH and WHO (see above)
[94] Fix | Delete
to PRIO. Returns 0 on success, -1 on errors. */
[95] Fix | Delete
extern int setpriority (__priority_which_t __which, id_t __who, int __prio)
[96] Fix | Delete
__THROW;
[97] Fix | Delete
[98] Fix | Delete
__END_DECLS
[99] Fix | Delete
[100] Fix | Delete
#endif /* sys/resource.h */
[101] Fix | Delete
[102] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function