Pārlūkot izejas kodu

we are handed errno as a negative value so we need to reverse it

Mike Frysinger 20 gadi atpakaļ
vecāks
revīzija
4898271e11
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      libc/sysdeps/linux/arm/__syscall_error.c

+ 1 - 1
libc/sysdeps/linux/arm/__syscall_error.c

@@ -24,6 +24,6 @@
  * an error number into errno.  */
 int attribute_hidden __syscall_error(int err_no)
 {
-	__set_errno(err_no);
+	__set_errno(-err_no);
 	return -1;
 }