newlib-cygwin/winsup/cygwin/include/sys
Dave Korn b602bb90e2 winsup/ChangeLog:
* Makefile.common (COMPILE_CXX): Add support for per-file overrides
	to exclude $(nostdinc) and $(nostdincxx) from compiler flags.
	(COMPILE_CC): Likewise for $(nostdinc).

winsup/cygwin/ChangeLog:

	* Makefile.in (DLL_OFILES): Add libstdcxx_wrapper.o
	(libstdcxx_wrapper_CFLAGS): Add flags for new module.
	(_cygwin_crt0_common_STDINCFLAGS): Define per-file override.
	(libstdcxx_wrapper_STDINCFLAGS, cxx_STDINCFLAGS): Likewise.
	* cxx.cc: Include "cygwin-cxx.h".
	(operator new): Tweak prototype for full standards compliance.
	(operator new[]): Likewise.
	(operator new (nothrow)): New fallback function.
	(operator new[] (nothrow), operator delete (nothrow),
	operator delete[] (nothrow)): Likewise.
	(default_cygwin_cxx_malloc): New struct of pointers to the above,
	for final last-resort fallback default.
	* cygwin-cxx.h: New file.
	(struct per_process_cxx_malloc): Define.
	(default_cygwin_cxx_malloc): Declare extern.
	* cygwin.din (__wrap__ZdaPv): Export new wrapper.
	(__wrap__ZdaPvRKSt9nothrow_t, __wrap__ZdlPv,
	__wrap__ZdlPvRKSt9nothrow_t, __wrap__Znaj,
	__wrap__ZnajRKSt9nothrow_t, __wrap__Znwj,
	__wrap__ZnwjRKSt9nothrow_t): Likewise.
	* globals.cc (__cygwin_user_data): Init newly-repurposed 'forkee'
	field (now 'cxx_malloc') to point to default_cygwin_cxx_malloc.
	* libstdcxx_wrapper.cc: New file.
	(__wrap__ZdaPv, __wrap__ZdaPvRKSt9nothrow_t, __wrap__ZdlPv,
	__wrap__ZdlPvRKSt9nothrow_t, __wrap__Znaj,
	__wrap__ZnajRKSt9nothrow_t, __wrap__Znwj,
	__wrap__ZnwjRKSt9nothrow_t): Define wrapper functions for libstdc++
	malloc operators and their overrides.
	* winsup.h (default_cygwin_cxx_malloc): Declare extern.
	* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
	* include/sys/cygwin.h (struct per_process_cxx_malloc): Forward
	declare here.
	(struct per_process::forkee): Rename and repurpose from this ...
	(struct per_process::cxx_malloc): ... to this.
	* lib/_cygwin_crt0_common.cc: Include cygwin-cxx.h.
	(WEAK): Define shorthand helper macro.
	(__cygwin_cxx_malloc): Define and populate with weak references
	to whatever libstdc++ malloc operators will be visible at final
	link time for Cygwin apps and dlls.
	(_cygwin_crt0_common): Always look up cygwin DLL's internal
	per_process data, and don't test for (impossible) failure.  Inherit
	any members of __cygwin_cxx_malloc that we don't have overrides
	for from the DLL's default and store the resulting overall set of
	overrides back into the DLL's global per_process data.
2009-07-07 20:12:44 +00:00
..
acl.h
copying.dj
cygwin.h winsup/ChangeLog: 2009-07-07 20:12:44 +00:00
dirent.h * dir.cc (readdir_worker): Initialize dirent.d_type and __d_unused1. 2008-11-28 09:04:35 +00:00
elf32.h
elf64.h
elf_common.h
elf_generic.h
file.h
ioctl.h
ipc.h
kd.h
lock.h
mman.h
mount.h cygwin ChangeLog 2009-05-14 03:25:45 +00:00
msg.h
mtio.h
param.h * include/sys/param.h (MAXPATHLEN): Define as PATH_MAX. 2007-10-18 10:42:43 +00:00
poll.h
procfs.h
queue.h
resource.h
sched.h * fhandler_floppy.cc (fhandler_dev_floppy::open): Fix format. Add 2009-02-09 18:28:53 +00:00
select.h * include/sys/select.h: Guard definitions with __USE_W32_SOCKETS as 2009-05-08 10:54:58 +00:00
sem.h
shm.h
smallprint.h
socket.h
soundcard.h
statfs.h
statvfs.h
stdio.h Perform whitespace cleanup throughout. 2008-02-15 17:53:11 +00:00
strace.h * pinfo.cc (pinfo_basic): New class. 2008-12-19 19:09:51 +00:00
syslimits.h
syslog.h
sysmacros.h
sysproto.h
termio.h
termios.h * cygwin/include/sys/termios.h: Make default erase character "^?". 2009-05-30 17:21:22 +00:00
ttychars.h
uio.h
un.h * include/sys/un.h: #include <string.h> for strlen. 2009-03-23 08:45:18 +00:00
utime.h
utmp.h * cygwin.din (_getutline): Remove. 2008-07-30 04:58:24 +00:00
utsname.h
vfs.h
wait.h