From 37a27b6fd09ecb37097b85e5db74e4f77b80fe0a Mon Sep 17 00:00:00 2001 From: Felix Janda Date: Tue, 12 Jan 2016 22:20:33 +0100 Subject: [PATCH] Use stdint types consistently --- Upstream-Status: Backport Signed-off-by: Khem Raj include/attributes.h | 6 ++++-- man/man3/attr_list.3 | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) Index: attr-2.4.47/include/attributes.h =================================================================== --- attr-2.4.47.orig/include/attributes.h +++ attr-2.4.47/include/attributes.h @@ -22,6 +22,7 @@ extern "C" { #endif +#include /* * An almost-IRIX-compatible extended attributes API * (the IRIX attribute "list" operation is missing, added ATTR_SECURE). @@ -69,7 +70,7 @@ typedef struct attrlist { * al_offset[i] entry points to. */ typedef struct attrlist_ent { /* data from attr_list() */ - u_int32_t a_valuelen; /* number bytes in value of attr */ + uint32_t a_valuelen; /* number bytes in value of attr */ char a_name[1]; /* attr name (NULL terminated) */ } attrlist_ent_t; @@ -90,7 +91,7 @@ typedef struct attrlist_ent { /* data fr * operation on a cursor is to bzero() it. */ typedef struct attrlist_cursor { - u_int32_t opaque[4]; /* an opaque cookie */ + uint32_t opaque[4]; /* an opaque cookie */ } attrlist_cursor_t; /* Index: attr-2.4.47/man/man3/attr_list.3 =================================================================== --- attr-2.4.47.orig/man/man3/attr_list.3 +++ attr-2.4.47/man/man3/attr_list.3 @@ -72,9 +72,9 @@ The contents of an \f4attrlist_t\fP stru .nf .ft 4 .ta 9n 22n -__int32_t al_count; /\(** number of entries in attrlist \(**/ -__int32_t al_more; /\(** T/F: more attrs (do syscall again) \(**/ -__int32_t al_offset[1]; /\(** byte offsets of attrs [var-sized] \(**/ +int32_t al_count; /\(** number of entries in attrlist \(**/ +int32_t al_more; /\(** T/F: more attrs (do syscall again) \(**/ +int32_t al_offset[1]; /\(** byte offsets of attrs [var-sized] \(**/ .ft 1 .fi .RE @@ -113,7 +113,7 @@ include the following members: .nf .ft 4 .ta 9n 22n -u_int32_t a_valuelen; /\(** number bytes in value of attr \(**/ +uint32_t a_valuelen; /\(** number bytes in value of attr \(**/ char a_name[]; /\(** attr name (NULL terminated) \(**/ .ft 1 .fi