Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)Author
2007-02-08 * syscalls.cc (check_shm): New static function to do path checkingCorinna Vinschen
common to shm_open and shm_unlink. Check for /dev/shm existance. (shm_open): Call check_shm. (shm_unlink): Ditto.
2007-02-08 * cygwin.din (shm_open): Export.Corinna Vinschen
(shm_unlink): Export. * syscalls.cc (shm_open): New function. (shm_unlink): New function. * sysconf.cc (sca): Set value of _SC_SHARED_MEMORY_OBJECTS to _POSIX_SHARED_MEMORY_OBJECTS. * include/cygwin/version.h: Bump API minor number. * include/sys/mman.h (shm_open): Add prototype. (shm_unlink): Ditto.
2007-02-08 * cygmalloc.h (__set_ENOMEM): Declare.Corinna Vinschen
(MALLOC_FAILURE_ACTION): Call __set_ENOMEM. * malloc_wrapper.cc (malloc) Remove setting errno here. (realloc): Ditto. (calloc): Ditto. (memalign): Ditto. (valloc): Ditto. (posix_memalign): Save and restore errno.
2007-02-08 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.Danny Smith
2007-02-07 * cygmalloc.h (MALLOC_FAILURE_ACTION): Move to correct #if branch.Corinna Vinschen
2007-02-07 * cygmalloc.h (MALLOC_FAILURE_ACTION): Define empty.Corinna Vinschen
* cygwin.din (posix_madvise): Export. (posix_memalign): Export. * fhandler.cc (fhandler_base::fpathconf): Return useful values in _PC_VDISABLE, _PC_SYNC_IO and _PC_SYMLINK_MAX cases. * malloc_wrapper.cc (malloc): Set errno here since it's not set in dlmalloc.c anymore. (realloc): Ditto. (calloc): Ditto. (memalign): Ditto. (valloc): Ditto. (posix_memalign): New function. * mmap.cc (posix_madvise): New function. * sysconf.cc (get_open_max): New function. (get_page_size): Ditto. (get_nproc_values): Ditto. (get_avphys): Ditto. (sc_type): New type. (sca): New array to map _SC_xxx options to sysconf return values. (sysconf): Reimplement using sca array. * include/limits.h: Add all missing values as defined by SUSv3. * include/pthread.h (PTHREAD_DESTRUCTOR_ITERATIONS): Move definition to sys/limits.h. (PTHREAD_KEYS_MAX): Ditto. * include/semaphore.h (SEM_VALUE_MAX): Ditto. * include/cygwin/stdlib.h (posix_memalign): Declare. * include/cygwin/version.h: Bump API minor number. * include/sys/mman.h: Add posix_madvise flags. (posix_madvise): Declare. * include/sys/termios.h (_POSIX_VDISABLE): Move definition to sys/limits.h.
2007-02-05 * fhandler_serial.cc (fhandler_serial::tcsetattr): Add support forCorinna Vinschen
baud rates up to 3000000 baud. Add missing 128K and 256K cases. (fhandler_serial::tcgetattr): Ditto. * include/sys/termios.h: Add baud rate definitions from B460800 up to B3000000.
2007-02-02 * syscalls.cc (unlink_nt): Add missing assignment in case NtClose fails.Corinna Vinschen
2007-02-01 Fix typo.Corinna Vinschen
2007-02-01 * net.cc (ga_dup): New function, taken from ga_clone with v4-in-v6Corinna Vinschen
mapping addition. (ga_clone): Just call ga_dup from here. (ga_duplist): New function to duplicate list of struct addrinfo. (ga_echeck): Don't check a_flags, it already happened in cygwin_getaddrinfo. (cygwin_freeaddrinfo): Always call ipv4_freeaddrinfo. (cygwin_getaddrinfo): Use new wincap.supports_all_posix_ai_flags flag rather than wincap.has_gaa_on_link_prefix. Always duplicate WinSock's addrinfo list to a self-allocated list. Handle AI_V4MAPPED for pre-Vista platforms supporting getaddrinfo. * wincap.h (wincapc::supports_all_posix_ai_flags): New element. * wincap.cc: Implement above element throughout. * include/netdb.h: Note how AI_ADDRCONFIG is not supported pre-Vista. Remove superfluous comment.
2007-02-01 * include/cygwin/socket.h: Add IPv6 socket options.Corinna Vinschen
2007-01-31 * net.cc (cygwin_getaddrinfo): Fix thinko in AI_ADDRCONFIG handling.Corinna Vinschen
2007-01-31 * net.cc (cygwin_getaddrinfo): Check ai_flags for valid values.Corinna Vinschen
Handle AI_NUMERICSERV. Handle AI_ADDRCONFIG behaviour on Vista. * include/netdb.h (AI_NUMERICSERV): Add missing flag.
2007-01-31 * fhandler_disk_file.cc (fhandler_disk_file::closedir): Add dir nameCorinna Vinschen
to debug output. * syscalls.cc (try_to_bin): Enable code to move file to user specific recycler dir to eliminate Vista problem. (unlink_nt): Add comment that rename after opening for delete on close only fails on XP.
2007-01-31 * sigproc.cc (child_info::child_info): Set msv_count to non-zeroCorinna Vinschen
value only on systems requiring it.
2007-01-28 * include/ftw.h: Include sys/cdefs.h.Corinna Vinschen
2007-01-27 Expose some msvcr80.dll functions.Danny Smith
* include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64, _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64, _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
2007-01-26 Fix typo.Corinna Vinschen
2007-01-26 * fhandler_disk_file.cc (fhandler_disk_file::rmdir): Implement rmdirCorinna Vinschen
on NT by calling unlink_nt. Check for directory here. * syscalls.cc (try_to_bin): Fix buggy debug_printf statement. (unlink_nt): Make non-static. Don't use delete-on-close semantics on directoires. Explain why.
2007-01-26 Expose some msvcr80.dll functions.Danny Smith
* include/stdlib.h (_set_abort_behavior): Add prototype. (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for _set_abort_behavior mask argument. (_invalid_parameter_handler): Add typedef. (_set_invalid_parameter_handler): Add prototype. * include/stdio.h (_get_printf_count_output): Add prototype. (_set_printf_count_output): Add prototype. * msvcrt.def.in (_get_printf_count_output, _set_printf_count_output, _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
2007-01-26 * include/_mingw.h (CRT_INLINE): Correct typo.Danny Smith
2007-01-24 * net.cc (if_nametoindex): This time, really free IP_ADAPTER_ADDRESSESCorinna Vinschen
memory. (if_indextoname): Ditto.
2007-01-24 * security.h (pop_thread_privilege): Revert to previous state, notCorinna Vinschen
to token used for impersonation.
2007-01-24 * cygheap.h (cygheap_user::deimpersonate): Always RevertToSelf.Corinna Vinschen
2007-01-24 * include/io.h (X_OK): Define to F_OK.Danny Smith
2007-01-23 * net.cc (gai_errmap): Add EAI_OVERFLOW entry. Fix formatting.Corinna Vinschen
(cygwin_gai_strerror): Drop using EAI_MAX. (w32_to_gai_err): Ditto. * include/netdb.h: Define EAI_OVERFLOW. Remove EAI_MAX.
2007-01-23 * include/netdb.h: Add AI_xxx flags available since Vista.Corinna Vinschen
2007-01-23 * net.cc (if_nametoindex): Free IP_ADAPTER_ADDRESSES memory.Corinna Vinschen
(if_indextoname): Ditto. (if_nameindex): Ditto. Remove duplicate indexed entries in result.
2007-01-22 * autoload.cc (WSAIoctl): Define.Corinna Vinschen
(SendARP): Define. * cygwin.din: Export if_freenameindex, if_indextoname, if_nameindex and if_nametoindex. * fhandler_procnet.cc: Drop including wchar.h. Drop definitions of GAA_FLAG_INCLUDE_ALL_INTERFACES, IP_ADAPTER_UNICAST_ADDRESS_VISTA. (fhandler_procnet::exists): Check for has_gaa_prefixes. Call get_adapters_addresses here. (fhandler_procnet::readdir): Ditto. (prefix): Move to net.cc. (fhandler_procnet::fill_filebuf): Call get_adapters_addresses here. Simplify allocation. Use AdapterName rather than FriendlyName as interface name. Use IfIndex if available, Ipv6IfIndex otherwise. (in6_are_prefix_equal): Move to net.cc. * fhandler_socket.cc: Define old SIOCGxxx values. (CONV_OLD_TO_NEW_SIO): Convert old SIOCGxxx value to new one. (struct __old_ifreq): Define old struct ifreq. (fhandler_socket::ioctl): Handle old SIOCGxxx values. Handle new SIOCGIFFRNDLYNAM command. Simplify copying ifreq data to user space. Call get_ifconf with additional SOCKET parameter. * net.cc (IP_ADAPTER_UNICAST_ADDRESS_LH): Define. (IP_ADAPTER_ADDRESSES_LH): Define. (SIO_GET_INTERFACE_LIST): Define. (sockaddr_in6_old): Define. (sockaddr_gen): Define. (INTERFACE_INFO): Define. (IN_LOOPBACK): Define. (in_are_prefix_equal): New static function. (ip_addr_prefix): New function, replaces prefix function, add AF_INET handling. (GAA_FLAG_INCLUDE_ALL_INTERFACES): Define. (get_adapters_addresses): New function. (WS_IFF_xxx): Define Winsock interface flag values. (convert_ifr_flags): New function to convert Winsock interface flag values to Cygwin interface flag values. (get_xp_ifconf): New get_ifconf implementation for XP SP1 and above. (get_2k_ifconf): Fix interface index. Fix formatting. (get_nt_ifconf): Fix formatting. (get_95_ifconf): Ditto. (get_ifconf): Take additional SOCKET parameter. Call get_xp_ifconf on XP SP1 and above. (if_nametoindex): New function. (if_indextoname): New function. (if_nameindex): New function. (if_freenameindex): New function. (in6_are_prefix_equal): Moved here from fhandler_procnet.cc. * wincap.cc (wincap_xp): Define has_gaa_prefixes as true by default. (wincapc::init): Assume has_osversioninfoex by default. Call GetVersionEx with OSVERSIONINFOEX first. Call with OSVERSIONINFO only if that fails. Simplify NT4 case and try to avoid strcmp. Check XP Service Pack using version.wServicePackMajor to avoid strcmp. * include/asm/socket.h (SIOCGIFFRNDLYNAM): Define. * include/cygwin/if.h: Fix formatting. (IFF_POINTTOPOINT): Define. (IFF_NOARP): Define. (IFF_LOWER_UP): Define. (IFF_DORMANT): Define. (struct if_nameindex): Define. (IFRF_FRIENDLYNAMESIZ): Define. (struct ifreq_frndlyname): Define. (IFNAMSIZ): Redefine as 44. (IF_NAMESIZE): Define. (struct ifreq): Redefine ifru_flags as int. Define ifru_data. Pad size to sizeof sockaddr_in6 for further extensions. (ifr_data): Define. (ifr_frndlyname): Define. (if_nametoindex): Declare. (if_indextoname): Declare. (if_nameindex): Declare. (if_freenameindex): Declare. * include/cygwin/version.h: Bump API minor number. (CYGWIN_VERSION_CHECK_FOR_OLD_IFREQ): Define check for old vs. new ifreq structure.
2007-01-19Oops. The actual change for this entry wasn't committed.Danny Smith
2007-01-11 Gisle Vanem <giva@users.sourceforge.net> * include/winbase.h (struct _OVERLAPPED): Change type of Internal, InternalHigh members to ULONG_PTR. (PAPCFUNC): Change DWORD parameter to ULONG_PTR. (CreateIoCompletionPort): Likewise. (PostQueuedCompletionStatus): Likewise. (QueueUserAPC): Likewise. (GetQueuedCompletionStatus): Change PDWORD parm to PULONG_PTR.
2007-01-19 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): DefineDanny Smith
unconditionally. Change comment. * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define here too. * include/io.h (rename): Declare. (remove): Declare.
2007-01-19 * spawn.cc (spawn_guts): Don't set cwd for non-Cygwin child processesCorinna Vinschen
on NT to allow starting them in virtual directories.
2007-01-18 * mmap.cc (list::hash): Fix type to __ino64_t.Corinna Vinschen
(list::get_hash): Ditto. (list::set): Add struct stat parameter. Use that instead of calling fstat. (map::get_list_by_fd): Ditto. (map::add_list): Ditto. (mmap_is_attached_or_noreserve): Call get_list_by_fd appropriately. (mmap_worker): Add pameters for map list and file stat information. Propagate to called functions. (mmap64): Use fstat on files early. Replace call to GetFileSize. Call get_list_by_fd and mmap_worker appropriately.
2007-01-18 * fhandler_procnet.cc: Drop declaration of htonl and ntohs. IncludeCorinna Vinschen
asm/byteorder.h instead.
2007-01-18 * include/cygwin/in6.h: Drop inclusion of asm/byteorder.h.Corinna Vinschen
* fhandler_procnet.cc: Declare htonl and ntohs here.
2007-01-17 * Makefile.in (DLL_OFILES): Add fhandler_procnet.o.Corinna Vinschen
* autoload.cc (GetAdaptersAddresses): Define. * devices.h (FH_PROCNET): Define new device. * devices.in (dev_procnet_storage): Add "/proc/net" entry. * devices.cc: Regenerate. * dir.cc (readdir_worker): Use isproc_dev macro. * dtable.cc (build_fh_pc): Add FH_PROCNET. * fhandler.h (class fhandler_procnet): New class. * fhandler_proc.cc: Add "net" subdirectory handling. * fhandler_procnet.cc: New file handling "/proc/net" directory. * path.cc (isvirtual_dev): Move to path.h. * path.h (isproc_dev): New macro to identify /proc files by device. (isvirtual_dev): Moved here. Define using isproc_dev. * syscalls.cc (unlink): Use isproc_dev macro. * wincap.h (wincapc::has_gaa_prefixes): New element. (wincapc::has_gaa_on_link_prefix): New element. * wincap.cc: Implement above elements throughout. (wincapc::init): Check XP for service pack and set has_gaa_prefixes appropriately. * include/cygwin/in6.h: Include asm/byteorder.h.
2007-01-17 * include/asm/socket.h (SIOGIFINDEX): Define.Corinna Vinschen
2007-01-17 * mmap.cc (MapView9x): Note possible uselessness of retrying.Corinna Vinschen
(MapViewNT): Ditto. (mmap64): Fix pre-reservation to work for non NULL, non MAP_FIXED.
2007-01-16 * autoload.cc (RtlAnsiStringToUnicodeString): Define.Corinna Vinschen
(RtlOemStringToUnicodeString): Define. * ntdll.h (struct _RTL_USER_PROCESS_PARAMETERS): Define. (struct _PEB): Redefine with a bit of content. (RtlAnsiStringToUnicodeString): Declare. (RtlOemStringToUnicodeString): Declare. * path.cc: Include ntdll.h. (_upp): New global variable pointing to user process parameter block. (get_user_proc_parms): New static function to retrieve user process parameter block. (close_user_proc_parms_cwd_handle): New function to close handle to current working directory in user process parameter block. (cwdstuff::init): Drop redundant declaration of dynamically_loaded. Set current dir only on 9x. Call close_user_proc_parms_cwd_handle on NT instead. (cwdstuff::keep_in_sync): Only on 9x. (cwdstuff::set): Keep behaviour on 9x. On NT write cwd path into user process parameter block and set cwd handle to NULL. Fix comments to reflect new behaviour.
2007-01-16 * fhandler_socket.cc (fhandler_socket::ioctl): Handle SIOCGIFINDEX.Corinna Vinschen
* net.cc (get_2k_ifconf): Ditto. (get_nt_ifconf): Fake SIOCGIFINDEX. (get_95_ifconf): Ditto. (get_ifconf): Handle SIOCGIFINDEX. Fake it for loopback on systems not supporting IP Helper Lib. * include/asm/socket.h (SIOCGIFINDEX): Define. * include/cygwin/if.h (struct ifreq): Add member for interface index. (ifr_ifindex): Define.
2007-01-16 * include/cygwin/in6.h (struct ipv6_mreq): Change type of interfaceCorinna Vinschen
member to uint32_t. (struct in6_pktinfo): Ditto.
2007-01-16 * include/cygwin/in.h (struct ip_mreq_source): Define.Corinna Vinschen
(struct ip_msfilter): Define. (IP_MSFILTER_SIZE): Define. (struct in_pktinfo): Define. (struct group_req): Define. (struct group_source_req): Define. (struct group_filter): Define. (GROUP_FILTER_SIZE): Define. (INADDR_ALLRTRS_GROUP): Define. * include/cygwin/socket.h: Define protocol agnostic multicast options.
2007-01-15 * CYGWIN_LICENSE: Fix web pages and contact information.Corinna Vinschen
2007-01-15 * ntdll.h: Adjust status definitions.Corinna Vinschen
2007-01-15 * cygheap.cc (cygheap_init): Add TODO comment.Corinna Vinschen
2007-01-15 * ntdll.h (STATUS_SHARING_VIOLATION): Define.Corinna Vinschen
2007-01-13 * syscalls.cc (unlink_nt): Don't move files to recycle bin which areCorinna Vinschen
not in use.
2007-01-13* glob.cc: Update copyright notice with latest from FreeBSD.Christopher Faylor
(glob0): Use correct type for c variable to propagate previously detected protection.
2007-01-12 * cygheap.cc (_csbrk): Fix off-by-one error.Corinna Vinschen
* cygwin.sc: Give .cygheap a minimum size of 512K.
2007-01-12* external.cc (sync_winenv): Use cur_environ () rather than __cygwin_environ.Christopher Faylor