Make the sys/ucontext.h self-contained by changing the return typeof __getcontextx_size(3) from size_t to int.PR: ports/164654MFC after: 1 month
Add API for obtaining extended machine context states that cannot befit into existing mcontext_t.On i386 and amd64 do return the extended FPU states usinggetcontextx(3). For other architectures,
Add API for obtaining extended machine context states that cannot befit into existing mcontext_t.On i386 and amd64 do return the extended FPU states usinggetcontextx(3). For other architectures, getcontextx(3) returns thesame information as getcontext(2).Tested by: phoMFC after: 1 month
show more ...
Two other places where we can use WEAK_ALIAS.
Use the macro WEAK_ALIAS. Tested on 32 and 64-bit.
Replace a proliferation of buggy MD implementations of modf() with aworking MI one. The MI one only needs to be overridden on machineswith non-IEEE754 arithmetic. (The last supported one was the
Replace a proliferation of buggy MD implementations of modf() with aworking MI one. The MI one only needs to be overridden on machineswith non-IEEE754 arithmetic. (The last supported one was the VAX.)It can also be overridden if someone comes up with a faster one thatactually passes the regression tests -- but this is harder than it sounds.
Fix typos - remove duplicate "the".PR: bin/154928Submitted by: Eitan Adler <lists at eitanadler.com>MFC after: 3 days
Mark assembler sources from libc as working with non-executable stack.Reviewed and tested by: nwhitehorn
The NetBSD Foundation has granted permission to remove clause 3 and 4 fromtheir software.Obtained from: NetBSD
Mark uname(), getdomainname() and setdomainname() with COMPAT_FREEBSD4.Looking at our source code history, it seems the uname(),getdomainname() and setdomainname() system calls got deprecatedsome
Mark uname(), getdomainname() and setdomainname() with COMPAT_FREEBSD4.Looking at our source code history, it seems the uname(),getdomainname() and setdomainname() system calls got deprecatedsomewhere after FreeBSD 1.1, but they have never been phased outproperly. Because we don't have a COMPAT_FREEBSD1, just useCOMPAT_FREEBSD4.Also fix the Linuxolator to build without the setdomainname() routine byjust making it call userland_sysctl on kern.domainname. Also replace thesetdomainname()'s implementation to use this approach, because we'reduplicating code with sysctl_domainname().I wasn't able to keep these three routines working in ourCOMPAT_FREEBSD32, because that would require yet another keyword forsyscalls.master (COMPAT4+NOPROTO). Because this routine is probablyunused already, this won't be a problem in practice. If it turns out tobe a problem, we'll just restore this functionality.Reviewed by: rdivacky, kib
Fix some ifdef logic in the libc syncicache() bit that I somehow missed in thelast commit. Now it really can use a runtime-set cacheline size.
Allow the cacheline size on PowerPC to be set at runtime. This is essential forsupporting 64-bit CPUs, which often have 128-byte cache lines instead of thestandard 32.
Add support files for compiling with soft-float. This has beencopied from ARM and modified to warrant the duplication. Oh,and to make it work for PowerPC :-)
Let PowerPC world optionally build with -msoft-float. For FPU-less PowerPCvariations (e500 currently), this provides a gcc-level FPU emulation and is analternative approach to the recently introduc
Let PowerPC world optionally build with -msoft-float. For FPU-less PowerPCvariations (e500 currently), this provides a gcc-level FPU emulation and is analternative approach to the recently introduced kernel-level emulation(FPU_EMU).Approved by: cognet (mentor)MFp4: e500
Fix build from errors exposed with recent version_gen.awk commit.Not quite sure if this is 100% correct: awaiting review. But quietentinderbox in the meantime.
Classify mmap, lseek, pread, pwrite, truncate, ftruncate as pseudosyscalls, unless WITHOUT_SYSCALL_COMPAT is defined. The default casewill have the .c wrappers still. If you define WITHOUT_SYSCAL
Classify mmap, lseek, pread, pwrite, truncate, ftruncate as pseudosyscalls, unless WITHOUT_SYSCALL_COMPAT is defined. The default casewill have the .c wrappers still. If you define WITHOUT_SYSCALL_COMPAT,the .c wrappers will go away and libc will make direct syscalls.After 7-stable starts, the direct syscall method will be default.Approved by: re (kensmith)
Fix bogon in previous commit: <machine/cpu.h> is still needed.
The definition of CACHELINESIZE moved from <machine/cpu.h> to<machine/md_var.h>.
Some libc symbol map cleanups. net: endhostdnsent is named _endhostdnsent and is private to netdb family of functions. posix1e: acl_size.c has been never compiled in, so there's no "acl_siz
Some libc symbol map cleanups. net: endhostdnsent is named _endhostdnsent and is private to netdb family of functions. posix1e: acl_size.c has been never compiled in, so there's no "acl_size". rpc: "getnetid" is a static function. stdtime: "gtime" is #ifdef'ed out in the source. some symbols are specific only to some architectures, e.g., ___tls_get_addr is only defined on i386. __htonl, __htons, __ntohl and __ntohs are no longer functions, they are now (internal) defines in <machine/endian.h>.Submitted by: ru
I guess powerpc needs vfork(), add it to the symbol list.Submitted by: marius
Remove .mcount from gmon's Symbol map and add it to the appropriatearch. It can be named differently depending on the arch (.mcount,_mcount).Submitted by: marius
Use C comments since we now preprocess these files with CPP.
The distinction between quiet and signaling NaN formats ismachine-dependent; these files tell the latest version of gdtoawhat to do.
Instead of re-implementing hton[ls] and friends for each arch, add a new MIfile, net/ntoh.c, which just implement them using the inline functions from<sys/endian.h>.Suggested by: bde
Whitespace fix.
Avoid dead code elimination of the assignment to TP by using inlineassembly.
123456