newlib-cygwin/winsup/cygwin/include/sys
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
..
acl.h
cdefs.h * include/sys/cdefs.h: Remove extra line. 2005-08-08 18:54:28 +00:00
copying.dj white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
cygwin.h * include/sys/cygwin.h: Define CYGWIN_SIGNAL_STRING. 2005-11-01 05:55:30 +00:00
dirent.h * cygerrno.h (geterrno_from_win_error): Change declaration to default to using 2005-08-20 06:19:55 +00:00
elf32.h * include/sys/cdefs.h (__CONCAT): Define. 2005-08-08 15:00:39 +00:00
elf64.h * include/sys/elf64.h: Fix types to reflect linux usage. 2005-11-14 20:34:33 +00:00
elf_common.h white space 2005-08-12 02:39:13 +00:00
elf_generic.h * include/sys/cdefs.h (__CONCAT): Define. 2005-08-08 15:00:39 +00:00
file.h * Makefile.in: (DLL_OFILES): Add flock.o. 2003-11-29 23:00:51 +00:00
ioctl.h white space 2005-08-12 02:39:13 +00:00
ipc.h * cygserver.h (client_request::request_code_t): Add 2003-11-19 18:50:23 +00:00
lock.h white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
mman.h * autoload.cc (NtCreateSection): Define. 2005-11-28 22:32:29 +00:00
mount.h * cygtls.cc (_cygtls::remove): Eliminate compiler warning. 2005-05-13 03:21:39 +00:00
msg.h * cygserver.h (client_request::request_code_t): Add 2003-11-19 18:50:23 +00:00
mtio.h
param.h * times.cc (hires_ms::prime): Comment out call to timeBeginPeriod for now. 2005-11-11 04:07:30 +00:00
poll.h
procfs.h
queue.h Eliminate use of sigframe and sigthread throughout. 2003-11-28 20:55:59 +00:00
resource.h * cygwin.din: Export getpriority and setpriority. 2005-01-25 22:45:11 +00:00
select.h * cygwin.din (pselect): Export. 2005-04-19 08:32:59 +00:00
sem.h * cygserver.h (client_request::request_code_t): Add 2003-11-19 18:50:23 +00:00
shm.h * cygserver.h (client_request::request_code_t): Add 2003-11-19 18:50:23 +00:00
smallprint.h
socket.h
soundcard.h
statfs.h
statvfs.h * include/sys/statvfs.h (ST_RDONLY): Define. 2005-02-23 16:27:54 +00:00
stdio.h * cygwin.din (getline): Export. 2005-07-09 08:22:39 +00:00
strace.h * include/sys/strace.h (_STRACE_ON): Remove semicolon from definition. 2005-09-22 16:41:36 +00:00
syslog.h * Makefile.in (DLL_OFILES): Add fhandler_mailslot.o. 2005-05-10 20:56:07 +00:00
sysmacros.h
sysproto.h * cygserver.h (client_request::request_code_t): Add 2003-11-19 18:50:23 +00:00
termio.h
termios.h * include/sys/termios.h: Define TIOCMBIS and TIOCMBIC. 2005-08-02 09:17:15 +00:00
ttychars.h
uio.h
un.h
utime.h white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
utmp.h white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
utsname.h
vfs.h
wait.h * child_info.h (child_info_spawn::hexec_proc): Eliminate. 2004-11-26 04:15:10 +00:00