summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * hookapi.cc (hook_or_detect_cygwin): Prevent i from being consideredChristopher Faylor2011-02-092-1/+6
| | | | uninitialized by gcc.
* * exception.h: Remove DEBUG_EXCEPTION left over debugging ifdef.Christopher Faylor2011-02-092-6/+9
| | | | * dll_init.cc: Fix typo in comment.
* * dll_init.cc: Fix typo in comment.Christopher Faylor2011-02-081-1/+1
|
* * configure.in: Remove AC_ALLOCA test and test for __builtin_memset.Corinna Vinschen2011-02-076-4063/+3123
| | | | * configure: Regenerate.
* * fhandler_console.cc (fhandler_console::write_normal): RemoveCorinna Vinschen2011-02-072-12/+25
| | | | | | | erroneous premature return after collecting truncated multibyte sequence in trunc_buf. Rather fall through to printing routine. Fix return value to take trunc_buf content into account. Improve comments.
* * autoload.cc (wsock_init): Properly define WSAStartup function pointer toChristopher Faylor2011-02-052-2/+7
| | | | avoid stack damage.
* * libc/bsdlib.cc: Include err.h.Corinna Vinschen2011-02-022-0/+5
|
* * include/err.h: Fix loss of semicolons in previous patch.Corinna Vinschen2011-02-022-2/+6
|
* * include/err.h (err): Add noreturn attribute.Corinna Vinschen2011-02-022-7/+14
| | | | | | (errx): Ditto. (verr): Ditto. (verrx): Ditto.
* * path.cc (conv_path_list): Remove enclosing quotes and trailingCorinna Vinschen2011-02-022-3/+26
| | | | backslashes from Win32 environment path lists.
* * fhandler.cc (fhandler_base::fsync): Ignore ERROR_INVALID_FUNCTIONCorinna Vinschen2011-02-012-1/+13
| | | | error from FlushFileBuffers().
* * syscalls.cc (utmp_data): Fix potential buffer overflow.Corinna Vinschen2011-01-312-1/+5
|
* * fhandler_socket.cc (address_in_use): Improve comment readability.Corinna Vinschen2011-01-312-3/+8
|
* * fhandler_socket.cc (address_in_use): Disable. Add comment.Corinna Vinschen2011-01-305-48/+36
| | | | | | | | | | | (fhandler_socket::bind): Change comment to explain setting the SO_EXCLUSIVEADDRUSE socket option. Remove code which checks for address in use. * net.cc (cygwin_setsockopt): Never set SO_REUSEADDR option. Improve comment to compensate for the deleted comment in fhandler_socket::bind. * wincap.cc: Throughout, drop has_enhanced_socket_security from wincaps. * wincap.h (struct wincaps): Drop has_enhanced_socket_security flags and method.
* winsup:Christopher Faylor2011-01-296-3293/+2533
| | | | | | | | * configure.in: Configure winsup/cygserver regardless of cross_host. * configure: Regenerate. winsup/cygwin: * configure.in: Define LIBSERVER regardless of cross_host. * configure: Regenerate.
* * fhandler_socket.cc (fhandler_socket::wait_for_events): CallCorinna Vinschen2011-01-282-0/+8
| | | | | pthread_testcancel in case of timeout to enable pthread_cancel on waiting thread.
* * include/features.h (__STDC_ISO_10646__): Move to newlib'sCorinna Vinschen2011-01-272-5/+5
| | | | sys/features.h.
* * fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): FixCorinna Vinschen2011-01-262-2/+8
| | | | | computation of st_blocks. (fhandler_base::fstat_helper): Fix formatting.
* * include/features.h (__STDC_ISO_10646__): Define. Add comment.Corinna Vinschen2011-01-242-1/+10
|
* * syscalls.cc (rename): Fix permission problem with symlinks on NFS.Corinna Vinschen2011-01-212-12/+25
| | | | | Rework how NtOpenFile gets called to make it more readable. Change comment.
* * exec.cc: Include pinfo.h.Corinna Vinschen2011-01-205-16/+30
| | | | | | | | | | * winf.h: Move definitions of _P_PATH_TYPE_EXEC and _P_MODE from here... * pinfo.h: ...to here. (_P_PATH_TYPE_EXEC): Redefine to be bigger than _P_SYSTEM. (_P_MODE): Redefine so as not to mask out _P_SYSTEM. * spawn.cc (spawnlp): Add _P_PATH_TYPE_EXEC flag in call to spawnve. (spawnlpe): Ditto. (spawnvp): Ditto.
* * spawn.cc (av::fixup): Reenable #! handling for all exec functions.Corinna Vinschen2011-01-192-19/+19
| | | | | Return ENOEXEC in !p_type_exec case only for unrecognized files. Fix comment formatting.
* * exec.cc (execlp): Add missing _P_PATH_TYPE_EXEC flag in call toCorinna Vinschen2011-01-192-1/+7
| | | | spawnve.
* * exec.cc: Rearrange functions in alphabetical order.Corinna Vinschen2011-01-193-36/+94
| | | | | | | | | | | | | | | | | | (_execve): Drop temporary define and drop export alias. (execl): Call spawnve. (execle): New function. (execlp): New function. (execv): Call spawnve. (execve): Drop converting NULL envp to emtpy envp. (execvp): Call spawnve. (execvpe): Drop converting NULL envp to emtpy envp. Call spawnve. (fexecve): Call spawnve. * spawn.cc (spawnve): Convert NULL envp to emtpy envp. Remove outdated comment. (spawnlp): Call spawnve. (spawnlpe): Ditto. (spawnvp): Ditto. (spawnvpe): Fix formatting.
* * exec.cc (strccpy): Move function from here...Corinna Vinschen2011-01-195-20/+25
| | | | | | * strfuncs.cc (strccpy): ...to here. * string.h (strccpy): Declare. * winsup.h (strccpy): Drop declaration.
* * errno.cc (errmap): Add error codes for invalid binaries.Corinna Vinschen2011-01-195-11/+72
| | | | | | | | | | | | | | | | * exec.cc (execvp): Call spawnve with _P_PATH_TYPE_EXEC flag from here. (execvpe): Ditto. * spawn.cc (spawn_guts): Filter _P_PATH_TYPE_EXEC from mode and store in p_type_exec. Call av::fixup with addtional p_type_exec argument. (spawnve): Check for filtered mode. (spawnvpe): Add _P_PATH_TYPE_EXEC flag when calling spawnve. (av::fixup): Accept additional bool parameter p_type_exec. Only check for script if p_type_exec is true. * winf.h (_P_PATH_TYPE_EXEC): Define. (_P_MODE): Define. (av::fixup): Declare with additional bool parameter.
* * fhandler_proc.cc (format_proc_partitions): Fix compiler warning.Corinna Vinschen2011-01-172-1/+5
|
* * path.cc (path_conv::check): Don't follow reparse point symlinks ifCorinna Vinschen2011-01-173-8/+19
| | | | | | | PC_SYM_NOFOLLOW_REP flag is set. (cygwin_conv_path): Set PC_SYM_NOFOLLOW_REP flag when converting from POSIX to Win32. * path.h (enum pathconv_arg): Define PC_SYM_NOFOLLOW_REP flag.
* * fhandler_proc.cc (proc_tab_cmp): Fix typo in comment.Corinna Vinschen2011-01-172-84/+151
| | | | | | | (fhandler_proc::fill_filebuf): Handle return value of 0 from format function as error. (format_proc_stat): Set errno when returning 0 size. (format_proc_partitions): Rewrite method to fetch partition info.
* Fix typo, fix copyrightCorinna Vinschen2011-01-132-2/+2
|
* * fhandler_disk_file.cc (fhandler_base::fstat_helper): Alwasy setCorinna Vinschen2011-01-132-1/+13
| | | | st_size of directories to 0. Explain why.
* Really check in nowCorinna Vinschen2011-01-131-0/+1
|
* * new-features.sgml (ov-new1.7.8): Add "new API" paragraph.Corinna Vinschen2011-01-122-0/+9
|
* * posix.sgml: Add madvise to BSD list.Corinna Vinschen2011-01-122-0/+5
|
* * cygwin.din (madvise): Export posix_madvise as madvise.Corinna Vinschen2011-01-123-4/+34
| | | | | | | * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR. * include/sys/mman.h: Define madvise constants, keep Linux-specific constants undefined. (madvise): Declare.
* * fhandler.h (struct part_t): New type.Corinna Vinschen2011-01-123-67/+193
| | | | | | | | | | | | | | | (class fhandler_dev_floppy): Convert partitions to part_t pointer. Add lock_partition method. * fhandler_floppy.cc (fhandler_dev_floppy::lock_partition): New method to implement ondemand partition locking. (fhandler_dev_floppy::write_file): Call lock_partition from here if writing failed due to a potential write restriction on a disk partition. (fhandler_dev_floppy::open): Don't lock partitions here. (fhandler_dev_floppy::close): Keep track of partition handle reference count. Close handles and remove partitions pointer ony if count is 0. (fhandler_dev_floppy::dup): Just copy partitions pointer and increment reference count.
* * fhandler.h (MAX_PARTITIONS): New definition.Corinna Vinschen2011-01-115-7/+112
| | | | | | | | | | | | | | | (class fhandler_dev_floppy): Add partitions array member. Add close method. * fhandler_floppy.cc (fhandler_dev_floppy::fhandler_dev_floppy): Zero out partitions array. (fhandler_dev_floppy::open): Fix "entire disk" condition for call to DeviceIoControl (FSCTL_ALLOW_EXTENDED_DASD_IO). When opening disks for writing, call DeviceIoControl (FSCTL_LOCK_VOLUME) on all affected disk partitions starting with Vista. (fhandler_dev_floppy::close): New method. (fhandler_dev_floppy::dup): Duplicate handles in partitions, if any. * wincap.h (wincaps::has_restricted_raw_disk_access): New element. * wincap.cc: Implement above element throughout.
* * termios.cc (cfgetospeed, cfgetispeed): Constify argument per POSIX.Corinna Vinschen2011-01-113-5/+15
| | | | | * include/sys/termios.h (cfgetospeed, cfgetispeed): Declare functions. Move macros after declarations and make conditional on !__cplusplus.
* * cygtls.cc (_cygtls::init_thread): Call _REENT_INIT_PTR. Drop settingCorinna Vinschen2011-01-112-3/+7
| | | | current locale and calling srand48.
* * cygcheck.cc (main): don't imply -d from -s option to cygcheckCorinna Vinschen2011-01-102-3/+7
|
* Correct hexadecimal formatting of double and long double values.Keith Marshall2011-01-072-72/+32
|
* * faq-setup.xml (faq.setup.cli): Correct description of -pubkey optionChristopher Faylor2011-01-052-1/+5
|
* * ChangeLog-2010: Create from ChangeLog.Christopher Faylor2011-01-032-3102/+3106
| | | | * ChangeLog: Start fresh.
* * cygtls.cc: Include stdlib.h.Christopher Faylor2010-12-292-0/+8
| | | | (_cygtls::init_thread): Seed random number generator on a per-thread basis.
* 2010-12-27 David Byron <dbyron0@users.sourceforge.net>Chris Sutcliffe2010-12-272-0/+21
| | | | * include/winioctl.h (STORAGE_BUS_TYPE): Define.
* 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>Chris Sutcliffe2010-12-272-7/+9
| | | | * include/dirent.h (dd_handle): Define as intptr_t.
* 2010-12-27 Seth Jackson <sethj@users.sourceforge.net>Chris Sutcliffe2010-12-272-1/+11
| | | | * include/winbase.h (GetComputerNameEx): Define.
* 2010-09-22 Ryan Lortie <desrt@desrt.ca>Chris Sutcliffe2010-12-272-0/+7
| | | | * include/winbase.h (TzSpecificLocalTimeToSystemTime): Define.
* 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>Chris Sutcliffe2010-12-272-9/+17
| | | | | * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between __xd_a and __xd_z.
* 2010-12-27 Markus Koenig <basilo@users.sourceforge.net>Chris Sutcliffe2010-12-272-120/+132
| | | | | | | | | | | | * include/gdiplus/gdipluspixelformats.h (PixelFormatIndexed, PixelFormatGDI, PixelFormatAlpha, PixelFormatPAlpha, PixelFormatExtended, PixelFormatCanonical, PixelFormatUndefined, PixelFormatDontCare, PixelFormat1bppIndexed, PixelFormat4bppIndexed, PixelFormat8bppIndexed, PixelFormat16bppGrayScale, PixelFormat16bppRGB555, PixelFormat16bppRGB565, PixelFormat16bpp1555, PixelFormat24bppRGB, PixelFormat32bppRGB, PixelFormat32bppARGB, PixelFormat32bppPARGB, PixelFormat48bppRGB, PixelFormat64bppARGB, PixelFormat64bppPARGB, PixelFormatMax): Fix definition.