summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
...
* * spawn.cc (find_exec): Fix one more path where retval was not set.Christopher Faylor2009-08-012-0/+5
|
* * spawn.cc (find_exec): Stop relying on the ability to set retval to a fixedChristopher Faylor2009-08-012-4/+13
| | | | path_conv buffer and set it on the fly instead.
* * path.h (cstrdup): Fix declaration.Corinna Vinschen2009-07-302-1/+5
|
* * globals.cc (enum exit_states::ES_GLOBAL_DTORS): Delete.Corinna Vinschen2009-07-303-7/+17
| | | | | | | * dcrt0.cc (__main): Schedule dll_global_dtors to run atexit before global dtors. (do_exit): Delete test for ES_GLOBAL_DTORS and call to dll_global_dtors.
* * path.h (class path_conv): Convert path from char array to char *.Corinna Vinschen2009-07-304-44/+65
| | | | | | | | | | | | | | Initialize to NULL in constructors. Drop normalized_path_size member. (path_conv::size): Remove. (path_conv::operator =): Always copy with sizeof path_conv. Always duplicate path on cygheap. (path_conv::set_path): Move implementation to spawn.cc. * path.cc (path_conv::set_normalized_path): Always allocate normalized_path on cygheap. (path_conv::check): Don't work on path, rather allocate THIS_path in TLS and use it throughout. When finished, allocate path on cygheap and copy over. Defer tacking on extension after having copied path. * spawn.cc (path_conv::set_path): Implement here.
* Fix formatting issue with last entryChris Sutcliffe2009-07-301-1/+1
|
* Correct disposition of wchar_t output in printf().Keith Marshall2009-07-292-4/+11
|
* * mount.h (enum fs_info_type): New type.Corinna Vinschen2009-07-283-84/+131
| | | | | | | | | | | | | | | | (IMPLEMENT_FS_FLAG): New define. (class fs_info): Convert filesystem type status flags into an enum fs_info_type. Add cifs FS. Revert change to has_buggy_open and has_buggy_fileid_dirinfo. Make them normal; status flags again. Implement is_FS functions using IMPLEMENT_FS_FLAG. * mount.cc (fs_info::update): Define MINIMAL_WIN_NTFS_FLAGS and FS_IS_WINDOWS_NTFS. Add comment. Only test remote filesystems for "NTFS" once. Add is_cifs check using FS_IS_WINDOWS_NTFS. Set has_buggy_open flag for SUNWNFS. Set has_buggy_fileid_dirinfo flag for UNIXFS and all cifs type filesystems. Only check for caseinsensitivity once. (fillout_mntent): Create locale fs_names array. Use for setting _my_tls.locals.mnt_type.
* 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2009-07-282-2/+5
| | | | * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
* Convert to monolithic configuration procedure.Keith Marshall2009-07-2712-8342/+215
|
* * include/winnt.h (FILE_SUPPORTS_HARD_LINKS,Corinna Vinschen2009-07-273-0/+24
| | | | | | | FILE_SUPPORTS_EXTENDED_ATTRIBUTES, FILE_SUPPORTS_OPEN_BY_FILE_ID, FILE_SUPPORTS_USN_JOURNALS): Define. Add comment. * include/ddk/ntifs.h: Ditto. (FILE_SEQUENTIAL_WRITE_ONCE, FILE_SUPPORTS_TRANSACTIONS): Define.
* * posix.sgml (std-notes): Remove obsolete reference to CYGWIN=server.Corinna Vinschen2009-07-272-3/+5
|
* * posix.sgml (std-notes): Add flock restriction.Corinna Vinschen2009-07-262-0/+9
|
* * fhandler_console.cc (set_console_title): Set buffer size toCorinna Vinschen2009-07-252-2/+7
| | | | TITLESIZE + 1. Call sys_mbstowcs with correct destination length.
* * sigproc.h (wait_for_sigthread): Eliminate parameter.Christopher Faylor2009-07-2421-143/+341
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sigproc.cc (wait_for_sigthread): Ditto. Don't synchronize with wait_sig after receiving an event that it is ready to go. (init_sig_pipe): New function. (wait_sig): Call init_sig_pipe to create pipes for communicating signals to this process. Don't send sigCONT signal when initializing. * fork.cc (frok::child): Accommodate wait_for_sigpipe parameter change. * fhandler.h (fhandler_*::write): Make ssize_t/__stdcall. (fhandler_*::write_overlapped): Ditto. (fhandler_*::raw_write): Ditto. (fhandler_*::readv): Ditto. (fhandler_*::writev): Ditto. (fhandler_*::raw_read): Make __stdcall. * fhandler: Accommodate changes to read/write functions throughout. * fhandler_clipboard.cc: Ditto. * fhandler_console.cc: Ditto. * fhandler_dsp.cc: Ditto. * fhandler_fifo.cc: Ditto. * fhandler_mailslot.cc: Ditto. * fhandler_mem.cc: Ditto. * fhandler_mem.cc: Ditto. * fhandler_random.cc: Ditto. * fhandler_tape.cc: Ditto. * fhandler_tty.cc: Ditto. * fhandler_virtual.cc: Ditto. * fhandler_windows.cc: Ditto. * fhandler_zero.cc: Ditto. * syscalls.cc (readv): Use ssize_t as temp variable. * fhandler.cc (fhandler_base::read): Coerce returned len to signed or it will never be treated as < 0. (fhandler_base::wait_overlapped): Minimize calls to GetLastError. Remove duplicate debugging test. Fix error return. * fhandler.h (fhandler_fifo::fifo_name): Declare new function. (fhandler_fifo::close): Ditto. (fhandler_fifo::dup): Ditto. (fhandler_fifo::close_on_exec): Ditto. * fhandler.cc (fhandler_fifo::fifo_name): Define new function. (FIFO_BUF_SIZE): New define. (cnp): Ditto. (fhandler_fifo::open): Rework. Use cnp to open named pipe. Always open write side as a client. Open dummy client when writing and can't connect. (wait): Rework. Implement fifo_wait_for_next_client. Handle signals during connect better. Add new fifo_wait_for_server code which polls (sigh) waiting for server. (fhandler_fifo::raw_read): Handle transition states when one client closes and another is available. (fhandler_fifo::close): Define. (fhandler_fifo::dup): Ditto. (fhandler_fifo::close_on_exec): Ditto.
* * syscalls.cc (internal_setlocale): Fix typo in GBK codepage.Corinna Vinschen2009-07-242-1/+5
|
* * syscalls.cc (unlink_nt): Ignore sharing violation on NFS. AlignCorinna Vinschen2009-07-242-3/+9
| | | | comments.
* 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2009-07-242-0/+7
| | | | | * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due to complaints that it causes issues.
* 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>Chris Sutcliffe2009-07-242-1/+5
| | | | * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
* * mount.h (fs_info::fsn): New member.Corinna Vinschen2009-07-233-3/+28
| | | | | | | | | | (fs_info::clear): Clear fsn. (fs_info::fsname): New read accessor for fsn. * mount.cc (fs_info::update): Fill in fsn member with lowercased filesystem name if filesystem is not well-known. Fall back to "unknown" if filesystem name is missing. (fillout_mntent): Print filesystem name retrieved in fs_info::update rather than static string "unknown".
* * cygcheck.cc (dump_sysinfo): Add missing "Server Foundation" toCorinna Vinschen2009-07-232-1/+6
| | | | products array.
* * faq-using.xml (faq.using.ipv6): Try to clarify OS specific support.Corinna Vinschen2009-07-234-7/+15
| | | | | * faq-what.xml (faq.what.supported): Add Windows 7 and 2008 R2. * new-features.sgml: Add "and later" to rcmd news.
* * mount.cc (fs_info::update): Revert to open filesystem with access setCorinna Vinschen2009-07-232-5/+16
| | | | to READ_CONTROL. If that fails, try additionally with FILE_READ_DATA.
* * exceptions.cc (handle_exceptions): Set si_addr according toEric Blake2009-07-232-7/+14
| | | | POSIX for SIGSEGV.
* * mount.cc (fs_info::update): Open filesystem with access set to 0.Corinna Vinschen2009-07-222-4/+11
| | | | Explain why.
* * mount.cc: Revert accidental checkin.Corinna Vinschen2009-07-222-1/+5
|
* * path.cc (symlink_info::check): Handle STATUS_NOT_SUPPORTED fromCorinna Vinschen2009-07-222-1/+8
| | | | NtCreateFile just like STATUS_EAS_NOT_SUPPORTED.
* * mount.cc (do_mount): Replace --no-executable flag with notexecCorinna Vinschen2009-07-223-2/+8
| | | | | mount option in hint for remote filesystems. * path.cc (getmntent): Fix typo (noexec -> notexec).
* * mount.cc (fillout_mntent): Fix typo (noexec -> notexec).Corinna Vinschen2009-07-222-2/+6
|
* * path.cc (symlink_info::check): Fix typo in comment.Corinna Vinschen2009-07-222-2/+6
|
* * fhandler.h (enum del_lock_called_from): New enumeration.Corinna Vinschen2009-07-224-7/+35
| | | | | | | | | | | (fhandler_base::del_my_locks): Declare taking a del_lock_called_from as argument. * fhandler.cc (fhandler_base::close): Call del_my_locks with "on_close". (fhandler_base::fixup_after_fork): Call del_my_locks with "after_fork". (fhandler_base::fixup_after_exec): Call del_my_locks with "after_exec". * flock.cc (fhandler_base::del_my_locks): Take del_lock_called_from as argument. Call node->del_my_locks with NULL handle in after_exec case. Explain why.
* * Makefile.in (path-mount.o): Add a rule to build stripped down versionCorinna Vinschen2009-07-226-26/+175
| | | | | | | | | | | | | | | | | | | | | | | of path.cc for usage in mount. (mount.exe): Add dependency to path-mount.o. * mount.cc (force): Convert to bool value. Accommodate throughout. (from_fstab): New function. (do_mount_from_fstab): New function. (longopts): Add --all option. (opts): Add -a option. (usage): Document -a/--all option. (main): Handle -a option as well as single parameter. * path.cc: Add FSTAB_ONLY conditional to allow building path-mount.o. (mount_table): Remove static storage class. (max_mount_entry): Ditto. (root_here): Unused. Remove. (from_fstab_line): Remove static. * path.h (struct mnt_t): Define here rather than in path.cc. (from_fstab_line): Declare. (mount_table): Declare. (max_mount_entry): Declare. * utils.sgml (mount): Document -a/--all option and mounting of single path from fstab files.
* * dtable.cc (dup2): Correct return value for no-op.Corinna Vinschen2009-07-212-1/+5
|
* * lib/msimg32.def (GetDCBrushColor, GetDCPenColor): Move entry pointsCorinna Vinschen2009-07-213-2/+8
| | | | | from here... * lib/gdo32.dll: ...to here.
* * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Add special caseCorinna Vinschen2009-07-212-6/+49
| | | | | | | for MVFS. Explain why. (fhandler_disk_file::utimens): Drop local variables lastaccess and lastwrite. Copy timestamps right into FILE_BASIC_INFORMATION structure to avoid copying them twice.
* * wincap.h (wincaps::has_always_all_codepages): New element.Corinna Vinschen2009-07-205-6/+71
| | | | | | | | | | | | | | | * wincap.cc: Implement above element throughout. * wchar.h (__sjis_mbtowc): Declare. (__eucjp_mbtowc): Ditto. (__gbk_mbtowc): Ditto. (__kr_mbtowc): Ditto. (__big5_mbtowc): Ditto. * syscalls.cc (internal_setlocale): Convert to char * function. Return parameter by default. Return NULL if request to use a charset can't be satisfied due to missing codepage support in the underlying OS. Fix comment. (setlocale): Store original locale. Restore to original locale if internal_setlocale returns NULL.
* * Makefile.in (all): Fix wrong target names.Corinna Vinschen2009-07-202-6/+14
| | | | | | (cygwin-ug-net/cygwin-ug-net-nochunks.html.gz): Ditto. (cygwin-ug-net/cygwin-ug-net.pdf): Convert to use docbook2pdf. (cygwin-api/cygwin-api.pdf): Ditto.
* * fork.cc (fork): Create local tmp_pathbuf. Explain why.Corinna Vinschen2009-07-202-0/+9
|
* * faq: Throughout, revert references to User's Guide to default URL.Corinna Vinschen2009-07-206-19/+23
|
* * new-features.sgml (ov-new1.7-misc): Add stdc++ new/delete wrappers.Corinna Vinschen2009-07-202-0/+8
|
* * new-features.sgml (ov-new1.7-posix): Add WCONTINUED, WIFCONTINUED.Corinna Vinschen2009-07-202-0/+6
|
* * setup2.sgml (setup-locale-charsetlist): Fix ISO88-59-13 and -15Corinna Vinschen2009-07-202-2/+7
| | | | codepage numbers.
* * exceptions.cc (sig_handle_tty_stop): Set stopsig to SIGCONT when continuing.Christopher Faylor2009-07-185-4/+21
| | | | | | | | (stopped_or_terminated): Honor WCONTINUED. * wait.cc (wait4): Ditto. * include/cygwin/wait.h (WCONTINUED): Define. (__W_CONTINUED): Ditto. (WIFCONTINUED): Ditto.
* 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>Chris Sutcliffe2009-07-188-5/+58
| | | | | | * include/inttypes.h include/math.h include/stdio.h include/stdlib.h include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard to all inline functions.
* 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>Chris Sutcliffe2009-07-183-0/+13
| | | | | * CRT_fp8.c: Add PCC alternative to GCC-specific constructs. * CRT_fp10.c: Ditto.
* 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>Chris Sutcliffe2009-07-183-2/+8
| | | | | | * cpu_features.c: replace gcc-specific construct with portable alternative and match the code a few lines above. * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
* 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>Chris Sutcliffe2009-07-182-12/+54
| | | | * include/_mingw.h: Changes required for PCC compiler.
* 2009-07-18 Jeff Lu <jll544@yahoo.com>Chris Sutcliffe2009-07-182-1/+5
| | | | * mingwex/usleep.c: round up to next ms
* 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2009-07-1810-300/+307
| | | | | | | * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
* * libstdcxx_wrapper.cc (operator delete): Remove stray space inDave Korn2009-07-172-1/+6
| | | | asm name.