newlib-cygwin/winsup/cygwin/include
Corinna Vinschen f90e23f271 * autoload.cc (NtCreateSection): Define.
* cygheap.cc (_csbrk): Call getpagesize instead of getshmlba.
	* dcrt0.cc (dll_crt0_0): Call mmap_init.
	* external.cc (cygwin_internal): Call getpagesize instead of getshmlba.
	* fhandler.h (fhandler_base::mmap): Change access to prot parameter.
	(fhandler_base::fixup_mmap_after_fork): Ditto.
	(fhandler_disk_file::mmap): Ditto.
	(fhandler_disk_file::fixup_mmap_after_fork): Ditto.
	(fhandler_dev_mem::mmap): Ditto.
	(fhandler_dev_mem::fixup_mmap_after_fork): Ditto.
	* fhandler_mem.cc (fhandler_dev_mem::write): Call getsystempagesize
	instead of getpagesize.
	(fhandler_dev_mem::read): Ditto.
	(fhandler_dev_mem::fstat): Ditto.
	(fhandler_dev_mem::mmap): Move to mmap.cc.
	(fhandler_dev_mem::munmap): Ditto.
	(fhandler_dev_mem::msync): Ditto.
	(fhandler_dev_mem::fixup_mmap_after_fork): Ditto.
	* fhandler_proc.cc (format_proc_meminfo): Call getsystempagesize
	instead of getpagesize.
	* fhandler_process.cc (format_process_stat): Ditto.
	(format_process_status): Ditto.
	(get_mem_values): Ditto.
	* mmap.cc: Fix formatting.  Try to make more readable and modular.
	Take advantage of pagesize==granularity.
	(gen_protect): New static function to evaluate Windows
	protection bits from POSIX protection and flags.
	(gen_access): Ditto for Windows access mode.
	(VirtualProt9x): Wrapper function to call VirtualProtect on 9x.
	(VirtualProtNT): Ditto for NT.
	(VirtualProtEx9x): Ditto for VirtualProtectEx on 9x.
	(VirtualProtExNT): Ditto for NT.
	(CreateMapping9x): Wrapper function for creating a mapping handle on 9x.
	(CreateMappingNT): Ditto for NT.
	(MapView9x): Wrapper function to map a view on 9x.
	(MapViewNT): Ditto for NT.
	(mmap_funcs_9x): Structure containing function pointers to wrapper
	functions for 9x.
	(mmap_funcs_nt): Ditto for NT.
	(mmap_func): Pointer to wrapper functions used in subsequent code.
	(mmap_init): Initialize mmap_func depending on OS.
	(class mmap_record): Use sensible member names.  Add POSIX protection
	member. Drop Windows access flags member.  Constify more methods.
	Use accessors instead of direct member access inside of own methods.
	(mmap_record::gen_protect): Class wrapper to evaluate matching
	Windows protection bits.
	(mmap_record::gen_access): Ditto for Windows access flags.
	(mmap_record::compatible_flags): New function to check if flags are
	compatible with flags of existing map.
	(list::add_record): Drop offset and length arguments.
	(class map): Change counters to unsigned.  Match usage throughout.
	(mmapped_areas): Convert from pointer to global struct.
	(mmap_record::alloc_page_map): Simplify.
	(mmap_record::map_pages): Ditto.
	(mmap_record::fixup_page_map): Delete.
	(mmap64): Simplify.  Add workaround for Windows 98 bug.  Fix bug on
	NT that existing anonymous mappings weren't searched for a match.
	(munmap): Add workaround for Windows 98 bug.
	(msync): Simplify.
	(mprotect): Handle existing maps correctly.
	(mlock): Add local pagesize variable and enlightening comment.
	(fhandler_disk_file::mmap): Main functionality now in CreateMapping/
	MapView wrapper functions.
	(fhandler_disk_file::fixup_mmap_after_fork): Call MapView wrapper.
	(fhandler_dev_mem::mmap): Moved from fhandler_mem.cc.  Simplify by
	calling MapViewNT.
	(fhandler_dev_mem::munmap): Moved from fhandler_mem.cc.
	(fhandler_dev_mem::msync): Ditto.
	(fhandler_dev_mem::fixup_mmap_after_fork): Ditto.  Call MapViewNT.
	(fixup_mmaps_after_fork): Restructure and hopefully speed up loop for
	setting protection and memory content on MAP_PRIVATE maps.
	* ntdll.h (AT_ROUND_TO_PAGE): Remove define.
	(AT_EXTENDABLE_FILE): Add define.
	(NtCreateSection): Add prototype.
	* syscalls.cc (getpagesize): Return granularity as pagesize now.
	(getsystempagesize): New function to retrieve "real" pagesize.
	(getshmlba): Delete since it's replaced by getpagesize now.
	* wincap.h (wincaps::has_mmap_alignment_bug): New element.
	* wincap.cc: Implement above element throughout.
	* winsup.h (getshmlba): Drop prototype.
	(getsystempagesize): Add prototype.
	(mmap_init): Ditto.
	* include/sys/mman.h: (Not yet) define MAP_NORESERVE.
