Home | History | Annotate | Download | only in include
      1 /*
      2  * Copyright 2012, The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *     http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 #ifndef _RESOURCE_PORTABLE_H_
     18 #define _RESOURCE_PORTABLE_H_
     19 
     20 /* Derived from development/ndk/platforms/android-3/include/asm-generic/resource.h */
     21 
     22 #define RLIMIT_CPU_PORTABLE 0
     23 #define RLIMIT_FSIZE_PORTABLE 1
     24 #define RLIMIT_DATA_PORTABLE 2
     25 #define RLIMIT_STACK_PORTABLE 3
     26 #define RLIMIT_CORE_PORTABLE 4
     27 
     28 #ifndef RLIMIT_RSS_PORTABLE
     29 #define RLIMIT_RSS_PORTABLE 5
     30 #endif
     31 
     32 #ifndef RLIMIT_NPROC_PORTABLE
     33 #define RLIMIT_NPROC_PORTABLE 6
     34 #endif
     35 
     36 #ifndef RLIMIT_NOFILE_PORTABLE
     37 #define RLIMIT_NOFILE_PORTABLE 7
     38 #endif
     39 
     40 #ifndef RLIMIT_MEMLOCK_PORTABLE
     41 #define RLIMIT_MEMLOCK_PORTABLE 8
     42 #endif
     43 
     44 #ifndef RLIMIT_AS_PORTABLE
     45 #define RLIMIT_AS_PORTABLE 9
     46 #endif
     47 
     48 #define RLIMIT_LOCKS_PORTABLE 10
     49 #define RLIMIT_SIGPENDING_PORTABLE 11
     50 #define RLIMIT_MSGQUEUE_PORTABLE 12
     51 #define RLIMIT_NICE_PORTABLE 13
     52 #define RLIMIT_RTPRIO_PORTABLE 14
     53 #define RLIMIT_RTTIME_PORTABLE 15
     54 
     55 #define RLIM_NLIMITS_PORTABLE 16
     56 
     57 #ifndef RLIM_INFINITY_PORTABLE
     58 #define RLIM_INFINITY_PORTABLE (~0UL)
     59 #endif
     60 
     61 #ifndef _STK_LIM_MAX_PORTABLE
     62 #define _STK_LIM_MAX_PORTABLE RLIM_INFINITY_PORTABLE
     63 #endif
     64 
     65 #endif /* _RESOURCE_PORTABLE_H_ */
     66