summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * fhandler_socket.cc: Update copyright.Corinna Vinschen2006-07-133-2/+7
| | | | * include/pthread.h: Ditto.
* * mmap.cc (mmap64): Drop MAP_NORESERVE flag for non-anonymous,Corinna Vinschen2006-07-132-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.
* * exceptions.cc (_cygtls::handle_exceptions): Call newCorinna Vinschen2006-07-134-18/+48
| | | | | | | | | | mmap_is_attached_or_noreserve_page function in case of access violation and allow application to retry access on noreserve pages. * mmap.cc (mmap_is_attached_or_noreserve_page): Changed from mmap_is_attached_page. Handle also noreserve pages now. Change comment accordingly. * winsup.h (mmap_is_attached_or_noreserve_page): Declare instead of mmap_is_attached_page.
* * mmap.cc (mmap_record::alloc_page_map): Don't call VirtualProtectCorinna Vinschen2006-07-122-1/+6
| | | | on maps created with MAP_NORESERVE.
* * include/pthread.h: Define PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT andCorinna Vinschen2006-07-122-3/+10
| | | | PTHREAD_PRIO_PROTECT only if _POSIX_THREAD_PRIO_INHERIT is defined.
* * libc/inet_addr.c: Define __INSIDE_CYGWIN_NET__.Corinna Vinschen2006-07-103-0/+7
| | | | * libc/inet_network.c: Ditto.
* * fhandler_socket.cc (fhandler_socket::wait): Disable SA_RESTARTCorinna Vinschen2006-07-072-0/+9
| | | | handling for now.
* * Makefile.in (DLL_OFILES): Add inet_addr.o and inet_network.o.Corinna Vinschen2006-07-076-52/+378
| | | | | | | | | | | | | * autoload.cc (inet_addr): Drop definition. (inet_ntoa): Ditto. * net.cc: Forward declare cygwin_inet_aton and cygwin_inet_ntop. (cygwin_inet_ntoa): Call cygwin_inet_ntop instead of Winsock inet_ntoa. (cygwin_inet_addr): Remove here. (cygwin_inet_aton): Ditto. (cygwin_inet_network): Ditto. * libc/inet_addr.c: New file implementing cygwin_inet_aton and cygwin_inet_addr. * libc/inet_network.c: New file implementing cygwin_inet_network.
* * hookapi.cc: Add comment headerChristopher Faylor2006-07-064-6/+27
| | | | | | | | | (putmem): Make static. (get_export): Ditto. (rvadelta): Ditto. Don't assume that a section which ends where the import_rva begins is the import list. * child_info.h: Update copyright. * fork.cc: Ditto.
* * include/math.h (__INFF,__INFL): Remove '#'.Danny Smith2006-07-062-3/+7
|
* * sortdin: Ignore all leading underscores when deriving a sort key.Christopher Faylor2006-07-053-64/+69
| | | | * cygwin.din: Resort.
* * sortdin: New program.Christopher Faylor2006-07-053-201/+240
| | | | * cygwin.din: Sort.
* * fhandler.h (fhandler_socket::wait): Reset default timeout to 10ms.Corinna Vinschen2006-07-052-1/+5
|
* * path.cc (path_conv::check): Ignore has_ea setting, it's always unsetCorinna Vinschen2006-07-052-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.
* * libc/rexec.cc (cygwin_rexec): Obvious (?) fix to correct a gcc warning - setChristopher Faylor2006-07-052-2/+6
| | | | port to zero first thing in the function.
* * signal.cc (signal): Set sa_mask to sig.Christopher Faylor2006-07-042-1/+5
|
* * Makefile.in (DLL_OFILES): Add rexec.o.Corinna Vinschen2006-07-045-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.
* * fhandler_socket.cc (fhandler_socket::listen): Allow listening onCorinna Vinschen2006-07-042-3/+22
| | | | unbound INET socket.
* * fhandler.h (fhandler_socket::wait): Set default timeout to INFINITE.Corinna Vinschen2006-07-042-1/+5
|
* * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.Danny Smith2006-07-032-2/+6
|
* * autoload.cc (NtQueryEaFile): Define.Corinna Vinschen2006-07-038-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.
* * Makefile.in: Build setmetamode.exe.Corinna Vinschen2006-07-033-1/+88
| | | | * setmetamode.c: New file.
* * fhandler.h (class dev_console): Add `metabit' indicating theCorinna Vinschen2006-07-036-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.
* * include/stdint.h (UINT8_C, UINT16_C): Unsigned types smallerCorinna Vinschen2006-07-032-3/+8
| | | | than int promote to signed int.
* * net.cc (cygwin_sendto): Define appropriate parameters usingCorinna Vinschen2006-07-034-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.
* Add a real Changelog entry.Danny Smith2006-07-031-0/+22
|
* Support SSE float environment in fenv.h functions.Danny Smith2006-07-0315-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.
* * include/cygwin/version.h: Bump DLL minor version number to 21.Christopher Faylor2006-07-022-3/+7
|
* * net.cc (cygwin_sendto): Allow zero-sized packets.Corinna Vinschen2006-06-302-3/+7
| | | | (cygwin_sendmsg): Ditto.
* Revert patches from 2005-10-22 and 2006-06-14 to use event drivenCorinna Vinschen2006-06-264-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-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2006-06-263-93/+103
| | | | | * Include/_mingw.h: Increment version to 3.10. * Makefile.in: Ditto.
* * mingwex/math/tgamma.c (SQTPI): Add braces.Danny Smith2006-06-262-1/+5
|
* * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.Danny Smith2006-06-265-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.
* Changelog formattingDanny Smith2006-06-251-1/+1
|
* * fhandler_fifo.cc (fhandler_fifo::open): Release process lock and grab aChristopher Faylor2006-06-234-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.
* * include/sys/time.h (struct timezone): Define.Danny Smith2006-06-223-1/+16
| | | | * include/time.h (_timezone): Correct comment.
* * configure.in (AC_CONFIG_AUX_DIR): Remove.Danny Smith2006-06-183-46/+59
| | | | * configure: Regenerate.
* 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>Chris Sutcliffe2006-06-182-1/+5
| | | | * configure: add srcdir as a possible location for install-sh.
* * mingwex/dirent.c (_tGetFileAttributes): New helper function.Danny Smith2006-06-182-1/+25
| | | | (_topendir): Use it.
* * include/sys/time.h: Add header guard. Add extern "C" bracketingDanny Smith2006-06-184-3/+83
| | | | | | | for __cplusplus. (gettimeofday): Add prototype. * mingwex/gettimeofday.c: New file. * mingwex/makefile.in: Add gettimeofday source and object.
* * cygwin.din: Export __srget_r, __swbuf_r.Corinna Vinschen2006-06-153-1/+9
| | | | * include/cygwin/version.h: Bump API minor number to 156.
* * fhandler.h (class fhandler_socket): Add private mutex handleCorinna Vinschen2006-06-143-1/+49
| | | | | | | | | | | | accept_mtx. * fhandler_socket.cc (fhandler_socket::fhandler_socket): Initialize accept_mtx to NULL. (fhandler_socket::dup): Duplicate accept_mtx, if available. (fhandler_socket::listen): Create accept_mtx before trying to listen. (fhandler_socket::prepare): Wait for accept_mtx if available to serialize accepts on the same socket. (fhandler_socket::release): Release accept_mtx. (fhandler_socket::close): Close accept_mtx on successful closesocket.
* 2006-06-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2006-06-134-8/+29
| | | | | | | | | | | * lib/uuid.c (CLSID_FileProtocol, CLSID_FtpProtocol, CLSID_GopherProtocol, CLSID_HttpProtocol, CLSID_HttpSProtocol, CLSID_MkProtocol, CLSID_PSUrlMonProxy, CLSID_StdURLMoniker): Remove. Moved to extras-uuid.c. * lib/extras-uuid.c (CLSID_FileProtocol, CLSID_FtpProtocol, CLSID_GopherProtocol, CLSID_HttpProtocol, CLSID_HttpSProtocol, CLSID_MkProtocol, CLSID_PSUrlMonProxy, CLSID_StdURLMoniker): Added. * lib/hlguids-uuid.c: State source of CLSIDs.
* 2006-06-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2006-06-134-16/+40
| | | | | | | | | | | | * lib/Makefile.in: Added extras-uuid as an object and source. * lib/uuid.c (IID_IClientSiteHandler, IID_IContinue, IID_IHttpNegotiate, IID_IPersistMoniker, IID_IServerHandler, IID_ITargetEmbedding, IID_ITargetFrame, IID_ITypeComp, IID_IUrlHistoryStg, IID_IWinInetHttpInfo, IID_IWinInetInfo, IID_IEnumSTATPROPSETSTG, IID_IEnumSTATPROPSTG, IID_IEnumSTATURL): Remove. Moved to extras-uuid.c. * lib/extras-uuid.c: New file. Thank you to Julien Lecomte (julienlecomte at users dot sourceforge dot net).
* * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,Danny Smith2006-06-122-3/+28
| | | | | | | | else global library variable. (HUGEVALF): Likewise; (HUGEVALL): Likewise. (INFINITY): Likewise. (NAN): LiKewise.
* * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.Danny Smith2006-06-122-1/+5
|
* * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.Danny Smith2006-06-122-1/+5
|
* * fhandler_tty.cc (fhandler_pty_master::close): Always closeChristopher Faylor2006-06-122-12/+11
| | | | from_master/to_master since we always have copies of these handles.
* * include/sys/wait.h: Move definition of wait constants from here...Corinna Vinschen2006-06-124-22/+46
| | | | | * include/cygwin/wait.h: ...to here. New file. * include/cygwin/stdlib.h: Include cygwin/wait.h to conform with SUSv3.
* * winsup.api/user_malloc.c: New file.Corinna Vinschen2006-06-122-0/+220
|