summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* Discontinue CVS tracking of generated 'configure' script.Keith Marshall2012-01-143-3814/+10
|
* Document support of printf %m conversion flag.Yaakov Selkowitz2012-01-131-0/+3
|
* * new-features.sgml (ov-new1.7.10): Document support for the %mYaakov Selkowitz2012-01-132-0/+10
| | | | conversion flag in printf functions.
* * include/cygwin/config.h (_GLIBC_EXTENSION): Define.Yaakov Selkowitz2012-01-132-0/+5
|
* Document tgmath.h.Yaakov Selkowitz2012-01-121-0/+2
|
* * new-features.sgml (ov-new1.7.10): Document tgmath.h.Yaakov Selkowitz2012-01-122-0/+8
|
* * spawn.cc (child_info_spawn::worker): Delete debugging.Christopher Faylor2012-01-112-2/+4
|
* Update copyright on all files checked in so far this year.Christopher Faylor2012-01-1113-38/+54
| | | | | | | | | | | | | | | | | * fhandler.h: Use #pragma once rather than ifdef guards. (fhandler_console::tc_getpgid): Return our pgid if we have never opened a console. * fork.cc: Rearrange includes to accommodate fhandler.h use of pinfo.h. * sigproc.cc: Ditto. * spawn.cc: Ditto. (child_info_spawn::worker): Query myself->pgid rather than calling expensive function. * thread.h: Use #pragma once rather than ifdef guards. * pinfo.h: Use #pragma once rather than ifdef guards. (pinfo::remember): Don't define if sigproc.h has not been included. (pinfo::reattach): Ditto. * sigproc.h: Use #pragma once rather than ifdef guards. Use different test to see if pinfo.h has been included.
* * include/cygwin/process.h: Move here from newlib.Corinna Vinschen2012-01-095-6/+57
| | | | | | | * exec.cc: Change include of process.h to reflect the fact that it's now in the include/cygwin subfolder. * spawn.cc: Ditto. * syscalls.cc: Ditto.
* * miscfuncs.cc (thread_wrapper): Make sure stack is 16 byte alignedCorinna Vinschen2012-01-092-1/+10
| | | | to make gcc-3 compiled pthread applications happy.
* * Makefile.common (MINGW_LDFLAGS): Correctly use -L rather than -B here.Corinna Vinschen2012-01-092-1/+5
|
* * dtable.cc (dtable::stdio_init): Always initialize console when we have one.Christopher Faylor2012-01-085-33/+32
| | | | | | | | | | * fhandler_termios.cc (fhandler_termios::tcsetpgrp): Use a better method to print tty name for debugging. (fhandler_termios::bg_check): Ditto. * pinfo.cc (_pinfo::set_ctty): Remove leftover debugging stuff. Simplify behavior when setting tty's sid and pgid to avoid overwriting previously set values. * spawn.cc (ch_spawn): Cosmetic change.
* Add my recent API additions.Yaakov Selkowitz2012-01-081-1/+4
|
* Ensure Makefile.comm source is included in distribution tarballs.Keith Marshall2012-01-062-2/+8
|
* 2012-01-06 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe2012-01-062-1/+5
| | | | * include/windef.h (WINVER): Back off to 0x0500.
* * new-features.sgml (ov-new1.7.10): Document pthread_sigqueue.Yaakov Selkowitz2012-01-062-1/+5
|
* * cygwin.din (pthread_sigqueue): Export.Yaakov Selkowitz2012-01-066-1/+31
| | | | | | | * posix.sgml (std-gnu): Add pthread_sigqueue. * thread.cc (pthread_sigqueue): New function. * include/thread.h (pthread_sigqueue): New function. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* 2012-01-05 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe2012-01-052-1/+5
| | | | * include/windef.h (WINVER): Bump to 0x0501.
* 2012-01-03 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe2012-01-042-1/+8
| | | | | | | Return value, identified by 'make test'. * include/gdiplus/gdiplustypes.h (Gdiplus::GdiplusAbort::Abort()): Return NO_ERROR in virtual definition.
* 2012-01-03 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe2012-01-043-20/+13
| | | | | | | | | | | | | Remove duplicate definitions, identified by 'make test'. * include/wincrypt.h (CRYPT_NEWKEYSET, CRYPT_DELETEKEYSET, CRYPT_MACHINE_KEYSET, CRYPT_SILENT, CRYPT_EXPORTABLE, CRYPT_USER_PROTECTED, CRYPT_CREATE_SALT, CRYPT_UPDATE_KEY, CRYPT_NO_SALT, CRYPT_PREGEN, CRYPT_RECIPIENT, CRYPT_INITIATOR, CRYPT_ONLINE, CRYPT_SF, CRYPT_CREATE_IV, CRYPT_KEK, CRYPT_DATA_KEY, CRYPT_VOLATILE, CRYPT_SGCKEY): Remove duplicate definitions. * include/winerror.h (CRYPT_E_REVOKED): Removed - already defined in wincrypt (which is where it should be defined according to MSDN).
* Correct misuse of #ifdef, identified by 'make test'.Keith Marshall2012-01-032-2/+9
|
* * path.cc (get_current_dir_name): Avoid memory leak. Don't return PWD contentsChristopher Faylor2012-01-022-10/+14
| | | | if directory doesn't actually exist.
* * new-features.sgml (ov-new1.7.10): Document get_current_dir_name.Yaakov Selkowitz2012-01-012-2/+7
|
* * cygwin.din (get_current_dir_name): Export.Yaakov Selkowitz2012-01-015-1/+31
| | | | | | * path.cc (get_current_dir_name): New function. * posix.sgml (std-gnu): Add get_current_dir_name. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* Bump ChangeLogChristopher Faylor2012-01-012-5318/+5318
|
* Add a couple other items which have been changed since initial call for testingChristopher Faylor2011-12-311-0/+10
|
* Initial checkin of text Corinna sent to cygwin-announce.Christopher Faylor2011-12-311-0/+110
|
* * new-features.sgml (ov-new1.7.10): Document getpt.Yaakov Selkowitz2011-12-302-1/+5
|
* * cygwin.din (getpt): Export.Yaakov Selkowitz2011-12-306-1/+19
| | | | | | | * posix.sgml (std-gnu): Add getpt. * tty.cc (getpt): New function. * include/cygwin/stdlib.h [!__STRICT_ANSI__] (getpt): Declare. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* * thread.cc: Mark pthread_rwlock_timedrdlock andYaakov Selkowitz2011-12-302-2/+8
| | | | | pthread_rwlock_timedwrlock as not yet implemented in the list of cancellation points.
* * fhandler_dsp.cc (fhandler_dev_dsp::fhandler_dev_dsp): Set up device.Christopher Faylor2011-12-253-2/+8
| | | | * syscalls.cc (open): Very minor formatting tweak.
* * path.cc (struct symlink_info): Add bool argument to declaration ofCorinna Vinschen2011-12-242-17/+40
| | | | | | | | | | check_reparse_point. (symlink_info::check_reparse_point): Add bool argument to indicate remote drive. Handle STATUS_PENDING. Don't evaluate junctions on remote drives. Fix comments. (symlink_info::check): Drop check for is_remote_drive and associated comment here. Add fs.is_remote_drive as second parameter to check_reparse_point call.
* * pinfo.cc (pinfo_basic::pinfo_basic): Fix formatting. Set uid and gidCorinna Vinschen2011-12-232-1/+10
| | | | | to default values to accommodate early initialization of shared user info. Add comment.
* * spawn.cc (child_info_spawn::worker): Add CREATE_BREAKAWAY_FROM_JOBCorinna Vinschen2011-12-222-2/+18
| | | | | to c_flags only if current process is member of a job and breakaway is allowed.
* * include/winnt.h (JOB_OBJECT_LIMIT_BREAKAWAY_OK): Define.Corinna Vinschen2011-12-222-2/+16
| | | | | | | | | (JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK): Define. (JOB_OBJECT_BREAKAWAY_OK): Define as JOB_OBJECT_LIMIT_BREAKAWAY_OK and mark as kept for backward compatibility only. (JOB_OBJECT_SILENT_BREAKAWAY): Define as JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK and mark as kept for backward compatibility only.
* Don't leave Windows 2000 behind.Corinna Vinschen2011-12-223-22/+72
| | | | | | | | | * Makefile.in (ps.exe): Revert previous change. * ps.cc: Include psapi.h again. (main): In CW_GETPINFO_FULL case. Evaluate minimal process access mask required per OS and use that in OpenProcess call. Use GetModuleFileNameExW on Windows 2000 or if fetching the drive mapping failed. Handle empty process name.
* * include/winnt.h: Add missing PROCESS_QUERY_LIMITED_INFORMATION.Corinna Vinschen2011-12-222-0/+5
|
* * Makefile.in (ps.exe): Drop -lpsapi from ALL_LDFLAGS.Corinna Vinschen2011-12-223-63/+43
| | | | | | | | * ps.cc: Don't include psapi.h. (dosdevs): Drop. (unicode_buf): Define. (main): Simplify path evaluation in CW_GETPINFO_FULL case. Fetch drive map from Cygwin DLL. Use it to convert NT device paths to Win32 paths.
* * external.cc (cygwin_internal): Implement CW_ALLOC_DRIVE_MAP,Corinna Vinschen2011-12-227-165/+217
| | | | | | | | | | | | | | | CW_MAP_DRIVE_MAP, CW_FREE_DRIVE_MAP. * fhandler_process.cc: Include mount.h. (get_volume_path_names_for_volume_name): Move to mount.cc. (struct dos_drive_mappings): Ditto. * mount.cc (get_volume_path_names_for_volume_name): Move here. (dos_drive_mappings::dos_drive_mappings): Ditto. (dos_drive_mappings::fixup_if_match): Ditto. (dos_drive_mappings::~dos_drive_mappings): Ditto. * mount.h (class dos_drive_mappings): Declare her. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_ALLOC_DRIVE_MAP, CW_MAP_DRIVE_MAP, CW_FREE_DRIVE_MAP. * include/cygwin/version.h: Bump API minor number.
* * fhandler_process.cc: Drop unneeded includes.Corinna Vinschen2011-12-222-2/+4
|
* Throughout use wincap.allocation_granularity instead of getpagesize.Corinna Vinschen2011-12-2214-308/+331
| | | | | | | | | | | | | | | | | | | | | | | | Throughout use wincap.page_size instead of getsystempagesize. Throughout use "status" as variable name to hold NTSTATUS values. * fhandler_mem.cc: Check for NT_SUCCESS rather than for STATUS_SUCCESS. Fix debug_printf output. Rectify long statements. Fix comment formatting. * fhandler_proc.cc: Ditto. (format_proc_swaps): Drop useless test for ERROR_PROC_NOT_FOUND. * fhandler_process.cc: Ditto as in fhandler_mem.cc. (get_process_state): Rearrange allocation loop. Use malloc/realloc. (get_mem_values): Fix potential NULL pointer usage. Drop unused variable. * pinfo.cc (winpids::enum_processes): Handle low memory gracefully. * sec_auth.cc (get_priv_list): Drop local variable ret. * shared.cc (memory_init): Drop outdated call to getpagesize. * syscalls.cc (getsystempagesize): Remove. * sysconf.cc: Check for NT_SUCCESS rather than for STATUS_SUCCESS. (sysinfo): Constify sizeof_stodi. Drop useless test for ERROR_PROC_NOT_FOUND. * thread.cc (pthread_getattr_np): Cast pointers to uintptr_t rather than to int for pointer arithmetic. * winsup.h (getsystempagesize): Drop declaration.
* * fhandler.cc (fhandler_base_overlapped::wait_overlapped): Use correct value inChristopher Faylor2011-12-212-1/+6
| | | | switch statement.
* * dcrt0.cc (_dll_crt0): Rephrase comments. Set $ebp to NULL, as inCorinna Vinschen2011-12-213-9/+20
| | | | | | the pthread stack setup. * wow64.cc (wow64_revert_to_original_stack): Rephrase some comments. Return _tlsbase-16 rather than _main_tls-4 so as not to waste stack.
* * syscalls.cc (rename): Fix typo in comment. Fix condition to handleCorinna Vinschen2011-12-192-3/+14
| | | | | | the case oldpath is no .lnk symlink and newpath points to an existing .lnk symlink or .exe file and no explicit .lnk suffix has been given in oldpath. Add a comment to explain.
* * dcrt0.cc (dll_crt0_0): Check for wincap.wow64_has_secondary_stackCorinna Vinschen2011-12-196-17/+53
| | | | | | | | | | | | | | | rather than for wincap.is_wow64. Accommodate name change from wow64_has_64bit_parent to wow64_needs_stack_adjustment. Align comment. (_dll_crt0): Ditto. * wincap.h (wincaps::wow64_has_secondary_stack): New element. * wincap.cc: Implement above element throughout. (wincapc::init): Set wow64_has_secondary_stack to false on non-64 bit systems. * wow64.cc (wow64_needs_stack_adjustment): Rename (hopefully the last time) from wow64_has_64bit_parent. (wow64_eval_expected_main_stack): Fix comment to reflect real life. (wow64_test_for_64bit_parent): Fix comment. * wow64.h (wow64_needs_stack_adjustment): Accommodate new name.
* clarify entryChristopher Faylor2011-12-191-1/+1
|
* * fhandler.cc (fhandler_base::close): Move setting isclosed() from here toChristopher Faylor2011-12-183-22/+49
| | | | | | | | | | | | closed(). (fhandler_base_overlapped::close): Correct comment. (fhandler_base_overlapped::destroy_overlapped): Signal overlapped event before closing it to potentially wake up a waiting thread. (fhandler_base_overlapped::wait_overlapped): Expand setting of err when closed to encompass non-signal event. Test for a cancel event before making nonblocking decisions. * syscalls.cc (close): Set closed flag here so that any concurrently executing functions will be notified ASAP.
* Clean up whitespace.Christopher Faylor2011-12-1757-895/+894
|
* * dcrt0.cc (_dll_crt0): Fix formatting.Corinna Vinschen2011-12-172-6/+7
|
* * wow64.cc (wow64_revert_to_original_stack): Fix comment.Corinna Vinschen2011-12-173-4/+9
| | | | * wow64.h (wow64_respawn_process): Declare noreturn.