aboutsummaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)AuthorFilesLines
2003-06-17 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,Danny Smith2-7/+14
__pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias): Mark as DATA.
2003-06-17* path.cc (mount): Do more strict checking on posix path arguments.Christopher Faylor2-2/+15
2003-06-16Throughout, remove "include <errno.h>" from files which already includeChristopher Faylor83-91/+65
cygerrno.h. * include/cygwin/config.h (__DYNAMIC_REENT__): Define. * include/cygwin/version.h: Bump API minor version. * cygwin.din: Export __getreent * cygerrno.h: Include errno.h. Fix places where _impure_ptr is used directly to store the errno value. * debug.cc (__set_errno): Ditto. * errno.cc: Remove _RRENT_ONLY define to get errno.cc compiled. * signal.cc: Rename _reent_clib to _REENT throughout. * thread.h (reent_clib): Remove prototype. * thread.cc (reent_clib): Rename reent_clib to __getreent. Return _impure_ptr until MTinterface is initialized. (reent_winsup): Fix a possible SEGV when _r == NULL. Return NULL instead. * MTinterface::fixup_after_fork: Switch reent back to _impure_ptr to keep signal handling running when fork is called from a thread other than the mainthread.
2003-06-13* cygcheck.cc (pretty_id): Rework slightly to not rely on spaces.Christopher Faylor2-7/+11
2003-06-13clarifyChristopher Faylor1-1/+2
2003-06-12Throughout, always return error when GetShortPathName returns 0.Christopher Faylor2-3/+7
2003-06-12* thread.cc (pthread_attr_init): Revert change from 2003-06-11Thomas Pfaff2-4/+12
to return 0 if attribute is already initialized back to EBUSY. (pthread_condattr_init): Ditto. (pthread_rwlockattr_init): Ditto. (pthread_mutexattr_init): Ditto.
2003-06-12 * exceptions.cc (ctrl_c_handler): Don't send a signal onCorinna Vinschen2-0/+11
CTRL_SHUTDOWN_EVENT. Add a comment to rationalize the patch.
2003-06-11* thread.cc (pthread_attr_init): Return 0 if attribute is already initialized.Thomas Pfaff2-10/+23
Fix return code if out of memory. (pthread_condattr_init): Ditto. (pthread_rwlockattr_init): Ditto. (pthread_mutexattr_init): Return 0 if attribute is already initialized.
2003-06-09 * spawn.cc (spawn_guts): Call CreateProcess while impersonated,Corinna Vinschen4-20/+50
when the real {u,g}ids and the groups are original. Move RevertToSelf and ImpersonateLoggedOnUser to the main line. * uinfo.cc (uinfo_init): Reorganize. If CreateProcess was called while impersonated, preserve the uids and gids and call ImpersonateLoggedOnUser. Preserve the uids and gids on Win9X. * exceptions.cc (error_start_init): Quote the pgm in the command.
2003-06-07fix typoChristopher Faylor1-1/+1
2003-06-07* poll.cc: Define FD_SETSIZE to ridiculously large number so that there will beChristopher Faylor2-0/+6
no artificially large limits.
2003-06-07* fhandler_tty.cc (fhandler_tty_slave::close): Free the console when last ttyChristopher Faylor2-1/+7
closes.
2003-06-07* fhandler_socket.cc (fhandler_socket::connect): Change errorThomas Pfaff2-6/+14
handling for nonblocking connects to return EALREADY when connect is called more than once for the same socket.
2003-06-06 * cygwin.din: Add vsyslog.Corinna Vinschen6-7/+28
* fhandler.cc (fhandler_base::write): Only make file sparse if the seeked area is >= 128K. * syslog.cc (vsyslog): New function, overtaking functionality from syslog. (syslog): Just call vsyslog. * include/cygwin/version.h: Bump API minor. * include/sys/syslog.h: Add vsyslog declaration.
2003-06-062003-06-06 Danny Smith <dannysmith@users.sourceforge.net>Danny Smith5-2/+162
* lib/test.c: #include <powerprof.h>. 2003-06-06 James E. Lucas <xelloss@sourceforge.net> * include/powerprof.h: New file. * lib/powerprof.def: New file. 2003-06-06 Danny Smith <dannysmith@users.sourceforge.net> * include/winnt (SLIST_HEADER): Add C90 anonymous struct protection.
2003-06-05* cygthread.cc (cygthread::terminate_thread): Change system_printf toChristopher Faylor2-1/+6
debug_printf.
2003-06-05 * include/winuser.h (WNDCLASS[AW], WNDCLASSEX[AW]): Change type ofLuke Dunstan2-4/+10
hInstance members to HINSTANCE. Thanks to: Brenden T. <brenden@rcsis.com>
2003-06-05* shared.cc (shared_info::heap_chunk_size): Be really defensive about makingChristopher Faylor2-0/+7
sure that heap_chunk is set.
2003-06-052003-06-05 Bart Oldeman <bartoldeman@users.sourceforge.net>Danny Smith3-2/+8
* include/lmaccess.h (UF_MNS_LOGON_ACCOUNT): Add define. * include/wingdi.h (LPRGBTRIPLE, LPRGBQUAD): Add typedefs.
2003-06-04* path.cc (conv_path_list): Use correct value when calculating length to avoidChristopher Faylor2-1/+6
a potential SEGV.
2003-06-042003-06-03 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2-25/+17
* fhandler_disk_file.cc (fhandler_disk_file::fstat): Mark the pc as non-executable if the file cannot be opened for read. Retry query open only if errno is EACCES. Never change the mode, even if it is 000 when query open() fails.
2003-06-04* configure.in: Allow any i?86 variant.Christopher Faylor1-0/+5
* configure: Regenerate.
2003-06-03* configure.in: Allow any i?86 variant.Christopher Faylor2-2/+2
* configure: Regenerate.
2003-06-03 * fhandler_socket.cc (connect_thread): Remove.Corinna Vinschen3-55/+77
(accept_thread): Remove. (fhandler_socket::connect): Remove all special blocking handling. (fhandler_socket::accept): Ditto. * net.cc (cygwin_connect): Make blocking sockets temporarily non-blocking and call cygwin_select on them to be interruptible. (cygwin_accept): Ditto.
2003-06-03* spawn.cc (spawn_guts): Don't hang around if the parent doesn't exist.Christopher Faylor2-2/+6
2003-06-02 * include/ddk/ntpoapi.h (POWER_INFORMATION_LEVEL): Remove.Danny Smith5-43/+35
* include/winnt.h (POWER_INFORMATION_LEVEL): Add. * include/ddk/winddk.h (SINGLE_LIST_ENTRY,SLIST_HEADER): Remove. * include/ddk/ndis.h (NdisAllocateSpinLock): Add missing '\'.
2003-06-02* cygthread.h (cygthread::terminate_thread): Mark private.Christopher Faylor3-5/+16
* cygthread.cc (cygthread::terminate_thread): Deallocate free_range thread stuff.
2003-06-02 * fhandler_socket.cc (fhandler_socket::accept): Rename `signalled'Corinna Vinschen2-2/+7
to `interrupted' as used in fhandler_socket::connect.
2003-06-02 * fhandler_socket.cc (fhandler_socket::connect): Simplify previousCorinna Vinschen2-28/+16
patch. (fhandler_socket::accept): Ditto.
2003-06-02 * fhandler_socket.cc: Include cygthread.h.Corinna Vinschen2-110/+71
(class sock_event): Remove. (thread_connect): New function. (thread_accept): Ditto. (fhandler_socket::connect): Use cygthread instead of socket event handling for blocking sockets. (fhandler_socket::accept): Ditto.
2003-06-02* fhandler.cc (fhandler_base::write): Correct minor printf formatting styleChristopher Faylor2-1/+6
glitch.
2003-06-012003-06-01 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2-12/+17
* fhandler_disk_file.cc (fhandler_disk_file::fstat_by_name): Assume an existing directory is a root if FindFirstFile fails.
2003-05-30* path.cc (mount_info::conv_to_win32_path): gcc warning about chroot_ok wasChristopher Faylor2-3/+9
actually valid. Fix it.
2003-05-30* cygheap.cc (init_cheap): Temporarily remove inline that newer gcc's haveChristopher Faylor4-15/+22
problems with. * path.cc (path_conv::check): Rework has_acls logic slightly. Uncouple exec tests away from filesystem tests.
2003-05-302003-05-30 Mattia Barbon <mbarbon@dsi.unive.it>Luke Dunstan7-12/+207
* lib/oleacc.def: New file. * include/winable.h: New file. * include/oleacc.h: Add extern "C" guard. (NAVDIR_*, ROLE_*, STATE_*): Add missing constants. (AccessibleChildren, AccessibleObjectFromEvent, AccessibleObjectFromPoint, AccessibleObjectFromWindow, CreateStdAccessibleProxy[AW], GetOleaccVersionInfo, GetRoleText[AW], GetStateText[AW], LresultFromObject, ObjectFromLresult, WindowFromAccessibleObject): Add prototypes and UNICODE mappings. * include/winuser.h (NotifyWinEvent): Add prototype. (OBJID_WINDOW, OBJID_SYSMENU, OBJID_TITLEBAR, OBJID_MENU, OBJID_CLIENT, OBJID_VSCROLL, OBJID_HSCROLL, OBJID_SIZEGRIP, OBJID_CARET, OBJID_CURSOR, OBJID_ALERT, OBJID_SOUND): Move from here to... * include/winable.h (OBJID_WINDOW, OBJID_SYSMENU, OBJID_TITLEBAR, OBJID_MENU, OBJID_CLIENT, OBJID_VSCROLL, OBJID_HSCROLL, OBJID_SIZEGRIP, OBJID_CARET, OBJID_CURSOR, OBJID_ALERT, OBJID_SOUND): Here, as per documentation. * lib/test.c: Include winable.h. * lib/user32.def (NotifyWinEvent): Add missing export.
2003-05-302003-05-30 Bang Jun-Young <junyoung@netbsd.org>Danny Smith3-1/+26
* include/winbase.h (HeapCompact): Correct prototype. * include/winnt.h (SINGLE_LIST_ENTRY, SLIST_ENTRY, SLIST_HEADER): Add.
2003-05-30 * include/sys/param.h: Add DEV_BSIZE.Corinna Vinschen2-1/+10
2003-05-302003-05-30 Sascha Sommer <saschasommer@freenet.de>Danny Smith2-0/+13
* include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
2003-05-29 * fhandler_socket.cc (fhandler_socket::dup): Rearrange. FixCorinna Vinschen2-22/+29
conditional.
2003-05-29* include/winuser.h (LWA_COLORKEY, LWA_ALPHA): Add defines.Luke Dunstan2-0/+6
2003-05-29* mkvers.sh: Avoid "-dontuse" tags.Christopher Faylor5-35/+74
* path.cc (path_conv::check): Set exec state based on known situations. * path.cc (mount_item::fnmunge): New function. (mount_item::build_win32): New function. (mount_info::conv_to_win32_path): Use build_win32 to build windows path. * path.h (mount_item::fnmunge): Declare new function. (mount_item::build_win32): Ditto. * sys/mount.h (MOUNT_ENC): Define.
2003-05-28 * fhandler_socket.cc (fhandler_socket::dup): If running impersonated,Corinna Vinschen2-10/+24
revert to original account before calling fixup_before_fork_exec and impersonate again afterwards. Change comment accordingly. Clean up error handling and debug output.
2003-05-27* fhandler_socket.cc (sock_event::~sock_event): New method.Thomas Pfaff2-21/+34
(sock_event::load): Change to void. Check if winsock2 is available. (socke_event::wait): Return 0 if interruptible mode is not available. (fhandler_socket::connect): Remove checks for winsock2 availability. (fhandler_socket::accept): Ditto.
2003-05-27 * fhandler_socket.cc (fhandler_socket::dup): First try duplicatingCorinna Vinschen2-7/+13
using WSADuplicateSocket/WSASocket, if that fails, try DuplicateHandle.
2003-05-27 * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): FilterCorinna Vinschen2-0/+8
permissions throug umask on FAT or if ntsec is off.
2003-05-26 * syscalls.cc (statfs): Call GetDiskFreeSpaceEx before GetDiskFreeSpace.Corinna Vinschen2-3/+10
2003-05-26 * fhandler.cc (is_at_eof): Fix conditional. Use INVALID_FILE_SIZECorinna Vinschen2-1/+6
instead of numeric constant.
2003-05-26 * fhandler_socket.cc (fhandler_socket::connect): Guard calls toCorinna Vinschen2-3/+9
sock_event methods by a check for WinSock2 availability. (fhandler_socket::accept): Ditto.
2003-05-26 * fhandler.h: Rename FH_W95LSBUG flag to FH_LSEEKED.Corinna Vinschen4-54/+92
(fhandler_base::set_did_lseek): Rename from set_check_win95_lseek_bug. (fhandler_base::get_did_lseek): Rename from get_check_win95_lseek_bug. (fhandler_base::set_fs_flags): New method. (fhandler_base::get_fs_flags): Ditto. * fhandler.cc (fhandler_base::write): Make 64 bit clean. Convert file to a "sparse" file when writing after a long lseek (>64K) beyond EOF. (fhandler_base::lseek): Call set_did_lseek() instead of set_check_win95_lseek_bug(). (fhandler_base::fhandler_base): Initialize fs_flags to 0. * fhandler_disk_file.cc (fhandler_disk_file::open): Don't create files as "sparse" unconditionally. Set fs_flags member.