Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-12-11bump DLL version to 3.4.3Corinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-12-11bump DLL version to 3.4.2Corinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-12-04bump DLL version to 3.4.1Corinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-08Cygwin: stop exporting _allocaCorinna Vinschen
This is a remnant from 32 bit times, mindlessly copied into the 64 bit export table. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-04Cygwin: drop all usages of WINAPICorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-04Cygwin: drop obsolete _cygwin_noncygwin_dll_entry entry pointCorinna Vinschen
This was obsoleted more than 22 years ago. Time to drop it. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-03Cygwin: fix/drop a few commentsCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-03Cygwin: __WORDSIZE: Drop 32 bit considerationsCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-03Cygwin: drop macro and code for CYGWIN_VERSION_DLL_EPOCHCorinna Vinschen
fix a comment in check_sanity_and_sync() on the way Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-03Cygwin: drop unused CYGWIN_VERSION_CYGWIN_CONV macroCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-03Cygwin: version.h: document API_VERSION of the first 64 bit buildCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-03Cygwin: drop macro and code for CYGWIN_VERSION_USE_PSEUDO_RELOC_IN_DLLCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-03Cygwin: drop macro and code for CYGWIN_VERSION_CHECK_FOR_OLD_CTYPECorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-03Cygwin: drop macro and code for CYGWIN_VERSION_CHECK_FOR_OLD_IFREQCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-03Cygwin: drop macro and code for CYGWIN_VERSION_CHECK_FOR_USING_WINSOCK1_VALUESCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-03Cygwin: drop macro and code for CYGWIN_VERSION_CHECK_FOR_USING_ANCIENT_MSGHDRCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-03Cygwin: drop unused CYGWIN_VERSION_CHECK_FOR_USING_BIG_TYPES macroCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-03Cygwin: drop macro and code for CYGWIN_VERSION_CHECK_FOR_OLD_O_NONBLOCKCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-03Cygwin: drop unused CYGWIN_VERSION_CHECK_FOR_S_IEXEC macroCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-03Cygwin: drop macro and code for CYGWIN_VERSION_OLD_STDIO_CRLF_HANDLINGCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-03Cygwin: drop macro and code for CYGWIN_VERSION_DLL_MALLOC_ENVCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-03Cygwin: drop macro and code for CYGWIN_VERSION_DLL_IS_OLD_TERMIOSCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-03Cygwin: drop requirement to build newlib's stdio64Corinna Vinschen
Given that 64 bit Cygwin defines all file access types (off_t, fpos_t, and derived types) as 64 bit anyway, there's no reason left to rely on the stdio64 part of newlib. Use base functions and base types. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-07-07Cygwin: redefine some macros for Linux compatibilityKen Brown
Define FD_SETSIZE (<sys/select.h>) to be 1024 by default, and define NOFILE (<sys/param.h>) to be OPEN_MAX (== 3200) by default. Remove the comment in <sys/select.h> that FD_SETSIZE should be >= NOFILE. Bump API minor. Addresses: https://cygwin.com/pipermail/cygwin/2022-July/251839.html
2022-06-10Cygwin: restore '#ifdef __x86_64__' for CPU-specific codeKen Brown
Commit e1ce752a1d, "Cygwin: remove miscellaneous 32-bit code", removed most occurrences of '#ifdef __x86_64__'. Restore those occurrences that guarded code specific to the AMD64 processor, and #error out if the processor is different. This will make it easier to find AMD64-specific code if we ever want to add support for a different 64-bit processor (e.g., ARM64).
2022-06-10Use global stdio streams for all configurationsSebastian Huber
The _REENT_GLOBAL_STDIO_STREAMS was introduced by commit 668a4c8722090fffd10869dbb15b879651c1370d in 2017. Since then it was enabled by default for RTEMS. Recently, the option was enabled for Cygwin which previously used an alternative implementation to use global stdio streams. In Newlib, the stdio streams are defined to thread-specific pointers _reent::_stdin, _reent::_stdout and _reent::_stderr. If the option is disabled (the default for most systems), then these pointers are initialized to thread-specific FILE objects which use file descriptors 0, 1, and 2, respectively. There are at least three problems with this: (1) The thread-specific FILE objects are closed by _reclaim_reent(). This leads to problems with language run-time libraries that provide wrappers to the C/POSIX stdio streams (for example C++ and Ada), since they use the thread-specific FILE objects of the initialization thread. In case the initialization thread is deleted, then they use freed memory. (2) Since thread-specific FILE objects are used with a common output device via file descriptors 0, 1 and 2, the locking at FILE object level cannot ensure atomicity of the output, e.g. a call to printf(). (3) There are resource managment issues, see: https://sourceware.org/pipermail/newlib/2022/019558.html https://bugs.linaro.org/show_bug.cgi?id=5841 This patch enables the _REENT_GLOBAL_STDIO_STREAMS behaviour for all Newlib configurations and removes the option. This removes a couple of #ifdef blocks.
2022-06-06Cygwin: remove most occurrences of __stdcall and __cdeclKen Brown
These have no effect on x86_64. Retain a few occurrences of __cdecl in files imported from other sources. Also retain all occurrences of WINAPI, even though the latter is simply a macro that expands to __stdcall. Most of these occurrences are associated with Windows API functions, and removing them might make the code confusing instead of simpler.
2022-05-30Cygwin: remove miscellaneous 32-bit codeKen Brown
2022-05-30Cygwin: remove 32-bit only clipboard codeKen Brown
2022-05-30Cygwin: remove some 32-bit only environment codeKen Brown
2022-05-30Cygwin: remove some 32-bit only path conversion functionsKen Brown
2022-05-30Cygwin: remove regparm.hKen Brown
This file defines the macros __reg1, __reg2, and __reg3, which are defined to be empty on 64-bit Cygwin. Remove all occurrences of these macros.
2022-05-30Cygwin: simplify some function namesKen Brown
Remove "32" or "64" from each of the following names: acl32, aclcheck32, aclfrommode32, aclfrompbits32, aclfromtext32, aclsort32, acltomode32, acltopbits32, acltotext32, facl32, fchown32, fcntl64, fstat64, _fstat64, _fstat64_r, ftruncate64, getgid32, getgrent32, getgrgid32, getgrnam32, getgroups32, getpwuid32, getpwuid_r32, getuid32, getuid32, initgroups32, lseek64, lstat64, mknod32, mmap64, setegid32, seteuid32, setgid32, setgroups32, setregid32, setreuid32, setuid32, stat64, _stat64_r, truncate64. Remove prototypes and macro definitions of these names. Remove "#ifndef __INSIDE_CYGWIN__" from some headers so that the new names will be available when compiling Cygwin. Remove aliases that are no longer needed. Include <unistd.h> in fhandler_clipboard.cc for the declarations of geteuid and getegid.
2022-05-30Cygwin: remove some 32-bit-only function definitionsKen Brown
Remove the definitions of the following: acl, aclcheck, aclfrommode, aclfrompbits, aclfromtext, aclsort, acltomode, acltopbits, acltotext, chown, fchown, _fcntl, fstat, _fstat_r, ftruncate, getegid, geteuid, getgid, getgrent, getgrgid, getgrnam, getgroups, getpwduid, getpwuid, getpwuid_r, getuid, initgroups, lacl, lacl32, lchown, lseek, lstat, mknod, mmap, setegid, seteuid, setgid, setgroups, setregid, setreuid, setuid, stat, _stat_r, truncate. [For most of these, the corresponding 64-bit entry points are obtained by exporting aliases. For example, acl is an alias for acl32, and truncate is an alias for truncate64.] Remove the following structs and all code using them (which is 32-bit only): __stat32, __group16, __flock32, __aclent16_t. Remove the typedefs of __blkcnt32_t __dev16_t, __ino32_t, which are used only in code that has been removed. Put the typedefs of __uid16_t and __gid16_t in one header, instead of one header if __INSIDE_CYGWIN__ is defined and a different header otherwise.
2022-05-18Cygwin: Enable backward binary compatibilitySebastian Huber
2022-05-16Cygwin: drop i386 refs from header files where source isn't affectedCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-05-13Cygwin: config.h: stop including auto-generated tlsoffsets.h fileCorinna Vinschen
This was a hack to begin with. Clean this mess up: - Move definition of CYGTLS_PADSIZE to cygwin/config.h and drop local cygtls_padsize.h - Rename CYGTLS_PADSIZE to __CYGTLS_PADSIZE__ to keep namespace clean. Redefine as macro, rather than as const. - Move struct _reent first in struct _cygtls to allow using __CYGTLS_PADSIZE__ as offset in __getreent(). Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-05-13Cygwin: switch to _REENT_GLOBAL_STDIO_STREAMSCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-05-13Make cleanup_glue() staticSebastian Huber
Remove cleanup_glue from the list of symbols exported by Cygwin.
2022-05-13Cygwin: Implement GSO/GRO supportCorinna Vinschen
- getsockopt (SOL_UDP, UDP_SEGMENT) - setsockopt (SOL_UDP, UDP_SEGMENT) - getsockopt (SOL_UDP, UDP_GRO) - setsockopt (SOL_UDP, UDP_GRO) - sendmsg with SOL_UDP/UDP_SEGMENT control message - recvmsg, convert Winsock UDP_COALESCED_INFO (DWORD) control message to Linux compatible SOL_UDP/UDP_GRO (uint16_t)
2022-05-12Cygwin: socket.h: add socket options added in recent Windows releasesCorinna Vinschen
Add new socket options equivalent to their Linux counterpart. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-05-04Revert "sys/types.h: Don't include sys/_stdint.h"Corinna Vinschen
This reverts commit 4232d171a620662aaed650879936eac60aefd9e0.
2022-05-03sys/types.h: Don't include sys/_stdint.hCorinna Vinschen
By including sys/_stdint.h, all types from stdint.h are exposed even if stdint.h isn't pulled in explicitely. Include <machine/_default_types.h instead. Fix up newlib and Cygwin files which rely on stdint.h types, too. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-02-28Cygwin: termios: Ensure detection of GDB inferior in process_sigs().Takashi Yano
- In some situations, some cygwin processes might wrongly identified as GDB inferior. This patch ensures the detection of GDB inferior.
2021-12-13Cygwin: pty: Fix Ctrl-C handling further for non-cygwin apps.Takashi Yano
- The recent commit: "Cygwin: pty: Fix Ctrl-C handling for non-cygwin apps in background." causes the problem that cmd.exe is terminated by Ctrl-C even if it is running in pseudo console. This patch fixes the issue.
2021-12-11Cygwin: clipboard: Make intent of the code clearer.Takashi Yano
2021-11-16change _COMPILING_NEWLIB to _LIBCMike Frysinger
Use the same name as glibc & gnulib to indicate "newlib itself is being compiled". This also harmonizes the codebase a bit in that _LIBC was already used in places instead of _COMPILING_NEWLIB. Building for bfin-elf, mips-elf, and x86_64-pc-cygwin produces the same object code.
2021-10-28Cygwin: bump DLL major versioncygwin-3.4.0-devCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-10-28Cygwin: bump DLL minor versionCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-10-26Cygwin: Make native clipboard layout same for 32- and 64-bitMark Geisert
This patch unifies the layout of the clipboard descriptor cygcb_t for 32- and 64-bit Cygwin. It allows correct copy/paste between the two environments without corruption of user's copied data and without access violations due to interpreting that data as a size field. The definitions of CYGWIN_NATIVE and cygcb_t are moved to a new include file, sys/clipboard.h. The include file is used by fhandler_clipboard.cc as well as getclip.c and putclip.c in the Cygwin cygutils package. When copy/pasting between 32- and 64-bit Cygwin environments, both must be running version 3.3.0 or later for successful operation.