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-08-08Cygwin: fold common.din and x86_64.din into cygwin.dinCorinna Vinschen
We don't need a target-specific DEF file anymore Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-07-28Cygwin: rename __cygwin_environ and drop env redirection via cur_environ()Corinna Vinschen
Back in early Cygwin development a function based access to the environment was exported, the internal environ in Cygwin was called __cygwin_environ and cur_environ() was used to access the environment indirectly . The history of that necessity is not documented, but kept in i686 for backward compatibility. The x86_64 port eventually used __cygwin_environ directly and exported it as DATA under the usual name environ. We don't need the i686 workaround anymore, so just rename __cygwin_environ to environ, drop the cur_environ() macro and simply export environ under its own name. 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.
2021-08-02Cygwin: export new sig2str/str2sigCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-07-29Cygwin: implement pthread_rwlock_clockrdlock/pthread_rwlock_clockwrlockCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-07-29Cygwin: implement pthread_mutex_clocklockCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-07-29Cygwin: implement pthread_cond_clockwaitCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-07-29Cygwin: implement sem_clockwaitCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2020-08-30Cygwin: Add C11 threads APICorinna Vinschen
Code taken from FreeBSD, which implements C11 threads as wrapper around pthreads. Fix up machine/_threads.h which is called from newlib's machine-independent threads.h to match Cygwin's pthreads types. Add the FreeBSD source files to libc subdir and take opportunity to define LIBC_OFILES var in Makefile. Add new symbols to common.din and sort symbols. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2020-08-30Cygwin: make pthread_yield available for internal usageCorinna Vinschen
In preparation of importing FreeBSDs stdthreads functions, change the way pthread_yield is exported, so that the symbol can be used internally as well. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2019-07-24Cygwin: Export newlib ndbm functionsCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna-cygwin@cygwin.com>
2019-06-28Cygwin: Fix return value of sched_getaffinityMark Geisert
Have sched_getaffinity() interface like glibc's, and provide an undocumented internal interface __sched_getaffinity_sys() like the Linux kernel's sched_getaffinity() for benefit of taskset(1).
2019-06-24Cygwin: Implement sched_[gs]etaffinity()Mark Geisert
This patch set implements the Linux syscalls sched_getaffinity, sched_setaffinity, pthread_getaffinity_np, and pthread_setaffinity_np. Linux has a straightforward view of the cpu sets used in affinity masks. They are simply long (1024-bit) bit masks. This code emulates that view while internally dealing with Windows' distribution of available CPUs among processor groups.
2019-02-19Cygwin: add secure_getenvYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2019-01-26Cygwin: uname: Raise size of utsname fields and revamp uname(2) outputCorinna Vinschen
New format: sysname: CYGWIN_NT-${osversion}-${os_build_number}[-WOW64] nodename: `gethostname` release: ${cygwin_version}-${API minor}.${arch}[.snap] version: YYYY-MM-DD HH:MM UTC machine: ${arch} _GNU_SOURCE: domainname: `getdomainname` !_GNU_SOURCE: __domainname: `getdomainname` Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2019-01-23Remove matherr, and SVID and X/Open math library configurationsJozef Lawrynowicz
Default math library configuration is now IEEE
2019-01-16Cygwin: timers: implement timerfdCorinna Vinschen
First cut of a timerfd implementation. Still TODO: - fork/exec semantics - timerfd_settime TFD_TIMER_CANCEL_ON_SET flag - ioctl(TFD_IOC_SET_TICKS) - bug fixes Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2019-01-14Cygwin: signal: implement signalfdCorinna Vinschen
First cut of a signalfd implementation. Still TODO: Non-polling select. This should mostly work as on Linux except for missing support for some members of struct signalfd_siginfo, namely ssi_fd, ssi_band (both SIGIO/SIGPOLL, not fully implemented) and ssi_trapno (HW exception, required HW support). Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2019-01-12Cygwin: posix timers: implement timer_getoverrunCorinna Vinschen
- set DELAYTIMER_MAX to INT_MAX - make sure to set siginfo_t::si_overrun, as on Linux Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2018-08-07Cygwin: implement sched_getcpuCorinna Vinschen
* create new function __get_cpus_per_group to evaluate # of CPU groups * Call from format_proc_cpuinfo and sched_getcpu * Bump API minor version Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2018-07-25POSIX Asynchronous I/O support: other filesMark Geisert
Updates to misc files to integrate AIO into the Cygwin source tree. Much of it has to be done when adding any new syscalls. There are some updates to limits.h for AIO-specific limits. And some doc mods.
2018-07-20Cygwin: move FP environment exports to common.dinCorinna Vinschen
We only have the symbols defined for i686 by accident since 2013... Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2018-06-27Cygwin: Implement pthread_tryjoin_np and pthread_timedjoin_npCorinna Vinschen
- Move pthread_join to thread.cc to have all `join' calls in the same file (pthread_timedjoin_np needs pthread_convert_abstime which is static inline in thread.cc) - Bump API version Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2018-06-07Cygwin: Implement the GNU extension clearenvKen Brown
2018-01-19cygwin: add catopen, catgets, catcloseYaakov Selkowitz
The implementation is taken from FreeBSD with #ifdef __CYGWIN__ modifications. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2017-12-18Cygwin: Implement sigtimedwaitMark Geisert
Abstract out common code from sigwait/sigwaitinfo/sigtimedwait to implement the latter.
2017-11-30cygwin: export wmempcpyYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2017-11-29cygwin: export SSP functionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2017-08-25cygwin: export strnstrCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-08-19cygwin: Implement renameat2Ken Brown
Define the RENAME_NOREPLACE flag in <cygwin/fs.h> as defined on Linux in <linux/fs.h>. The other RENAME_* flags defined on Linux are not supported.
2017-08-03cygwin: Implement pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlockCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-08-03cygwin: Implement pthread_mutex_timedlockCorinna Vinschen
- pthread_mutex::lock now takes a PLARGE_INTEGER timeout pointer and uses that in the call to cygwait. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-08-02cygwin: Export explicit_bzeroYaakov Selkowitz
This was added to newlib together with timingsafe_*cmp but never exported. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2017-07-11cygwin: export fls, flsl, flsllCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-06-19cygwin: export strverscmp, add versionsortYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2017-06-14Export XSI sigpauseYaakov Selkowitz
There are two common sigpause variants, both of which take an int argument. If you request _XOPEN_SOURCE or _GNU_SOURCE, you get the System V version, which removes the given signal from the process's signal mask; otherwise you get the BSD version, which sets the process's signal mask to the given value. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2017-04-04Cygwin: Export reallocarrayCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-03-28Implement getloadavg()Jon Turney
v2: autoload PerfDataHelper functions Keep loadavg in shared memory Guard loadavg access by a mutex Initialize loadavg to the current load v3: Shared memory version bump isn't needed if we are only extending it Remove unused autoload Mark inititalized flags as NO_COPY for correct behaviour in fork child Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
2017-03-08Implement dladdr() (partially)Jon Turney
Note that this always returns with dli_sname and dli_saddr set to NULL, indicating no symbol matching addr could be found. Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
2017-03-07Export timingsafe_bcmp and timingsafe_memcmpJon Turney
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
2016-12-17Export getentropy and getrandom callsCorinna Vinschen
getentropy per OpenBSD http://man.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man2/getentropy.2 getrandom per Linux http://man7.org/linux/man-pages/man2/getrandom.2.html Note that GRND_NONBLOCK is not handled
2016-08-23Implement GNU extension strptime_lCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-08-23Implement GNU extension wcsftime_lCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-08-23Implement missing POSIX-1.2008 function strerror_lCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-08-23Add pthread_getname_np and pthread_setname_npJon Turney
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
2016-08-20Implement missing POSIX function nl_langinfo_lCorinna Vinschen
Change nl_langinfo to nl_langinfo_l using locale given as argument. Remove outdated TRANSITION_PERIOD_HACK. The codeset is stored in the locale for quite some time now. For !MB_CAPABLE targets, just return "US_ASCII" as codeset. Implement nl_langinfo by calling nl_langinfo_l. Export nl_langinfo_l from Cygwin DLL and bump minor API version number. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-08-15Implement strto[dflu]_l/wcsto[dflu]_lCorinna Vinschen
Implement GNU extensions 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. Export from Cygwin, fix posix.xml. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-08-15Implement strfmon_lCorinna Vinschen
Use latest code from FreeBSD Signed-off by: Corinna Vinschen <corinna@vinschen.de>
2016-08-15Implement per-locale string functionsCorinna Vinschen
strcasecmp_l, strcoll_l, strncasecmp_l, strxfrm_l, wcscasecmp_l, wcscoll_l, wcstrncasecmp_l, wcstrxfrm_l, strftime_l. Add missing CHEWOUT_FILES from previous patch. TODO: strfmon_l. Signed-off by: Corinna Vinschen <corinna@vinschen.de>
2016-08-15Implement all per-locale ctype functionsCorinna Vinschen
Signed-off by: Corinna Vinschen <corinna@vinschen.de>