File: parisc-getsockopt.diff

package info (click to toggle)
dietlibc 0.34~cvs20160606-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,768 kB
  • sloc: ansic: 71,692; asm: 13,008; cpp: 1,860; makefile: 817; sh: 300; perl: 62
file content (22 lines) | stat: -rw-r--r-- 722 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Fix getsockopt() on hppa
 PA-RISC overrides getsockopt() because it requires the last parameter
 to be passed on the stack to the function, and that needs to be
 translated to the kernel system call - and a recent renaming of
 getsockopt.S to __getsockopt.S (including a change to a weak symbol)
 was not done for PA-RISC, causing getsockopt() to always fail with
 "Bad Address".
Author: Christian Seiler <christian@iwakd.de>
Last-Update: 2017-01-25

--- /dev/null
+++ b/parisc/__getsockopt.S
@@ -0,0 +1,3 @@
+#include "syscalls.h"
+
+syscall5_weak(getsockopt, getsockopt, __libc_getsockopt);
--- a/parisc/getsockopt.S
+++ /dev/null
@@ -1,3 +0,0 @@
-#include "syscalls.h"
-
-syscall5(getsockopt, getsockopt);