mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-17 20:09:21 +08:00
fdb7df230d
This patch adds pthread_getname_np and pthread_setname_np. These were added to glibc in 2.12[1] and are also present in some form on NetBSD and several UNIXes. The code is based on NetBSD's implementation with changes to better match Linux behaviour. Implementation quirks: * pthread_setname_np with a NULL pointer segfaults (as linux) * pthread_setname_np returns ERANGE for names longer than 16 characters (as linux) * pthread_getname_np with a NULL pointer returns EFAULT (as linux) * pthread_getname_np with a buffer length of less than 16 returns ERANGE (as linux) * pthread_getname_np truncates the thread name to fit the buffer length. This guarantees success even when the default thread name is longer than 16 characters, but means there is no way to discover the actual length of the thread name. (Linux always truncates the thread name to 16 characters) * Changing program_invocation_short_name changes the default thread name (on linux, it has no effect on the default thread name) I'll leave it up to you to decide if any of these matter. This is implemented via class pthread_attr to make it easier to add pthread_attr_[gs]etname_np (present in NetBSD and some UNIXes) should it ever be added to Linux (or we decide we want it anyway). [1] https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS
83 lines
3.1 KiB
Plaintext
83 lines
3.1 KiB
Plaintext
What's new:
|
|
-----------
|
|
|
|
- Support for POSIX-1.2008 locale objects and per-thread locales.
|
|
|
|
New API per POSIX-1.2008: newlocale, freelocale, duplocale, uselocale,
|
|
nl_langinfo_l, isalnum_l, isalpha_l, isblank_l, iscntrl_l, isdigit_l,
|
|
isgraph_l, islower_l, isprint_l, ispunct_l, isspace_l, isupper_l, iswalnum_l,
|
|
iswalpha_l, iswblank_l, iswcntrl_l, iswctype_l, iswdigit_l, iswgraph_l,
|
|
iswlower_l, iswprint_l, iswpunct_l, iswspace_l, iswupper_l, iswxdigit_l,
|
|
isxdigit_l, tolower_l, toupper_l, towctrans_l, towlower_l, towupper_l,
|
|
wctrans_l, wctype_l, strcasecmp_l, strcoll_l, strfmon_l, strftime_l,
|
|
strncasecmp_l, strxfrm_l, wcscasecmp_l, wcscoll_l, wcstrncasecmp_l,
|
|
wcstrxfrm_l.
|
|
|
|
New API, GNU extensions: isascii_l, toascii_l, strtod_l, strtof_l, strtol_l,
|
|
strtold_l, strtoll_l, strtoul_l, strtoull_l, wcstod_l, wcstof_l, wcstol_l,
|
|
wcstold_l, wcstoll_l, wcstoul_l, wcstoull_l.
|
|
|
|
- locale(1) now supports a -i/--input option to fetch the current input
|
|
locale (this is basically equivalent to the current keyboard layout setting).
|
|
|
|
- New API: pthread_getname_np, pthread_setname_np.
|
|
|
|
What changed:
|
|
-------------
|
|
|
|
- Drop support for Windows XP and Windows Server 2003/2003 R2.
|
|
|
|
- Drop support for very old SUNWNFS filesystem.
|
|
|
|
- Further header file improvements in terms of feature test macros.
|
|
|
|
- Raise number of supported partitions per disk (for raw access) to 63.
|
|
Addresses: https://cygwin.com/ml/cygwin/2016-06/msg00136.html
|
|
|
|
- Add a workaround for filesystems not supporting the FileAllInformation
|
|
info class.
|
|
Addresses: https://cygwin.com/ml/cygwin/2016-07/msg00350.html
|
|
|
|
- Support AzureAD accounts.
|
|
|
|
- "nobody" account support for WinFSP.
|
|
|
|
|
|
Bug Fixes
|
|
---------
|
|
|
|
- Try to avoid spurious DENY ACEs when creating files in directories
|
|
with non-POSIX-like (rather: Windows-like) permissions.
|
|
Addresses: Report and reproducer on IRC.
|
|
|
|
- Make sure ldd(1) does not exit prematurely when enumerating DLLs.
|
|
Addresses: https://cygwin.com/ml/cygwin/2016-05/msg00185.html
|
|
|
|
- Fix strace timer output in child process.
|
|
Addresses: https://cygwin.com/ml/cygwin/2016-07/msg00067.html
|
|
|
|
- Change blkcnt_t to signed type per POSIX.
|
|
|
|
- Fix definition of SSIZE_MAX on 32-bit systems.
|
|
Addresses: https://cygwin.com/ml/cygwin/2016-07/msg00179.html
|
|
|
|
- Fix transposing invalid chars in Windows filenames on relative paths.
|
|
Addresses: https://cygwin.com/ml/cygwin/2016-07/msg00193.html
|
|
|
|
- Don't raise SIGTTIN from select(2)/poll(2).
|
|
Addresses: https://cygwin.com/ml/cygwin-developers/2016-07/msg00004.html
|
|
|
|
- Use correct FPU rounding mode in truncl.
|
|
Addresses: https://rt.perl.org/Public/Bug/Display.html?id=128665
|
|
|
|
- Fix a regression in ioctl(fd, FIONREAD, ...) introduced in Cygwin 2.5.0.
|
|
This only affects 64 bit Cygwin.
|
|
Addresses: https://cygwin.com/ml/cygwin/2016-07/msg00001.html
|
|
|
|
- Handle "clear screen" escpae sequence in console window more reliable.
|
|
Addresses: https://cygwin.com/ml/cygwin/2016-07/msg00310.html
|
|
|
|
- Allow kill(pid, <anysig>) on zombies to return successfully, rather than
|
|
only kill(pid, 0), to align behaviour with POSIX requirements.
|
|
Addresses: https://cygwin.com/ml/cygwin/2016-08/msg00188.html
|