Created
July 24, 2010 20:00
-
-
Save showstopper/488924 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rock_tmp/./Resource.c:132:37: error: invalid application of 'sizeof' to an incomplete type 'Resource__StructRlimit64' (aka 'struct rlimit64') | |
.instanceSize = sizeof(Resource__StructRlimit64), | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
In file included from rock_tmp/./Resource.c:3: | |
In file included from .libs/tmp/./Resource.h:6: | |
.libs/tmp/./Resource-fwd.h:13:16: note: forward declaration of 'struct rlimit64' | |
typedef struct rlimit64 Resource__StructRlimit64; | |
^ | |
rock_tmp/./Resource.c:133:29: error: invalid application of 'sizeof' to an incomplete type 'Resource__StructRlimit64' (aka 'struct rlimit64') | |
.size = sizeof(Resource__StructRlimit64), | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
In file included from rock_tmp/./Resource.c:3: | |
In file included from .libs/tmp/./Resource.h:6: | |
.libs/tmp/./Resource-fwd.h:13:16: note: forward declaration of 'struct rlimit64' | |
typedef struct rlimit64 Resource__StructRlimit64; | |
^ | |
rock_tmp/./Resource.c:152:44: error: use of undeclared identifier '__priority_which'; did you mean '__priority_which_t'? | |
.instanceSize = sizeof(__priority_which), | |
^ | |
rock_tmp/./Resource.c:153:36: error: use of undeclared identifier '__priority_which'; did you mean '__priority_which_t'? | |
.size = sizeof(__priority_which), | |
^ | |
rock_tmp/./Resource.c:177:44: error: use of undeclared identifier '__rlimit_resource'; did you mean '__rlimit_resource_t'? | |
.instanceSize = sizeof(__rlimit_resource), | |
^ | |
rock_tmp/./Resource.c:178:36: error: use of undeclared identifier '__rlimit_resource'; did you mean '__rlimit_resource_t'? | |
.size = sizeof(__rlimit_resource), | |
^ | |
rock_tmp/./Resource.c:202:44: error: use of undeclared identifier '__rusage_who'; did you mean '__rusage_who_t'? | |
.instanceSize = sizeof(__rusage_who), | |
^ | |
rock_tmp/./Resource.c:203:36: error: use of undeclared identifier '__rusage_who'; did you mean '__rusage_who_t'? | |
.size = sizeof(__rusage_who), | |
^ | |
10 diagnostics generated. | |
C compiler failed, aborting compilation process | |
[FAIL] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include /usr/include/sys/resource | |
StructTimeval: cover from struct timeval { | |
tvSec: extern(tv_sec) __TimeT | |
tvUsec: extern(tv_usec) __SusecondsT | |
} | |
StructRusage: cover from struct rusage { | |
ruUtime: extern(ru_utime) StructTimeval | |
ruStime: extern(ru_stime) StructTimeval | |
ruMaxrss: extern(ru_maxrss) Long | |
ruIxrss: extern(ru_ixrss) Long | |
ruIdrss: extern(ru_idrss) Long | |
ruIsrss: extern(ru_isrss) Long | |
ruMinflt: extern(ru_minflt) Long | |
ruMajflt: extern(ru_majflt) Long | |
ruNswap: extern(ru_nswap) Long | |
ruInblock: extern(ru_inblock) Long | |
ruOublock: extern(ru_oublock) Long | |
ruMsgsnd: extern(ru_msgsnd) Long | |
ruMsgrcv: extern(ru_msgrcv) Long | |
ruNsignals: extern(ru_nsignals) Long | |
ruNvcsw: extern(ru_nvcsw) Long | |
ruNivcsw: extern(ru_nivcsw) Long | |
} | |
StructRlimit: cover from struct rlimit { | |
rlimCur: extern(rlim_cur) RlimT | |
rlimMax: extern(rlim_max) RlimT | |
} | |
StructUnnamed1: cover { | |
__Val: extern(__val) Int* | |
} | |
__FsidT: cover from StructUnnamed1 | |
StructRlimit64: cover from struct rlimit64 { | |
rlimCur: extern(rlim_cur) Rlim64T | |
rlimMax: extern(rlim_max) Rlim64T | |
} | |
Enum__PriorityWhich: extern(__priority_which) enum { | |
process = 0 | |
pgrp = 1 | |
user = 2 | |
} | |
Enum__RlimitResource: extern(__rlimit_resource) enum { | |
rlimitCpu = 0 | |
rlimitFsize = 1 | |
rlimitData = 2 | |
rlimitStack = 3 | |
rlimitCore = 4 | |
__RlimitRss = 5 | |
rlimitNofile = 7 | |
__RlimitOfile = 7 | |
rlimitAs_ = 9 | |
__RlimitNproc = 6 | |
__RlimitMemlock = 8 | |
__RlimitLocks = 10 | |
__RlimitSigpending = 11 | |
__RlimitMsgqueue = 12 | |
__RlimitNice = 13 | |
__RlimitRtprio = 14 | |
__RlimitNlimits = 15 | |
__RlimNlimits = 15 | |
} | |
Enum__RusageWho: extern(__rusage_who) enum { | |
self = 0 | |
children = -1 | |
thread = 1 | |
} | |
Rlim64T: cover from __rlim64_t | |
__SwblkT: cover from Long | |
__PriorityWhichT: cover from Int | |
__Uint64T: cover from ULLong | |
__IdT: cover from UInt | |
__IntptrT: cover from Int | |
__SusecondsT: cover from Long | |
__SocklenT: cover from UInt | |
__Int16T: cover from Short | |
__LoffT: cover from __off64_t | |
__Rlim64T: cover from __u_quad_t | |
__Uint16T: cover from UShort | |
__UShort_: cover from UShort | |
__ModeT: cover from UInt | |
__Int8T: cover from Char | |
__UsecondsT: cover from UInt | |
__NlinkT: cover from UInt | |
__InoT: cover from ULong | |
__PidT: cover from Int | |
__DevT: cover from __u_quad_t | |
__RlimitResourceT: cover from Int | |
__Blkcnt64T: cover from __quad_t | |
RlimT: cover from __rlim_t | |
__RusageWhoT: cover from Int | |
__Uint32T: cover from UInt | |
__DaddrT: cover from Int | |
IdT: cover from __IdT | |
__SsizeT: cover from Int | |
__FsfilcntT: cover from ULong | |
__BlkcntT: cover from Long | |
__UInt_: cover from UInt | |
__TimeT: cover from Long | |
__OffT: cover from Long | |
__Fsblkcnt64T: cover from __u_quad_t | |
__Int64T: cover from LLong | |
__FsblkcntT: cover from ULong | |
__ClockidT: cover from Int | |
__Fsfilcnt64T: cover from __u_quad_t | |
__UChar_: cover from UChar | |
__UidT: cover from UInt | |
__GidT: cover from UInt | |
__Uint8T: cover from UChar | |
__KeyT: cover from Int | |
__TimerT: cover from Void* | |
__Off64T: cover from __quad_t | |
__QuadT: cover from LLong | |
__ULong_: cover from ULong | |
__QaddrT: cover from __QuadT* | |
__UQuadT: cover from ULLong | |
__RlimT: cover from ULong | |
__BlksizeT: cover from Long | |
__Ino64T: cover from __UQuadT | |
__ClockT: cover from Long | |
__Int32T: cover from Int | |
__CaddrT: cover from Char* | |
getrlimit64: extern func (__Resource: __RlimitResourceT, __Rlimits: StructRlimit64*) -> Int | |
setpriority: extern func (__Which: __PriorityWhichT, __Who: IdT, __Prio: Int) -> Int | |
setrlimit: extern func (__Resource: __RlimitResourceT, __Rlimits: const StructRlimit*) -> Int | |
getrusage: extern func (__Who: __RusageWhoT, __Usage: StructRusage*) -> Int | |
getrlimit: extern func (__Resource: __RlimitResourceT, __Rlimits: StructRlimit*) -> Int | |
getpriority: extern func (__Which: __PriorityWhichT, __Who: IdT) -> Int | |
setrlimit64: extern func (__Resource: __RlimitResourceT, __Rlimits: const StructRlimit64*) -> Int |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment