opnsense-src/lib/libc
Peter Wemm eabc04d472 Adjust the syscall stub macros to be consistent in their meaning. In
particular:
SYSCALL() makes a syscall, with errno handling, and continues execution
directly after the macro in the non-error case.
RSYSCALL() is just like SYSCALL(), but returns after success.
Both SYSCALL(name) and RSYSCALL(name) export  "__sys_name" as a strong
symbol, with "_name" and "name" as weak aliases.
PSEUDO() is just like RSYSCALL(), but skipping the "name" weak alias.  It
still does "__sys_name" and "_name".

Change i386 to add errno handling to PSEUDO.  The same for amd64 and
sparc64, with appear to have copied the behavior.
ia64 was correct (as was alpha).  Just remove some apparently unused
variants of the macros. (untested!)
I believe powerpc is correct.
Fix arm to not export "name" from the PSEUDO case.  Remove apparently
extra unused variants.  (untested!)

The errno problem manifested on i386/amd64/sparc64 by having "PSEUDO"
classified syscalls return without setting errno.  eg: "addr = mmap()"
could return with "addr" = 22 instead of setting errno to 22 and
returning -1.

Approved by: re (kensmith)
2007-07-04 23:18:38 +00:00
..
amd64 Adjust the syscall stub macros to be consistent in their meaning. In 2007-07-04 23:18:38 +00:00
arm Adjust the syscall stub macros to be consistent in their meaning. In 2007-07-04 23:18:38 +00:00
compat-43 Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
db The usage of "info" in init_hash() is read-only, so constify 2007-05-25 09:57:48 +00:00
gdtoa Fix a rounding error. 2007-05-08 02:59:37 +00:00
gen Some libc symbol map cleanups. 2007-05-31 13:01:34 +00:00
gmon Remove .mcount from gmon's Symbol map and add it to the appropriate 2007-05-13 14:16:55 +00:00
i386 Adjust the syscall stub macros to be consistent in their meaning. In 2007-07-04 23:18:38 +00:00
ia64 Adjust the syscall stub macros to be consistent in their meaning. In 2007-07-04 23:18:38 +00:00
include Merge BIND 9.4.1 into main chunk. 2007-06-03 18:13:59 +00:00
inet Require users to provide a length information for inet_ntoa_r, 2007-06-14 07:13:28 +00:00
isc Merge BIND 9.4.1 into main chunk. 2007-06-03 17:20:27 +00:00
locale - Fix typo 2007-05-04 16:01:07 +00:00
nameser Merge BIND 9.4.1 into main chunk. 2007-06-03 17:20:27 +00:00
net Fix missing prototype warnings. (Compile errors with -Werror on) 2007-07-04 00:55:50 +00:00
nls Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
posix1e Some libc symbol map cleanups. 2007-05-31 13:01:34 +00:00
powerpc Fix bogon in previous commit: <machine/cpu.h> is still needed. 2007-06-10 16:32:08 +00:00
quad Export quad symbols. They were previously commented out. These symbols 2007-05-31 13:07:37 +00:00
regex Diff reduction against other *BSDs: ANSIfy function 2007-06-11 03:05:54 +00:00
resolv Merge BIND 9.4.1 into main chunk. 2007-06-03 17:20:27 +00:00
rpc Use an array of size NGROUP_MAX for the getgroups() call instead of NGRP. 2007-06-14 20:07:35 +00:00
softfloat Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
sparc64 Adjust the syscall stub macros to be consistent in their meaning. In 2007-07-04 23:18:38 +00:00
stdio Add rewind() to the list of functions which may fail and set errno 2007-06-18 02:13:04 +00:00
stdlib Significantly reduce the memory leak as noted in BUGS section for 2007-07-04 00:00:41 +00:00
stdtime Some libc symbol map cleanups. 2007-05-31 13:01:34 +00:00
string Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
sys Fix library names. 2007-06-18 01:50:03 +00:00
uuid Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
xdr Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
yp Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
Makefile Use LDADD to add -lgcc to the end of linker command line. Using LDFLAGS 2007-05-19 16:38:39 +00:00
Versions.def Make sure FBSDprivate_1.0 is located at the end of the version 2007-04-29 16:14:17 +00:00