Skip to content

Commit ffff557

Browse files
EDEADLOCK, not EDEADLK is different on PowerPC64 Linux
EDEADLK is common across architectures, but EDEADLOCK is not.
1 parent abcc6ab commit ffff557

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/unix/notbsd/linux/other/b32/arm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub const O_NOFOLLOW: ::c_int = 0x8000;
88
pub const MAP_LOCKED: ::c_int = 0x02000;
99
pub const MAP_NORESERVE: ::c_int = 0x04000;
1010

11-
pub const EDEADLK: ::c_int = 35;
11+
pub const EDEADLOCK: ::c_int = 35;
1212

1313
pub const SO_PEERCRED: ::c_int = 17;
1414
pub const SO_RCVLOWAT: ::c_int = 18;

src/unix/notbsd/linux/other/b32/x86.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub const O_NOFOLLOW: ::c_int = 0x20000;
88
pub const MAP_LOCKED: ::c_int = 0x02000;
99
pub const MAP_NORESERVE: ::c_int = 0x04000;
1010

11-
pub const EDEADLK: ::c_int = 35;
11+
pub const EDEADLOCK: ::c_int = 35;
1212

1313
pub const SO_PEERCRED: ::c_int = 17;
1414
pub const SO_RCVLOWAT: ::c_int = 18;

src/unix/notbsd/linux/other/b64/aarch64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub const O_NOFOLLOW: ::c_int = 0x8000;
1515
pub const MAP_LOCKED: ::c_int = 0x02000;
1616
pub const MAP_NORESERVE: ::c_int = 0x04000;
1717

18-
pub const EDEADLK: ::c_int = 35;
18+
pub const EDEADLOCK: ::c_int = 35;
1919

2020
pub const SO_PEERCRED: ::c_int = 17;
2121
pub const SO_RCVLOWAT: ::c_int = 18;

src/unix/notbsd/linux/other/b64/powerpc64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub const O_DIRECT: ::c_int = 0x20000;
1515
pub const MAP_LOCKED: ::c_int = 0x00080;
1616
pub const MAP_NORESERVE: ::c_int = 0x00040;
1717

18-
pub const EDEADLK: ::c_int = 58;
18+
pub const EDEADLOCK: ::c_int = 58;
1919

2020
pub const SO_PEERCRED: ::c_int = 21;
2121
pub const SO_RCVLOWAT: ::c_int = 16;

src/unix/notbsd/linux/other/b64/x86_64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub const O_NOFOLLOW: ::c_int = 0x20000;
1515
pub const MAP_LOCKED: ::c_int = 0x02000;
1616
pub const MAP_NORESERVE: ::c_int = 0x04000;
1717

18-
pub const EDEADLK: ::c_int = 35;
18+
pub const EDEADLOCK: ::c_int = 35;
1919

2020
pub const SO_PEERCRED: ::c_int = 17;
2121
pub const SO_RCVLOWAT: ::c_int = 18;

src/unix/notbsd/linux/other/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ pub const MAP_POPULATE: ::c_int = 0x08000;
114114
pub const MAP_NONBLOCK: ::c_int = 0x010000;
115115
pub const MAP_STACK: ::c_int = 0x020000;
116116

117+
pub const EDEADLK: ::c_int = 35;
117118
pub const ENAMETOOLONG: ::c_int = 36;
118119
pub const ENOLCK: ::c_int = 37;
119120
pub const ENOSYS: ::c_int = 38;
@@ -135,7 +136,6 @@ pub const EXFULL: ::c_int = 54;
135136
pub const ENOANO: ::c_int = 55;
136137
pub const EBADRQC: ::c_int = 56;
137138
pub const EBADSLT: ::c_int = 57;
138-
pub const EDEADLOCK: ::c_int = EDEADLK;
139139
pub const EMULTIHOP: ::c_int = 72;
140140
pub const EOVERFLOW: ::c_int = 75;
141141
pub const ENOTUNIQ: ::c_int = 76;

0 commit comments

Comments
 (0)