aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-08-27Don't expose implementation detail for opaque DIRENT structures.Keith Marshall3-53/+69
2011-08-27 * fhandler.cc (fhandler_base::open): Fix typo in comment.Corinna Vinschen5-98/+165
(fhandler_base::close): Move call to del_my_locks from here... * fhandler_disk_file.cc (fhandler_disk_file::open): ...to here. * flock.cc (struct lockfattr_t): New type. (lockf_t::close_lock_obj): New method, use throughout. (lockf_t::create_lock_obj_attr): New method. (lockf_t::create_lock_obj): Use create_lock_obj_attr method. Handle STATUS_OBJECT_NAME_COLLISION in F_FLOCK case gracefully. Add lengthy comments to explain why and how. (lockf_t::open_lock_obj): Use create_lock_obj_attr method. (lockf_t::del_lock_obj): Call NtSetEvent rather than SetEvent for symmetry. (fhandler_disk_file::lock): Define n only where it's used. Call need_fork_fixup only if call was successful. Handle EINTR and ECANCELED return values from lf_setlock. (lf_setlock): Drop WAIT_UNLOCKED and WAIT_PROC_EXITED. Don't wait for event object handle count to become <= 1 in F_LOCK case. Simplify WFMO return value handling. Don't handle signal and cancel events here; just return with appropriate error code instead. (lf_getblock): Ignore locks for which the handle can't be opened. Use IsEventSignalled. * ntdll.h (STATUS_INVALID_INFO_CLASS): Undef if defined elsewhere to make sure the definition is casted to NTSTATUS. (STATUS_INVALID_HANDLE): Define and ditto. (STATUS_OBJECT_NAME_COLLISION): Define. (NtSetEvent): Declare.
2011-08-26 * libc/time/mktm_r.c (_mktm_r): Fix previous fix.Corinna Vinschen2-2/+5
2011-08-25* cygthread.cc (cygthread::simplestub): Notify that the thread has detachedChristopher Faylor2-0/+9
also in freerange thread case.
2011-08-25 * fhandler.cc (fhandler_base::open): Never open files withCorinna Vinschen2-12/+37
FILE_OVERWITE/FILE_OVERWRITE_IF. Set file size to 0 explicitely if regular, existing file has been opened for writing with O_TRUNC flag set. Explain why.
2011-08-24 * thread.cc (pthread::pthread): Drop setting parent_tls. CallCorinna Vinschen3-3/+12
sigprocmask to copy parent thread signal mask into new parent_sigmask member. (pthread::thread_init_wrapper): Copy _my_tls.sigmask from new parent_sigmask member. * thread.h (class pthread): Drop parent_tls. Add parent_sigmask.
2011-08-24* thread.cc (pthread::exit): Create dummy tls structure to hold _main_tlsChristopher Faylor2-1/+15
contents if we've asked _main_tls to exit.
2011-08-24 * libc/time/mktm_r.c (_mktm_r): Fix computing tm_year.Corinna Vinschen2-1/+5
2011-08-232011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2-2/+6
* include/_mingw.h: Increment version to 3.20.
2011-08-232011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe3-41/+16
* tlsmthread.c: Update to reflect changes in tlssup.c. * tlssup.c: code clean-up.
2011-08-23 * poll.cc (poll): Don't return prematurely if invalid fds have beenCorinna Vinschen2-7/+24
encountered. Enforce timeout set to 0 in case of invalid fds. Take number of invalid fds into account when returning.
2011-08-23 * fhandler_socket.cc (fhandler_socket::send_internal): Fix settingCorinna Vinschen2-2/+9
nosignal flag. Convert ECONNABORTED on connection-oriented socket to EPIPE, too.
2011-08-232011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius3-2/+7
* libc/stdlib/putenv_r.c: Use "strchr" instead of obsolete "index". * libc/stdlib/setenv_r.c: Use "memcpy" instead of obsolete "bcopy".
2011-08-232011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius9-12/+21
* libc/misc/ffs.c, libc/string/bcmp.c, libc/string/bcopy.c, libc/string/bzero.c, libc/string/index.c, libc/string/rindex.c, libc/string/strcasecmp.c, libc/string/strncasecmp.c: Let synopsis reference "#include <strings.h>".
2011-08-232011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius4-0/+14
* libc/posix/regexec.c: Define "nope" only #ifndef NDEBUG. * libc/stdio/vfscanf.c: Define "state" only #ifdef _MB_CAPABLE. * libc/string/wcwidth.c: Include <wctypes.h> for "iswprint" and "iswcntrl".
2011-08-232011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2-0/+11
* libc/sys/rtems/include/limits.h: Compute SSIZE_MAX based on __SIZE_MAX__, __SIZEOF_SIZE_T__ and __CHAR_BIT__.
2011-08-22 * picflag.m4: New file.Rainer Orth2-0/+99
2011-08-222011-08-22 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius7-4/+19
* libc/string/index.c: Include <strings.h> for "index". * libc/string/rindex.c: Include <strings.h> for "rindex". * libc/string/strcasecmp.c: Include <strings.h> for "strcasecmp". Don't include <string.h>. * libc/string/strncasecmp.c: Include <strings.h> for "strncasecmp". Don't include <string.h>. * libc/string/bzero.c: Include <strings.h> for "bzero". Don't include <string.h> * libc/misc/ffs.c: Include <strings.h> for "ffs". Don't include <_ansi.h>.
2011-08-21* Makefile.in: Check for header file existence when building dumper.exe too.Christopher Faylor2-3/+10
2011-08-21* dtable.cc (conv_start_chars): Remove unneeded section attribute.Christopher Faylor2-2/+5
2011-08-21* include/paths.h (_PATH_MAILDIR): Define.Yaakov Selkowitz2-0/+7
(_PATH_SHELLS): Define.
2011-08-20 * fhandler_process.cc (format_process_maps): Define page protectionCorinna Vinschen2-6/+15
shortcuts RO, X, and WC. Use in creating access flag string. Don't set type flag to 's' for copy-on-write pages, as on Linux.
2011-08-202011-08-19 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2-95/+72
* libc/sys/rtems/crt0.c: Rework RTEMS_STUB macro. Include <unistd.h>. Remove C++-style comments. Remove hppa, a29k. Add clock_gettime, gettimeofday, sched_yield.
2011-08-202011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2-2/+6
* include/_mingw.h: Increment version to 3.19.
2011-08-202011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2-1/+8
* include/float.h: Modify guard to accomodate CLang. Thanks to Ruben Van Boxem for the report.
2011-08-202011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2-34/+4
* tlssup.c: Remove mingwm10.dll fallback.
2011-08-202011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2-1/+7
* include/sys/types.h (ssize_t): Defined as int as opposed to long. Thanks to bvassche for the report.
2011-08-19* new-features.sgml (ov-new1.7.10): Document /proc/devicesYaakov Selkowitz2-0/+10
and /proc/misc.
2011-08-19* devices.h (fh_devices): Define DEV_MISC_MAJOR, DEV_MEM_MAJOR,Yaakov Selkowitz3-12/+90
DEV_SOUND_MAJOR. Use throughout. * fhandler_proc.cc (proc_tab): Add /proc/devices and /proc/misc virtual files. (format_proc_devices): New function. (format_proc_misc): New function.
2011-08-19* dtable.cc: Mark some const variables as static.Christopher Faylor4-18/+65
* environ.cc (conv_start_chars): Move to shared cygwin region and initialize at compile time. (match_first_char): New generic function for querying conv_start_chars. (posify_maybe): Rename from posify. (environ_init): Remove conv_envvars initialization. Don't check conv_start_chars, just allow posify_maybe to make the decision. * fhandler_console.cc (__vt100_conv): Fix formatting. Mark as const.
2011-08-192011-08-19 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius7-0/+21
* libc/stdio/vasiprintf.c: Include "local.h" for "_svfiprintf_r". * libc/stdio/vasprintf.c Include "local.h" for "_svfprintf_r". * libc/stdio/vsiprintf.c: Include "local.h" for "_svfiprintf_r". * libc/stdio/vsniprintf.c: Include "local.h" for "_svfiprintf_r". * libc/stdio/vsnprintf.c: Include "local.h" for "_svfprintf_r" * libc/stdio/vsprintf.c: Include "local.h" for "_svfprintf_r"
2011-08-192011-08-19 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius5-0/+11
* libc/string/bcmp.c: Include <strings.h> for "bcmp". * libc/string/bcopy.c: Include <strings.h> for "bcopy". * libc/string/strcasestr.c: Include <strings.h> for "strncasecmp". * libc/time/strptime.c: Include <strings.h> for "strncasecmp".
2011-08-19Include the <root>/cpu/ dir in GDB releasesJoel Brobecker2-1/+5
This directory contains some files that are used to generate some of the files included in the GDB release, and thus must be part of the GDB release also. ChangeLog: * src-release (GDB_SUPPORT_DIRS): Add 'cpu'.
2011-08-19 * iq2000/sim.ld (.gcc_except_table): Include .gcc_except_table.fooNick Clifton2-1/+6
sections as well.
2011-08-19 * libc/include/process.h: Remove exec family function declarations.Corinna Vinschen3-10/+12
Add comment. * libc/include/sys/unistd.h (execlpe): Declare for Cygwin.
2011-08-19 * libc/time/mktime.c (validate_structure): Account for tm_mon possiblyCorinna Vinschen2-6/+13
being given as negative. (mktime): Set tm_isdst=0 when !daylight.
2011-08-19 * fhandler_console.cc (fhandler_console::read): Recognize backspace keyCorinna Vinschen2-1/+7
using the device independent key code, rather than the device dependent scan code.
2011-08-19 * include/winuser.h: Ad missing MAPVK_xxx definitions.Corinna Vinschen2-0/+10
2011-08-19* sysv_shm.cc (ACCESSPERMS): Remove to fix redefined warning, asYaakov Selkowitz2-1/+5
this is now defined in <sys/stat.h>.
2011-08-18* dcrt0.cc (dll_crt0_0): Remove unneeded __stdcall decoration.Christopher Faylor3-2/+7
* init.cc: Reflect change to dll_crt0_0 in declaration.
2011-08-18 * dtable.cc (dtable::get_debugger_info): Add missing braces.Corinna Vinschen2-7/+14
(dtable::stdio_init): Fix incorrect negation of not_open(2) condition.
2011-08-162011-08-16 Pierre Humblet <Pierre.Humblet@ieee.org>Pierre Humblet2-50/+22
* net.cc (gethostby_helper): Remove DEBUGGING code from and streamline the second pass.
2011-08-16 * dlfcn.cc (dlopen): Reimplement RTLD_NODELETE for Windows 2000 usingCorinna Vinschen4-9/+67
internal datastructures. Explain the code. * ntdll.h (struct _LDR_DATA_TABLE_ENTRY): Define. (struct _PEB_LDR_DATA): Define. (struct _PEB): Change PVOID LoaderData to PPEB_LDR_DATA Ldr. * fhandler_process.cc (format_process_maps): Call NtQueryVirtualMemory with valid return length pointer. Explain why.
2011-08-16 * new-features.sgml (ov-new1.7.10): Document new RTLD flags.Corinna Vinschen2-0/+8
2011-08-16 * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.Corinna Vinschen2-1/+6
2011-08-16 * autoload.cc (GetModuleHandleExW): Define.Corinna Vinschen4-16/+50
* dlfcn.cc: Throughout mark exported symbols as extern "C". (dlopen): Unignore flags argument. Define ret to NULL. Fix typo in comment. Support Glibc flags RTLD_NOLOAD and RTLD_NODELETE. * include/dlfcn.h: Clean up comments. (RTLD_NODELETE): Define. (RTLD_NOLOAD): Define. (RTLD_DEEPBIND): Define.
2011-08-15 * pipe.cc (pipe): Just call _pipe with O_BINARY mode. Move code toCorinna Vinschen2-19/+11
generate normalized pathnames from here... (_pipe): ...to here.
2011-08-14 Merge from gcc:Yao Qi3-2/+10
2011-08-14 Yao Qi <yao@codesourcery.com> * configure.ac (tic6x-*-*): Remove gdb from noconfigdirs. * configure: Regenerate.
2011-08-13 * miscfuncs.cc (CreatePipeOverlapped): New function.Corinna Vinschen5-29/+103
(ReadPipeOverlapped): Ditto. (WritePipeOverlapped): Ditto. * miscfuncs.h: Declare new functions. * pinfo.cc (commune_process): Call WritePipeOverlapped instead of WriteFile. Set timeout to 1 sec. (_pinfo::commune_request): Call ReadPipeOverlapped instead of ReadFile. Set timeout to 0.5 secs. * sigproc.cc (sig_send): Create pipe using CreatePipeOverlapped.
2011-08-12Add R_X86_64_RELATIVE64.H.J. Lu2-0/+6
2011-08-12 H.J. Lu <hongjiu.lu@intel.com> PR ld/13082 * x86-64.h (R_X86_64_RELATIVE64): New.