summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
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-073-1045/+150
| | | | * 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-293-1972/+1503
| | | | | | | | * 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
|
* * 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.
* * 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.
* * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 234.Christopher Faylor2010-12-272-1/+6
|
* cygwin:Christopher Faylor2010-12-264-0/+14
| | | | | | | | | | | | * cygwin.din: Export program_invocation_name and program_invocation_short_name. * dcrt0.cc: Set program_invocation*name to correct values, based on argv[0]. * globals.cc (program_invocation_name): Define. (program_invocation_short_name): Ditto newlib: * libc/include/sys/errno.h (program_invocation_name): Declare. (program_invocation_short_name): Ditto.
* * security.cc (alloc_sd): Really fix erroneous inheritence entryCorinna Vinschen2010-12-162-11/+25
| | | | duplication now. Add more comments for clarity.
* * sec_acl.cc (getacl): Ensure that the default acl contains at leastCorinna Vinschen2010-12-152-6/+38
| | | | DEF_(USER|GROUP|OTHER)_OBJ entries.
* * security.cc (alloc_sd): Fix erroneous inheritence entry duplication.Corinna Vinschen2010-12-152-3/+10
|
* * syscalls.cc (check_dir_not_empty): Never count more than 3 directoryCorinna Vinschen2010-12-122-6/+10
| | | | entries.
* * init.cc (search_for): Put this in shared section or suffer subtle problemsChristopher Faylor2010-12-124-2/+10
| | | | | | with the tls. * pinfo.cc (status_exit): Add debug output to report on unexpected exit. * tls_pbuf.cc (tmp_pathbuf::c_get): Add more details to internal error.
* fix typoChristopher Faylor2010-12-091-1/+1
|
* * autoload.cc (RETRY_COUNT): New define.Corinna Vinschen2010-12-092-14/+39
| | | | | | (std_dll_init): Restructure loop to retry loading a DLL only if specific errors occur. If these errors persist, try to load DLL with name only.
* * include/strings.h: Remove in favor of equivalent newlib file.Corinna Vinschen2010-12-082-37/+4
|