2005-11-28 22:32:29 +00:00
..
arpa * net.cc (cygwin_inet_ntop): Change len argument to socklen_t to 2005-09-17 08:55:30 +00:00
asm * cygwin.din (getpeereid): Export. 2005-02-23 17:39:46 +00:00
cygwin * libc: Add subdirectory. 2005-11-18 17:48:23 +00:00
machine * include/machine/stdlib.h: New file. 2005-06-01 18:24:31 +00:00
net
netinet white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
sys * autoload.cc (NtCreateSection): Define. 2005-11-28 22:32:29 +00:00
a.out.h
byteswap.h * include/byteswap.h: New file. 2005-07-26 00:55:42 +00:00
ctype.h * include/ctype.h: Accommodate building in newlib. 2005-03-28 21:58:23 +00:00
dlfcn.h * autoload.cc (EnumProcessModules): Add. 2004-09-14 08:29:12 +00:00
elf.h * include/sys/cdefs.h (__CONCAT): Define. 2005-08-08 15:00:39 +00:00
endian.h * include/endian.h: Remove USE_BSD ifdef since it is never defined on Cygwin. 2005-11-10 21:17:15 +00:00
err.h * bsdlib.cc (_vwarnx): New function. 2003-11-06 21:31:24 +00:00
exceptions.h
fcntl.h
features.h * include/features.h: Include sys/cdefs.h, like linux. 2004-12-01 17:07:03 +00:00
fnmatch.h
fts.h * Makefile.in (DLL_OFILES): Add fts.o, ftw.o, nftw.o. 2005-08-08 09:45:42 +00:00
ftw.h * ftw.c: Include winsup.h. 2005-08-08 13:39:56 +00:00
getopt.h * Makefile.in (DLL_OFILES): Add getopt.o and iruserok.o. 2003-09-10 19:13:05 +00:00
glob.h * glob.c: (glob0): New local variable `limit`. Use in calls to glob1 2005-06-18 19:04:25 +00:00
icmp.h
inttypes.h * cygwin.din (imaxabs): Export. 2005-06-10 12:11:35 +00:00
io.h
lastlog.h
libgen.h * cygwin.din (basename): Export. 2005-02-22 19:45:41 +00:00
limits.h * include/limits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Always define. 2005-05-29 10:05:56 +00:00
mapi.h
memory.h
mntent.h
netdb.h
paths.h * include/paths.h: Add some missing entries. 2003-09-25 03:46:20 +00:00
poll.h
pthread.h * include/pthread.h: Change PTHREAD_MUTEX_DEFAULT to PTHREAD_MUTEX_NORMAL. 2005-06-11 04:56:36 +00:00
pty.h * Makefile.in (DLL_OFILES): Add bsdlib.o. 2003-09-10 15:51:59 +00:00
sched.h
search.h * timer.cc (nanosleep): Treat tv_sec < 0 as invalid. 2005-03-27 02:31:33 +00:00
semaphore.h * cygwin.din: Add sem_close, sem_getvalue, sem_open and sem_timedwait. 2003-10-27 11:48:29 +00:00
stdint.h * include/stdint.h (INTMAX_C, UINTMAX_C): Fix definition. 2005-05-23 13:13:00 +00:00
strings.h
sysexits.h
syslog.h
termio.h
tzfile.h * include/tzfile.h: Remove duplicate definition of TM_SUNDAY. 2003-12-01 10:39:17 +00:00
utmpx.h white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00