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
2023-11-29Cygwin: Add '--names-only' flag to cygcheckJon Turney
Add '--names-only' flag to cygcheck, to output just the bare package names.
2023-11-14Fix profiler error() definition and usageMark Geisert
Minor updates to profiler and gmondump, which share some code: - fix operation of error() so it actually works as intended - resize 4K-size auto buffer reservations to BUFSIZ (==1K) - remove trailing '\n' from 2nd arg on error() calls everywhere - provide consistent annotation of Windows error number displays Fixes: 9887fb27f6126 ("Cygwin: New tool: profiler") Fixes: 087a3d76d7335 ("Cygwin: New tool: gmondump") Signed-off-by: Mark Geisert <mark@maxrnd.com>
2023-07-26Rename _NL_CTYPE_OUTDIGITSx_MB/WC to _NL_CTYPE_OUTDIGITx_MB/WCCorinna Vinschen
The extended _NL_foo names were originally designed after their GLibc counterparts. However, the OUTDIGIT macros were accidentally defined as OUTDIGITS, plural. Fix them. Fixes: d47d5b850bed ("Extend locale support to maintain wide char values of native strings") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-04-03Cygwin: chattr: fix description of requirements for casesensitive directoriesCorinna Vinschen
Preconditions of WSL or empty directories dependent on Windows versions was totally screwed up. Drop the description from --help, describe the preconditions for case-sensitive dirs in the man page instead. Fixes: fc6e89c937c1 ("Cygwin: chattr: clarify requirements for casesensitive directories") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-03-27Cygwin: chattr: clarify requirements for casesensitive directoriesCorinna Vinschen
- Windows 10 requires WSL - Windows 11 only allows enabling casesensitivity if dir is empty Fixes: 0d4b39d37b966 ("Cygwin: Add lsattr and chattr tools") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-03-16Cygwin: kill(1): Align list options to latest Linux kill(1)Corinna Vinschen
- Don't print all RT signals, just the allowed patterns - Add -L/--table option to print a table of signals with signal numbers Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-03-16Cygwin: kill(1): align real-time signal naming to Linux kill(1)Corinna Vinschen
Allow RT<N>, RTMIN+<N> and RTMAX-<N> for RT signals. Translate RT signal numbers to an "RT<N>" string. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-03-16Cygwin: kill(1): don't print spurious error messageCorinna Vinschen
Make kill -V and kill -l exit immediately, thus stopping to print "not enough arguments" accidentally. Fixes: ef48a2cad3704 ("* kill.cc (prog_name) New global variable.") Fixes: c49fa762631f9 ("* Makefile.in (kill.exe): Add as a specific target.") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-02-26Cygwin: introduce /proc/codesets and /proc/localesCorinna Vinschen
So far locale(1) had to have knowledge how to construct, thus duplicating the effort how Cygwin handles locale strings. Move locale list and codeset list generation into Cygwin by providing /proc/codesets and /proc/locales files. /proc/locales does not list aliases, those are still handled in locale(1). locale(1) opens the files and ueses that info for printing, like any other application can do now. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-02-25Cygwin: locale(1): redefine rule for adding a @euro localeCorinna Vinschen
The @euro locale is only useful, if the locale uses the EUR currency and the codeset of the base locale is ISO-8859-1, or the locale is el_GR. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-02-25Cygwin: locale: fix devanagar modifierCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-02-25Cygwin: locale(1): fix typoCorinna Vinschen
Windows locales need a dash instead of an underscore. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-02-24Cygwin: support KOI8-T codesetCorinna Vinschen
Used on Linux as default codeset for Tajik. There's no matching Windows codepage, so fake it as CP103. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-02-24Cygwin: locale(1): drop using LCID, use Windows locale namesCorinna Vinschen
LCIDs are deprecated since Windows Vista. Worse, lots of new locales have been added in the meantime which have no LCID attached. They are only available by locale name. As first step, rearrange the locale(1) tool to use Windows locale names, rather than LCIDs, so we can now enumerate *all* locales available in more recent Windows versions. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-02-14Cygwin: dumper: also link with libzstd, as libbfd may require itJon Turney
Also allow that linkage to be dynamic, as libzstd-devel doesn't currently provide a static library.
2023-02-11Cygwin: cygcheck: fix default info selector evaluationCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-02-11Cygwin: cygcheck: fix dependency searchCorinna Vinschen
Spaces are filtered out by PathMatchSpecA so they can't be used as pattern anchors. Overwrite all spaces with commas and fix the search expresion accordingly. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-02-09Cygwin: cygcheck: improve OS outputCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-02-08Cygwin: cygcheck: add dependency outputCorinna Vinschen
-e --requires search packages depending on packages given as PATTERN -e --build-reqs search packages with build dependency matching PATTERN -i --depends print dependencies -i --build-deps print build dependencies (if available) Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-02-08Cygwin: cygcheck: print categories in --info outputCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-02-08Cygwin: cygcheck: collect build-depends infoCorinna Vinschen
TODO: implement options to print all deps, all build-deps, all packages depending on packages matching the search string and so on. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-02-08Cygwin: cygcheck: add latest product codesCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-02-01dumper: avoid linker problem when `libbfd` depends on `libsframe`Johannes Schindelin
A recent binutils version introduced `libsframe` and made it a dependency of `libbfd`. This caused a linker problem in the MSYS2 project, and once Cygwin upgrades to that binutils version it would cause the same problems there. Let's preemptively detect the presence of `libsframe` and if detected, link to it in addition to `libbfd`. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2023-01-29Cygwin: cygcheck: lower setup.ini expiration time to 3 hoursCorinna Vinschen
...as is default for dnf Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-01-29Cygwin: cygcheck: find_url: fix error handlingCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-01-29Cygwin: cygcheck: improve documentationCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-01-29Cygwin: cygcheck: simplify output when fetching setup.iniCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-01-29Cygwin: cygcheck: add human readable package size outputCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-01-29Cygwin: cygcheck: package info / available package search, take 2Corinna Vinschen
- if the user has no perms to write to /etc/setup, don't try to fetch user homedir from Cygwin (crashes galore). Use LOCALAPPDATA path instead. - info is more rpm like - print info of installed package - added info selectors --inst, --curr, --prev, --test - add installation date TODO: - Human-readable filesize - url and license needs to be added to setup.ini yet - Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-01-28Cygwin: cygcheck: package info / available package search, take 1Corinna Vinschen
cygcheck -i == dnf info <pattern...> cygcheck -e == dnf search <pattern...> Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-01-26Cygwin: cygcheck: split out fetching data from cygwin.comCorinna Vinschen
In preparation of new functionality, split fetching data from cygwin.com out of the package_grep() function. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-01-19Cygwin: fix build of cygcheck and straceCorinna Vinschen
adding <target>_LDFLAGS overrides AM_LDFLAGS and thus fails to build cygcheck and strace statically. Fix it. Fixes: 8d318bf142f7 ("Cygwin: disable high-entropy VA for cygcheck and strace") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-01-17Cygwin: disable high-entropy VA for cygcheck and straceCorinna Vinschen
It's not a good idea to enable high-entropy VA for tools loading the Cygwin DLL dynamically. The addresses used by HEVA tend to collide with fixed address areas managed by Cygwin. Fixes: 60675f1a7eb2 ("Cygwin: decouple shared mem regions from Cygwin DLL") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-01-14Cygwin: newgrp: first full versionCorinna Vinschen
- add '-' option - make group argument optional - drop ability to take a numerical group argument - simplify usage output to bare minimum - Add manpage and documentation Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-01-13Cygwin: add very simple newgrp(1) toolCorinna Vinschen
This tool allows to change the primary group for a child process. The new primary group MUST be part of the supplementary group list of newgrp's user token. The command started as child process is specified on the command line. If it's missing, start the user's default shell with the new primary group. TODO: Implement '-' option. Add command description to documentation. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-10-28Cygwin: utils: drop 32 bit considerationsCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-10-28Cygwin: regtool: drop 32 bit hint from help outputCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-20Cygwin: profiler: Fix linking when building with -DDEBUGGINGCorinna Vinschen
CloseHandle gets redefined to a macro calling an internal function in debug.h when building with -DDEBUGGING, but profiler has no access to that function. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-05Cygwin: Reorganize cygwin source dirCorinna Vinschen
Create subdirs and move files accordingly: - DevDocs: doc files - fhandler: fhandler sources, split fhandler.cc into base.cc and null.cc - local_includes: local include files - scripts: scripts called during build - sec: security sources Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-06-10Cygwin: Have gmondump support ssp-generated gmon.outMark Geisert
Cygwin tool ssp generates gmon.out files with different address resolution than other tools do. Two address bytes per bucket rather than the usual four address bytes. Gprof can deal with the difference but gmondump can't because the latter's gmon.out header validation fails. - Remove the offending portion of the header validation code. - Make sure all code can handle differing address resolutions. - Display address resolution in verbose data dumps. - Change "rawarc" to "struct rawarc" in certain sizeof expressions to avoid buffer overrun faults. - When "-v" (verbose) is specified, note when there is missing bucket data or rawarc data.
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-06-06Cygwin: Drop use of loadlib.h in regtoolJon Turney
Link directly with RegDeleteKeyExW(), available since Vista. (It's unclear the LoadLibrary wrapper was ever doing anything useful here, as (i) DLL lookup in PATH was avoided as advapi32 is already loaded into the process, and (ii) advapi32 is a 'known DLL' which is only ever loaded from system directory)
2022-06-06Cygwin: Drop pointless loadlib.h includes in utilitiesJon Turney
These utilities used to LoadLibrary()/GetProcAddress(), but don't anymore.
2022-05-15Cygwin: pty: Fix script command crash on console in Win7.Takashi Yano
- Previously, the command "cmd /c script -c cmd" in console of Win7 crashes. This seems to be due to a bug (?) of AttachConsole(). This patch adds workaround for this issue. Currently, pty reattaches to the console of the process which is predetermined by ConsoleProcessList() after temporarily attaching to another console. After that, the console output handle opened with the name "CONOUT$" may not be accessible in Win7. This seems to happen when the attached process does not have the same handle even if the console attached is the same. With this patch, cygwin-console-helper which is started when pty master is opened in console, is utilized to be a target process to which pty reattaches if the OS is Win7.
2022-05-13Cygwin: utils: drop unnecessary wow64 checksCorinna 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-03-17Cygwin: Fix gmondump formatting goofsMark Geisert
The rewrite of %X to %p was malhandled. Fix that/them.
2022-03-03Cygwin: getconf: align -a output to glibc getconfCorinna Vinschen
glibc getconf doesn't print "undefined" for undefined values in -a output. It just prints the empty string. Do it the same way. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-10-29Cygwin: drop support for systems not supporting RFC 4646 localesCorinna Vinschen
i. e. Vista/2008. This drops support for the sr_CS locale. Regenerate LC_MESSAGES and LC_TIME ERA data from more recent Linux Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-10-21Cygwin: update cygcheck OS informationCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>