aboutsummaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)AuthorFilesLines
2006-07-18 * Merge HEAD into cv-branch.Corinna Vinschen17-33/+85
2006-07-14 * security.cc (get_token_group_sidlist): Always add the interactiveCorinna Vinschen4-22/+81
group to the token. Add comment. Create logon_id group SID by copying it from incoming group list. (create_token): Add subauth_token parameter. Use information in subauth_token if present. Tweak SourceIdentifier if subauth_token is present for debugging purposes. * security.h (create_token): Add subauth_token parameter in declaration. * syscalls.cc (seteuid32): Call subauth first. Call create_token regardless. Use subauth token in call to create_token if subauth succeeded.
2006-07-14 * configure.in: Reenable building the subauth subdir.Corinna Vinschen3-24/+42
* configure: Regenerate.
2006-07-14 * Makefile.in (LIBS): Link against msvcrt.dll, too.Corinna Vinschen2-1/+5
2006-07-14 * Merge HEAD into cv-branch.Corinna Vinschen4-8/+20
2006-07-13 * include/netinet/in.h: Update copyright.Corinna Vinschen4-3/+12
* fhandler_socket.cc: Update copyright. * include/pthread.h: Ditto.
2006-07-13 * fhandler_socket.cc (fhandler_socket::wait): Rework function so thatCorinna Vinschen2-68/+68
WaitForMultipleObjects is really only called when necessary.
2006-07-13 * mmap.cc (mmap64): Drop MAP_NORESERVE flag for non-anonymous,Corinna Vinschen2-3/+24
non-private mappings. (mmap_record::unmap_pages): Only check noreserve flag which now implies anonymous and private. (mprotect): Ditto. (fixup_mmaps_after_fork): Ditto.
2006-07-13 * Merge HEAD into cv-branch.Corinna Vinschen4-19/+54
2006-07-12 * include/netdb.h: Declare rcmd, rcmd_af, rexec, rresvport,Corinna Vinschen2-0/+17
rresvport_af, iruserok, iruserok_sa, ruserok.
2006-07-12 * Makefile.in (DLL_OFILES): Drop iruserok.o. Add rcmd.o.Corinna Vinschen9-396/+888
* autoload.cc (rcmd): Drop definition. * cygwin.din: Export bindresvport, bindresvport_sa, iruserok_sa, rcmd_af, rresvport_af. * net.cc (cygwin_rcmd): Remove. (last_used_bindresvport): Rename from last_used_rrecvport. (cygwin_bindresvport_sa): New function implementing bindresvport_sa. (cygwin_bindresvport): New function implementing bindresvport. (cygwin_rresvport): Remove. * include/cygwin/version.h: Bump API minor number. * include/netinet/in.h: Declare bindresvport and bindresvport_sa. * libc/iruserok.c: Remove file. * libc/rcmd.cc: New file implementing rcmd, rcmd_af, rresvport, rresvport_af, iruserok_sa, iruserok and ruserok.
2006-07-12 * include/pthread.h: Define PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT andCorinna Vinschen2-3/+10
PTHREAD_PRIO_PROTECT only if _POSIX_THREAD_PRIO_INHERIT is defined.
2006-07-12 * fhandler_socket.cc (fhandler_socket::getsockname): Return validCorinna Vinschen2-1/+35
result for unbound sockets.
2006-07-11 * fhandler_socket.cc (fhandler_socket::fixup_after_fork): HandleCorinna Vinschen2-6/+20
wsock_mtx and wsock_evt on fork, thus handling close_on_exec correctly. (fhandler_socket::fixup_after_exec): Drop misguided attempt to handle close_on_exec here. (fhandler_socket::dup): Call fixup_after_fork with NULL parent. Add comment. (fhandler_socket::set_close_on_exec): Handle wsock_mtx and wsock_evt.
2006-07-10 * Merge HEAD into cv-branch.Corinna Vinschen8-447/+449
* fhandler.h (class fhandler_socket): Add wsock_mtx, wsock_evt and wsock_events members. Remove closed status flag, add listener status flag. Accomodate new implementation of socket event handling methods. Declare recv* and send* functions ssize_t as the POSIX equivalents. (fhandler_socket::recv_internal): Declare. (fhandler_socket::send_internal): Ditto. * fhandler_socket.cc (EVENT_MASK): Define mask of selected events. (fhandler_socket::fhandler_socket): Initialize new members. (fhandler_socket::af_local_setblocking): Don't actually set the socket to blocking mode. Keep sane event selection. (fhandler_socket::af_local_unsetblocking): Don't actually set the socket to previous blocking setting, just remember it. (struct wsa_event): New structure to keep event data per shared socket. (NUM_SOCKS): Define number of shared sockets concurrently handled by all active Cygwin processes. (wsa_events): New shared datastructure keeping all wsa_event records. (socket_serial_number): New shared variable to identify shared sockets. (wsa_slot_mtx): Global mutex to serialize wsa_events access. (search_wsa_event_slot): New static function to select a new wsa_event slot for a new socket. (fhandler_socket::prepare): Rewrite. Prepare event selection per new socket. (fhandler_socket::wait): Rewrite. Wait for socket events in thread safe and multiple process safe. (fhandler_socket::release): Rewrite. Close per-socket descriptor mutex handle and event handle. (fhandler_socket::dup): Duplicate wsock_mtx and wsock_evt. Fix copy-paste error in debug output. (fhandler_socket::connect): Accomodate new event handling. (fhandler_socket::listen): Set listener flag on successful listen. (fhandler_socket::accept): Accomodate new event handling. (fhandler_socket::recv_internal): New inline method centralizing common recv code. (fhandler_socket::recvfrom): Call recv_internal now. (fhandler_socket::recvmsg): Ditto. Streamline copying from iovec to WSABUF. (fhandler_socket::send_internal): New inline method centralizing common send code. (fhandler_socket::sendto): Call send_internal now. (fhandler_socket::sendmsg): Ditto. Streamline copying from iovec to WSABUF. (fhandler_socket::close): Call release now. (fhandler_socket::ioctl): Never actually switch to blocking mode. Just keep track of the setting. * net.cc (fdsock): Call prepare now. (cygwin_connect): Revert again to event driven technique. (cygwin_accept): Ditto. * poll.cc (poll): Don't call recvfrom on a listening socket. Remove special case for failing recvfrom. * include/sys/socket.h: Declare recv* and send* functions ssize_t as requested by POSIX.
2006-07-07 * net.cc (cygwin_inet_ntop): Fix data type of forth parameter.Corinna Vinschen2-1/+5
2006-07-07 * Merge HEAD into cv-branch.Corinna Vinschen4-52/+28
2006-07-07This commit was manufactured by cvs2svn to create branch 'cv-branch'.cvs2svn2-0/+350
Cherrypick from master 2006-07-07 09:14:15 UTC Corinna Vinschen <corinna@vinschen.de> ' * Makefile.in (DLL_OFILES): Add inet_addr.o and inet_network.o.': winsup/cygwin/libc/inet_addr.c winsup/cygwin/libc/inet_network.c
2006-07-06 * Merge HEAD into cv-branch.Corinna Vinschen4-6/+27
2006-07-06 * include/cygwin/in6.h (struct in6_addr): Fix typo.Corinna Vinschen2-1/+5
2006-07-06 * cygwin.din: Export in6addr_any, in6addr_loopback, freeaddrinfo,Corinna Vinschen9-73/+1674
gai_strerror, getaddrinfo, getnameinfo. * fhandler_socket.cc: Include cygwin/in6.h. (get_inet_addr): Accomodate AF_INET6 usage. (fhandler_socket::connect): Ditto. (fhandler_socket::listen): Ditto. (fhandler_socket::sendto): Ditto. * net.cc: Include cygwin/in6.h. (in6addr_any): Define. (in6addr_loopback): Define. (cygwin_socket): Accomodate AF_INET6 usage. (socketpair): Bind socketpairs only to loopback for security. (inet_pton4): New static function. (inet_pton6): Ditto. (cygwin_inet_pton): New AF_INET6 aware inet_pton implementation. (inet_ntop4): New static function. (inet_ntop6): Ditto. (cygwin_inet_ntop): New AF_INET6 aware inet_ntop implementation. (ga_aistruct): New static function. (ga_clone): Ditto. (ga_echeck): Ditto. (ga_nsearch): Ditto. (ga_port): Ditto. (ga_serv): Ditto. (ga_unix): Ditto. (gn_ipv46): Ditto. (ipv4_freeaddrinfo): Ditto. (ipv4_getaddrinfo): Ditto. (ipv4_getnameinfo): Ditto. (gai_errmap_t): New structure holding error code - error string mapping. (cygwin_gai_strerror): New function implementing gai_strerror. (w32_to_gai_err): New static function. (get_ipv6_funcs): Ditto. (load_ipv6_funcs): Ditto. (cygwin_freeaddrinfo): New function implementing freeaddrinfo. (cygwin_getaddrinfo): New function implementing getaddrinfo. (cygwin_getnameinfo): New function implementing getnameinfo. * include/netdb.h: Include stdint.h and cygwin/socket.h. Define data types and macros used by getaddrinfo and friends. Declare freeaddrinfo, gai_strerror, getaddrinfo and getnameinfo. * include/cygwin/in.h: Add IPv6 related IPPROTOs. Remove definition of struct sockaddr_in6. Include cygwin/in6.h instead. * include/cygwin/in6.h: New header file defining IPv6 releated data types and macros. * include/cygwin/socket.h: Enable AF_INET6 and PF_INET6. Add IPv6 related socket options. * include/cygwin/version.h: Bump API minor number.
2006-07-06 * autoload.cc (DsGetDcNameA): Define.Corinna Vinschen5-16/+69
(NetGetAnyDCName): Define. * security.cc: Include dsgetdc.h. (DsGetDcNameA): Declare. (DS_FORCE_REDISCOVERY): Define. (get_logon_server): Add bool parameter to control rediscovery of DC. Use DsGetDcNameA function if supported, NetGetDCName/NetGetAnyDCName otherwise. (get_server_groups): Rediscover DC if get_user_groups fails and try again. (get_reg_security): Use correct error code macro when testing RegGetKeySecurity return value. * security.h (get_logon_server): Remove default vaue from wserver parameter. Add rediscovery parameter. * uinfo.cc (cygheap_user::env_logsrv): Accomodate rediscovery parameter in call to get_logon_server.
2006-07-06* include/math.h (__INFF,__INFL): Remove '#'.Danny Smith2-3/+7
2006-07-05* sortdin: Ignore all leading underscores when deriving a sort key.Christopher Faylor3-64/+69
* cygwin.din: Resort.
2006-07-05* sortdin: New program.Christopher Faylor3-201/+240
* cygwin.din: Sort.
2006-07-05 * fhandler.h (fhandler_socket::wait): Reset default timeout to 10ms.Corinna Vinschen2-1/+5
2006-07-05 * path.cc (path_conv::check): Ignore has_ea setting, it's always unsetCorinna Vinschen2-39/+11
at this point anyway. (get_symlink_ea): Remove. (set_symlink_ea): Remove. (symlink_worker): Drop writing symlink into NTFS extended attributes. (symlink_info::check): Drop reading symlinks from NTFS extended attributes.
2006-07-05* libc/rexec.cc (cygwin_rexec): Obvious (?) fix to correct a gcc warning - setChristopher Faylor2-2/+6
port to zero first thing in the function.
2006-07-04* signal.cc (signal): Set sa_mask to sig.Christopher Faylor2-1/+5
2006-07-04 * Makefile.in (DLL_OFILES): Add rexec.o.Corinna Vinschen5-64/+430
* autoload.cc (inet_network): Drop definition. (rexec): Ditto. * net.cc (rexec): Drop extern declaration. (inet_network): Ditto. (cygwin_inet_network): Implement using inet_addr. (cygwin_rexec): Remove. * libc/rexec.cc: New file.
2006-07-04 * fhandler_socket.cc (fhandler_socket::listen): Allow listening onCorinna Vinschen2-3/+22
unbound INET socket.
2006-07-04 * fhandler.h (fhandler_socket::wait): Set default timeout to INFINITE.Corinna Vinschen2-1/+5
2006-07-03 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.Danny Smith2-2/+6
2006-07-03 * autoload.cc (NtQueryEaFile): Define.Corinna Vinschen8-302/+199
(NtSetEaFile): Define. * fhandler.cc (fhandler_base::open): Use appropriate open flags in query case when allow_ntea is set. * ntdll.h (struct _FILE_GET_EA_INFORMATION): Define. (struct _FILE_FULL_EA_INFORMATION): Define. (NtQueryEaFile): Declare. (NtSetEaFile): Declare. * ntea.cc (read_ea): Rename from NTReadEA and rewrite using NtQueryEaFile. (write_ea): Rename from NTWriteEA and rewrite using NtSetEaFile. * path.cc (get_symlink_ea): Make static. Add handle parameter to accomodate new read_ea call. (set_symlink_ea): Make static. Add handle parameter to accomodate new write_ea call. (symlink_worker): Call set_symlink_ea while file is still open. (symlink_info::check): Call get_symlink_ea after file has been opened. * security.cc (get_file_attribute): Accomodate new read_ea call. (set_file_attribute): Accomodate new write_ea call. * security.h (read_ea): Change declaration accordingly. (write_ea): Ditto.
2006-07-03 * Makefile.in: Build setmetamode.exe.Corinna Vinschen3-1/+88
* setmetamode.c: New file.
2006-07-03 * fhandler.h (class dev_console): Add `metabit' indicating theCorinna Vinschen6-3/+106
current meta key mode. * fhandler_console.cc (fhandler_console::read): Set the top bit of the character if metabit is true. * fhandler_console.cc (fhandler_console::ioctl): Implement KDGKBMETA and KDSKBMETA commands. * fhandler_tty.cc (process_ioctl): Support KDSKBMETA. (fhandler_tty_slave::ioctl): Send KDGKBMETA and KDSKBMETA to the master. * include/cygwin/kd.h: New file for the meta key mode. * include/sys/kd.h: New file.
2006-07-03 * include/stdint.h (UINT8_C, UINT16_C): Unsigned types smallerCorinna Vinschen2-3/+8
than int promote to signed int.
2006-07-03 * net.cc (cygwin_sendto): Define appropriate parameters usingCorinna Vinschen4-27/+50
socklen_t type according to SUSv3. (cygwin_recvfrom): Ditto. (cygwin_setsockopt): Ditto. (cygwin_getsockopt): Ditto. (cygwin_connect): Ditto. (cygwin_accept): Ditto. (cygwin_bind): Ditto. (cygwin_getsockname): Ditto. (cygwin_getpeername): Ditto. (cygwin_recv): Ditto. (cygwin_send): Ditto. * include/cygwin/socket.h (socklen_t): Typedef and define. * include/sys/socket.h: Declare socket functions using socklen_t type.
2006-07-03 Add a real Changelog entry.Danny Smith1-0/+22
2006-07-03 Support SSE float environment in fenv.h functions.Danny Smith15-18/+253
* cpu_features.c: New file. * cpu_features.h: New file. * crt1.c: Include "cpu_features.h". (__mingw_CRTStartup): Call cpu_features_init(). * Makefile.in (MING_OBJS): Add cpu_features.c. (SRCDIST_FILES): Add cpu_features.c, cpu_features.h. * include/fenv,h ( fenv_t;): Append __mxcsr field. (__MXCSR_EXCEPT_FLAG_SHIFT): New define. (__MXCSR_EXCEPT_MASK_SHIFT): New define. (__MXCSR_ROUND_FLAG_SHIFT): New define. * mingwex/feclearexcept.c: Include "cpu_features.h". Handle SSE environment. * mingwex/fegetenv.c: Likewise. * mingwex/feholdexcept.c: Likewise. * mingwex/fesetenv.c: Likewise. * mingwex/fesetexceptflag.c: Likewise. * mingwex/fesetround.c: Likewise. * mingwex/fetestexcept.c: Likewise. * mingwex/feupdateenv.c: Likewise. * mingwex/fegetround.c: Add comment.
2006-07-02* include/cygwin/version.h: Bump DLL minor version number to 21.Christopher Faylor2-3/+7
2006-06-30 * net.cc (cygwin_sendto): Allow zero-sized packets.Corinna Vinschen2-3/+7
(cygwin_sendmsg): Ditto.
2006-06-26 Revert patches from 2005-10-22 and 2006-06-14 to use event drivenCorinna Vinschen4-67/+84
accept and connect back to using select: * fhandler.h (class fhandler_socket): Remove accept_mtx. * fhandler_socket.cc (fhandler_socket::fhandler_socket): Drop initializing accept_mtx. (fhandler_socket::accept): Drop event handling. (fhandler_socket.cc (fhandler_socket::connect): Ditto. (fhandler_socket::dup): Drop accept_mtx handling. (fhandler_socket::listen): Ditto. (fhandler_socket::prepare): Ditto. (fhandler_socket::release): Ditto. (fhandler_socket::close): Ditto. * net.cc (cygwin_accept): Revert to calling cygwin_select to implement interuptible accept. (cygwin_connect): Ditto for connect.
2006-06-262006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe3-93/+103
* Include/_mingw.h: Increment version to 3.10. * Makefile.in: Ditto.
2006-06-26 * mingwex/math/tgamma.c (SQTPI): Add braces.Danny Smith2-1/+5
2006-06-26 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.Danny Smith5-28/+55
* mingwex/math/lgamma.c: (LOGPI) Avoid type punning. (LS2PI): Likewise. * mingwex/math/sf_erf.c (erff): Initialize z. (erfcf): Likewise. * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
2006-06-25Changelog formattingDanny Smith1-1/+1
2006-06-23* fhandler_fifo.cc (fhandler_fifo::open): Release process lock and grab aChristopher Faylor4-4/+56
system-wide mutex to prevent a deadlock and a race. * sync.h (lock_process): Make fhandler_fifo a friend. * smallprint.c (__small_vsprintf): Cosmetic change.
2006-06-22 * include/sys/time.h (struct timezone): Define.Danny Smith3-1/+16
* include/time.h (_timezone): Correct comment.
2006-06-18 * configure.in (AC_CONFIG_AUX_DIR): Remove.Danny Smith3-46/+59
* configure: Regenerate.