Skip to content

Commit c68f659

Browse files
committed
Fix definition of getpeername on FreeBSD
We were using the COMPAT magic number, which was recently removed.
1 parent af3f62a commit c68f659

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

libc/sysv/calls/__sys_getpeername.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#include "libc/sysv/macros.internal.h"
2-
.scall __sys_getpeername,0x01f01f08d201f034,205,31,141,globl,hidden
2+
.scall __sys_getpeername,0x01f01f01f201f034,205,31,31,globl,hidden

libc/sysv/consts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ syscon nr __NR_shutdown 0x0030 0x00d2 0x2000086 0x0086 0x0086 0x0086
15981598
syscon nr __NR_bind 0x0031 0x00c8 0x2000068 0x0068 0x0068 0x0068 0x068 0xfff
15991599
syscon nr __NR_listen 0x0032 0x00c9 0x200006a 0x006a 0x006a 0x006a 0x06a 0xfff
16001600
syscon nr __NR_getsockname 0x0033 0x00cc 0x2000020 0x0020 0x0020 0x0020 0x020 0xfff
1601-
syscon nr __NR_getpeername 0x0034 0x00cd 0x200001f 0x001f 0x008d 0x001f 0x01f 0xfff
1601+
syscon nr __NR_getpeername 0x0034 0x00cd 0x200001f 0x001f 0x001f 0x001f 0x01f 0xfff
16021602
syscon nr __NR_socketpair 0x0035 0x00c7 0x2000087 0x0087 0x0087 0x0087 0x087 0xfff
16031603
syscon nr __NR_setsockopt 0x0036 0x00d0 0x2000069 0x0069 0x0069 0x0069 0x069 0xfff
16041604
syscon nr __NR_getsockopt 0x0037 0x00d1 0x2000076 0x0076 0x0076 0x0076 0x076 0xfff

libc/sysv/consts/__NR_getpeername.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#include "libc/sysv/consts/syscon.internal.h"
2-
.syscon nr,__NR_getpeername,0x0034,0x00cd,0x200001f,0x001f,0x008d,0x001f,0x01f,0xfff
2+
.syscon nr,__NR_getpeername,0x0034,0x00cd,0x200001f,0x001f,0x001f,0x001f,0x01f,0xfff

libc/sysv/syscalls.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ scall sys_shutdown 0x0860860862086030 0x0d2 globl hidden
8686
scall __sys_bind 0x0680680682068031 0x0c8 globl hidden
8787
scall sys_listen 0x06a06a06a206a032 0x0c9 globl hidden
8888
scall __sys_getsockname 0x0200200202020033 0x0cc globl hidden
89-
scall __sys_getpeername 0x01f01f08d201f034 0x0cd globl hidden
89+
scall __sys_getpeername 0x01f01f01f201f034 0x0cd globl hidden
9090
scall __sys_socketpair 0x0870870872087035 0x0c7 globl hidden
9191
scall sys_setsockopt 0x0690690692069036 0x0d0 globl hidden
9292
scall sys_getsockopt 0x0760760762076037 0x0d1 globl hidden

0 commit comments

Comments
 (0)