diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-16 12:02:22 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-16 12:02:22 +0100 |
commit | a6d91ded3f2d5401e09a9c2fa442aabfbfe593a8 (patch) | |
tree | 95e456ad2b1c7677c3aaadc3d97ba73f3ee22c67 /resource.c | |
parent | 27aeaa2aaad9fb642040be903d6fe6c0fc59c6e2 (diff) | |
download | strace-a6d91ded3f2d5401e09a9c2fa442aabfbfe593a8.tar.gz strace-a6d91ded3f2d5401e09a9c2fa442aabfbfe593a8.tar.bz2 strace-a6d91ded3f2d5401e09a9c2fa442aabfbfe593a8.tar.xz |
Tidy up includes and copyright notices, fix indentation
The files not mentioned in changelog below had only
copyright notices fixes and indentation fixes.
* defs.h: Include <stdint.h> and <inttypes.h>.
* file.c: Do not include <inttypes.h>.
Move struct kernel_dirent declaration below top include block.
* block.c: Do not include <stdint.h> and <inttypes.h>.
* quota.c: Likewise.
* desc.c: Likewise.
* signal.c: Likewise.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'resource.c')
-rw-r--r-- | resource.c | 19 |
1 files changed, 7 insertions, 12 deletions
@@ -26,12 +26,9 @@ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * $Id$ */ #include "defs.h" - #include <sys/resource.h> #include <sys/times.h> #include <linux/kernel.h> @@ -40,15 +37,13 @@ /* * Hacks for systems that have a long long rlim_t */ - -#define rlimit64 rlimit /* Ugly hack */ -#define rlim64_t rlim_t /* Ugly hack */ -#ifndef RLIM64_INFINITY -#define RLIM64_INFINITY RLIM_INFINITY /* You guessed it */ -#endif - -#define sys_getrlimit64 sys_getrlimit -#define sys_setrlimit64 sys_setrlimit +# define rlimit64 rlimit /* Ugly hack */ +# define rlim64_t rlim_t /* Ugly hack */ +# ifndef RLIM64_INFINITY +# define RLIM64_INFINITY RLIM_INFINITY /* You guessed it */ +# endif +# define sys_getrlimit64 sys_getrlimit +# define sys_setrlimit64 sys_setrlimit #endif static const struct xlat resources[] = { |