summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* *** empty log message ***Corinna Vinschen2013-12-081-0/+1
|
* * new-features.xml (ov-new1.7.26): Add new section.Corinna Vinschen2013-12-072-0/+19
|
* * path.cc (symlink_native): Workaround Windows 8.1 bug: Drop long pathCorinna Vinschen2013-12-073-4/+35
| | | | prefix from symlink target path. Add comment to explain why.
* * syscalls.cc (dup): Use cygheap_fdnew properly.Christopher Faylor2013-12-062-1/+5
|
* * cygheap.h (cygheap_fdnew): Avoid setting errno directly since it will haveChristopher Faylor2013-12-055-10/+33
| | | | | | | | | | | | been set by a previous function. * dtable.h (dtable::extend): Accept second size_t argument. * dtable.cc (dtable::extend): Accept second "min" argument which allows checking for OPEN_MAX_MAX boundary conditions. (dtable_init): Accommodate second argument to dtable::extend. (dtable::find_unused_handle): Ditto. * syscalls.cc (setdtablesize): Ditto. (dup): Return any error passed by cygheap_fdnew() directly. (getdtablesize): Just return dtable size directly.
* 2013-12-04 Steve Ellcey <sellcey@mips.com>Steve Ellcey2013-12-042-0/+5
| | | | * mips/cfe_api.h: Include stdint.h.
* * dtable.cc (dtable::find_unused_handle): When extending, always make sure thatChristopher Faylor2013-12-042-1/+8
| | | | there is a NOFILE_INCR chunk following the free fd.
* merge from gccDJ Delorie2013-12-042-0/+1728
|
* * configure.ac: Back out stupid change.Christopher Faylor2013-12-033-10/+11
| | | | * configure: Regenerate.
* * select.cc (select): Add workaround for, as yet undebugged, pathological case.Christopher Faylor2013-12-032-3/+11
|
* * configure.ac: Don't require 64-bit compiler for 32-bit builds.Christopher Faylor2013-12-033-100/+114
| | | | * configure: Regenerate.
* * libc/sys/rtems/sys/cpuset.h: Use __inline instead of inline.Corinna Vinschen2013-12-032-31/+34
|
* * libc/include/machine/_default_types.h: Move extern "C" afterCorinna Vinschen2013-12-036-156/+269
| | | | | | | | | | | | | | | | | | | | | | | header includes. Include <sys/features.h> for __GNUC_PREREQ__(). (__u?int.*_t): Define via GCC provided __U?INT.*_TYPE__ if available. (__intptr_t): Define. (__uintptr_t): Likewise. * libc/include/stdint.h: Include <machine/_default_types.h> instead of <_ansi.h>. (u?int.*_t): Define via __u?int.*_t provided by <machine/_default_types.h>. (u?int_fast.*_t): Define via GCC provided __U?INT_FAST.*_TYPE__ if available. (U?INT.*(MIN|MAX)): Define via GCC provided __U?INT.*(MIN|MAX)__ if available. (U?INT.*_C): Define via GCC provided __U?INT.*_C if available. * libc/include/sys/cdefs.h: Use <machine/_default_types.h> instead of <stdint.h>. * libc/sys/rtems/sys/cpuset.h: Likewise. * libc/sys/rtems/machine/_types.h: Include <stdint.h> for FreeBSD compatibility.
* * dtable.cc (dtable::find_unused_handle): Break out of the right loop.Christopher Faylor2013-12-012-2/+6
|
* * dtable.cc (dtable::find_unused_handle): Fix off-by-one error. Always exitChristopher Faylor2013-12-013-18/+29
| | | | | | | | | through the bottom. (cygwin_attach_handle_to_fd): Make sure that fd tab is locked for the duration of this function. * dtable.h (dtable::lock): Make public. (dtable::unlock): Ditto. (dtable): Remove friends.
* Fix ChangeLog entryCorinna Vinschen2013-12-011-3/+4
|
* * dtable.cc (dtable::extend): Change local variable new_size to size_tCorinna Vinschen2013-12-013-3/+10
| | | | | | as well. * thread.cc: Fix comment.
* .Christopher Faylor2013-12-011-2/+5
|
* * dtable.h (dtable::first_fd_for_open): Change declaration to size_t.Christopher Faylor2013-12-013-10/+18
| | | | | | | | | (dtable::extend): Change parameter to size_t. (dtable::find_unused_handle): Ditto. * dtable.cc: Remove now-unused header. (dtable::extend): Remove pointless test. Change parameter to size_t. (dtable::find_unused_handle): Rework to avoid MAX calculation in extend() call. Change parameter to size_t.
* * dtable.cc (build_fh_pc): When creating an archetype, use native name ratherChristopher Faylor2013-12-013-1/+12
| | | | than unix name if name doesn't exist.
* 2013-11-29 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-11-292-3/+57
| | | | | | | | | | | | | * libc/include/pthread.h (pthread_cleanup_push): Delete prototype and add macro of the same name. (pthread_cleanup_pop): Likewise. (_pthread_cleanup_context): Define. (_pthread_cleanup_push): Likewise. (_pthread_cleanup_pop): Likewise. (pthread_cleanup_push_defer_np): Define if _GNU_SOURCE is defined. (pthread_cleanup_pop_restore_np): Likewise. (_pthread_cleanup_push_defer): Likewise. (_pthread_cleanup_pop_restore): Likewise.
* 2013-11-29 Jennifer Averett <jennifer.averett@oarcorp.com>Joel Sherrill2013-11-294-3/+54
| | | | | | | | | | | | | * libc/include/pthread.h (pthread_attr_setaffinity_np): Add pthread SMP affinity attributes to methods to RTEMS for compatibility with GNU/Linux. (pthread_attr_getaffinity_np): Likewise. (pthread_setaffinity_np): Likewise. (pthread_getaffinity_np): Likewise. (pthread_getattr_np): Add for GNU/Linux compatibility. * libc/include/sys/types.h: Add cpuset to pthread_attr_t for RTEMS. * libc/include/sys/cdefs.h (_GNU_SOURCE): Defining _GNU_SOURCE turns on all _XXX_VISBLE feature flags.
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 27.Christopher Faylor2013-11-292-1/+5
|
* * include/cygwin/stdlib.h(initstate, random, setstate, srandom) :Jon TURNEY2013-11-292-0/+9
| | | | Prototype if not __STRICT_ANSI__ or _XOPEN_SOURCE is defined appropriately.
* * new-features.xml (ov-new1.7.26): Fix section ID and title. AddCorinna Vinschen2013-11-292-1/+11
| | | | posix_spawn item.
* * include/glob.h: Fix invalid use of 'restrict' error.Corinna Vinschen2013-11-282-1/+5
|
* 2013-11-27 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-11-276-68/+304
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/sys/rtems/cpusetalloc.c: New file. * libc/sys/rtems/cpusetfree.c: Likewise. * libc/sys/rtems/Makefile.am (lib_a_SOURCES): Add new files. * libc/sys/rtems/Makefile.in: Regenerate. * libc/sys/rtems/sys/cpuset.h: Delete #if 0 block. Include <stddef.h> for size_t. (_NCPUBITS): Avoid NBBY and assume 8 bits per char. (__cpuset_mask): Use int instead of size_t parameter for Linux compatibility. (__cpuset_index): Likewise. (__cpuset_alloc): Declare. (__cpuset_free): Likewise. (CPU_ALLOC_SIZE): Likewise. (CPU_ALLOC): Define. (CPU_FREE): Likewise. (CPU_ZERO_S): Likewise. (CPU_FILL_S): Likewise. (CPU_SET_S): Likewise. (CPU_CLR_S): Likewise. (CPU_ISSET_S): Likewise. (CPU_COUNT_S): Likewise. (CPU_AND_S): Likewise. (CPU_OR_S): Likewise. (CPU_XOR_S): Likewise. (CPU_NAND_S): Likewise. (CPU_EQUAL_S): Likewise. (CPU_ZERO): Use CPU_ZERO_S(). (CPU_FILL): Use CPU_FILL_S(). (CPU_SET): Use CPU_SET_S(). (CPU_CLR): Use CPU_CLR_S(). (CPU_ISSET): Use CPU_ISSET_S(). (CPU_COUNT): Use CPU_COUNT_S(). (CPU_AND): Use CPU_AND_S(). (CPU_OR): Use CPU_OR_S(). (CPU_XOR): Use CPU_XOR_S(). (CPU_NAND): Use CPU_NAND_S(). (CPU_EQUAL): Use CPU_EQUAL_S(). (CPU_CMP): Delete superfluous const qualifier. (CPU_EMPTY): Likewise.
* * syscalls.cc (try_to_bin): Enhance debug output in case reopen fails.Corinna Vinschen2013-11-272-1/+6
|
* * syscalls.cc (try_to_bin): Drop fh_dup, reuse tmp_fh instead.Corinna Vinschen2013-11-272-3/+6
|
* * syscalls.cc (try_to_bin): Take additional parameter to get file openCorinna Vinschen2013-11-273-5/+43
| | | | | | | flags. If the file to move to the bin has been opened casesensitive, reopen it caseinsensitive. Explain why. Revert the default name of the Vista-and-later recycler to mixed case for readability. (unlink_nt): Call try_to_bin with file open flags as evaluated.
* * libc/machine/mips/setjmp.S: Fix definition of macro FPR_LAYOUTCorinna Vinschen2013-11-272-0/+6
| | | | for ABI == N32.
* 2013-11-26 Matheus Almeida <Matheus.Almeida@imgtec.com>Jeff Johnston2013-11-263-12/+44
| | | | | | | * libc/include/machine/setjmp.h: Add support for __mips_fpr being 64 and treat it the same as if __mips64 is set. * libc/machine/mips/setjmp.S: Ditto, plus add checks for _MIPS_SIM being _ABIN32 and _ABI64.
* * nlsfuncs.cc (wcscoll): Add "__restrict" to definition.Corinna Vinschen2013-11-262-2/+7
| | | | (wcsxfrm): Ditto.
* Correct for missing entries for wchar.h changes and white space changesJoel Sherrill2013-11-261-0/+11
|
* 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com>Joel Sherrill2013-11-2639-218/+316
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *libc/include/wchar.h: Add restrict keyword. *libc/stdio/fgetws.c (fgetws): ditto. *libc/stdio/fputws.c (fputws): ditto. *libc/stdio/fwprintf.c (fwprintf): ditto. *libc/stdio/fwscanf.c (fwscanf): ditto. *libc/stdio/swprintf.c (swprintf): ditto. *libc/stdio/swscanf.c (swscanf): ditto. *libc/stdio/vfwprintf.c (vfwprintf): ditto. *libc/stdio/vfwscanf.c (vfwscanf): ditto. *libc/stdio/vswprintf.c (vswprintf): ditto. *libc/stdio/vswscanf.c (vswscanf): ditto. *libc/stdio/vwprintf.c (vwprintf): ditto. *libc/stdio/vwscanf.c (vwscanf): ditto. *libc/stdio/wprintf.c (wprintf): ditto. *libc/stdio/wscanf.c (wscanf): ditto. *libc/stdlib/mbrlen.c (mbrlen): ditto. *libc/stdlib/mbrtowc.c (mbrtowc): ditto. *libc/stdlib/mbsnrtowcs.c (mbsnrtowcs): ditto. *libc/stdlib/mbsrtowcs.c (mbsrtowcs): ditto. *libc/stdlib/wcrtomb.c (wcrtomb): ditto. *libc/stdlib/wcsnrtombs.c (wcsnrtombs): ditto. *libc/stdlib/wcsrtombs.c (wcsrtombs): ditto. *libc/stdlib/wcstod.c (wcstod): ditto. *libc/stdlib/wcstol.c (wcstol): ditto. *libc/stdlib/wcstold.c (wcstold): ditto. *libc/stdlib/wcstoll.c (wcstoll): ditto. *libc/stdlib/wcstoul.c (wcstoul): ditto. *libc/stdlib/wcstoull.c (cstoull): ditto. *libc/string/wcpcpy.c (wcpcpy): ditto. *libc/string/wcpncpy.c (wcpncpy): ditto. *libc/string/wcscat.c (wcscat): ditto. *libc/string/wcscpy.c (wcscpy): ditto. *libc/string/wcsncat.c (wcsncat): ditto. *libc/string/wcsncpy.c (wcsncpy): ditto. *libc/string/wcsstr.c (wcsstr): ditto. *libc/string/wcstok.c (wcstok): ditto. *libc/string/wcsxfrm.c (wcsxfrm): ditto. *libc/string/wmemcpy.c (wmemcpy): ditto.
* * common.din: Export posix_spawn[...] functions.Corinna Vinschen2013-11-266-2/+56
| | | | | | | * exec.cc (execve): Add EXPORT_ALIAS _execve. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * posix.sgml (std-susv4): Add posix_spawn[...] here. (std-notimpl): Drop here.
* * nlsfuncs.cc (strcoll): Add "__restrict" to definition.Corinna Vinschen2013-11-262-2/+7
| | | | (strxfrm): Ditto.
* 2013-11-25 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2013-11-262-5/+5
| | | | | * libc/iconv/lib/iconv.c, libc/time/strftime.c: Change "restrict<" to "restrict <" to fix formatting.
* * libc/posix/posix_spawn.c: Drop using namespace.h.Corinna Vinschen2013-11-262-2/+4
|
* * libc/posix/posix_spawn.c: Eliminate OS function calls not presentCorinna Vinschen2013-11-262-9/+19
| | | | | | | | | in newlib or Cygwin. (process_spawnattr): Use sigprocmask rather than _sigprocmask. Use sigaction rather than _sigaction. (process_file_actions_entry): Use dup2 rather than _dup2. (do_posix_spawn): Use execvpe rather than _execvpe. Use waitpid rather than _waitpid.
* 2013-11-25 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2013-11-253-5/+10
| | | | | * libc/iconv/lib/iconv.c, libc/time/strftime.c: Change "restrict<" to "restrict <" to fix formatting.
* * libc/include/spawn.h (posix_spawn_file_actions_destroy): Fix typoCorinna Vinschen2013-11-253-2/+8
| | | | | in function name. * libc/posix/posix_spawn.c (posix_spawn_file_actions_destroy): Ditto.
* 2013-11-25 Sahil Patnayakuni <sahil.patnayakuni@gmail.com>Joel Sherrill2013-11-2510-30/+53
| | | | | | | | | | | | * libc/include/time.h (time): Add restrict keyword. * libc/include/wchar.h (wcsftime): Add restrict keyword. * libc/time/asctime_r.c (asctime_r): Same. * libc/time/gmtime_r.c (gmtime_r): Same. * libc/time/lcltime_r.c (lcltime_r): Same. * libc/time/strftime.c (strftime): Same. * libc/time/strptime.c (strptime): Same. * libc/sys/linux/linuxthreads/timer_create.c (timer_create): Same. * libc/sys/linux/linuxthreads/timer_settime.c (timer_settime): Same.
* Throughout, keep function definitions and declarations in sync withCorinna Vinschen2013-11-2515-30/+47
| | | | newlib in terms of C99 "restrict" keyword.
* * dtable.cc: Include sys/param.h for MAX definition.Corinna Vinschen2013-11-242-0/+5
|
* Throughout, drop unnecessary explicit includes of windows header filesCorinna Vinschen2013-11-2421-49/+23
| | | | | | | | | | | | included by default. * winlean.h: Add long comment to explain why we have to define certain symbols. (_NORMALIZE_): Define. (_WINNLS_): Drop definition and subsequent undef. (_WINNETWK_): Ditto. (_WINSVC_): Ditto. 2013-11-23 Eric Blake <eblake@redhat.com>
* *** empty log message ***Corinna Vinschen2013-11-241-0/+2
|
* 2013-11-23 Bryan Dunsmore <dunsmoreb@gmail.com>Joel Sherrill2013-11-233-2/+7
| | | | | * libc/include/wordexp.h (wordexp): Add restrict keyword. * libc/posix/wordexp.c (wordexp): Ditto.
* dup2: fix off-by-one crashEric Blake2013-11-233-2/+15
| | | | | | * dtable.cc (dup3): Fix off-by-one. (find_unused_handle): Reduce time spent expanding during dup. * syscalls.cc (setdtablesize): Report error on invalid value.
* * new-features.xml (ov-new1.7.26): Add new section.Corinna Vinschen2013-11-232-0/+39
|