summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/attr/attr/0001-Use-stdint-types-consistently.patch
blob: dcd6507bcc5aa1847e7a51cbff90c66680a775f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
From 37a27b6fd09ecb37097b85e5db74e4f77b80fe0a Mon Sep 17 00:00:00 2001
From: Felix Janda <felix.janda@posteo.de>
Date: Tue, 12 Jan 2016 22:20:33 +0100
Subject: [PATCH] Use stdint types consistently

---
Upstream-Status: Backport
Signed-off-by: Khem Raj <raj.khem@gmail.com>

 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 <stdint.h>
 /*
  *	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