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
2024-01-23Cygwin: Don't terminate via dumperHEADmastermainJon Turney
A process which is exiting due to a core dumping signal doesn't propagate the correct exist status after dumping core, because 'dumper' itself forcibly terminates the process. Use 'dumper -n' to avoid killing the dumped process, so we continue to the end of signal_exit(), to exit with the 128+signal exit status. Busy-wait in exec_prepared_command() in an attempt to reliably notice the dumper attaching, so we don't get stuck there. Also: document these important facts for custom uses of error_start.
2024-01-18Cygwin: replace all `fgrep' with `grep -F'Corinna Vinschen
Unfortunately fgrep is now deprecated in a very pushy way. Make sure to use grep -F instead all around, even in docs and comments/ Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2024-01-16Cygwin: Update documentation for cygwin_stackdumpJon Turney
2024-01-16Cygwin: Disable writing core dumps by default.Jon Turney
Change the default core limit from unlimited to 0 (disabled)
2024-01-16Cygwin: Make 'ulimit -c' control writing a coredumpJon Turney
Pre-format a command to be executed on a fatal error to run 'dumper' (using an absolute path). Factor out executing a pre-formatted command, so we can use that for invoking the JIT debugger in try_to_debug() (if error_start is present in the CYGWIN env var) and to invoke dumper when a fatal error occurs. On a fatal error, if the core file size limit is greater than 1MB, invoke dumper to write a core dump. Otherwise, if that limit is greater than 0, write a .stackdump file, as previously. Adjust and clarify the associated documentation. Also: Fix so that the error_start JIT debugger is now invoked, even when ulimit -c is zero. Also: Fix uses of console_printf() inside exec_prepared_command(). It's output is written via the Windows console device, so needs to use Windows-style line endings. Also: consistently return non-zero from try_to_debug() if we debugged. Future work: Truncate or remove the file written, if it exceeds the maximum size set by the ulimit. Future work: Using the words "fatal error" could probably be improved on. This means exiting on one of the "certain signals whose default action is to cause the process to terminate and produce a core dump file".
2024-01-15Cygwin: introduce close_range(2)Christian Franke
This function closes or sets the close-on-exec flag for a specified range of file descriptors. It is available on FreeBSD and Linux. Signed-off-by: Christian Franke <christian.franke@t-online.de>
2024-01-15Cygwin: api docs: add missing fallocateCorinna Vinschen
Also add notes in terms of fallocate quirks. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2024-01-12Cygwin: Clarifications in 3.5 changes docJon Turney
2024-01-10Cygwin: Fix a stray '\n' in cygcheck manpageJon Turney
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
2023-12-01Cygwin: doc: add missing change to posix_spawnpCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-12-01Cygwin: sparse support: enable automatic sparsifying of files on SSDsCorinna Vinschen
Given that SSDs don't have a seek penalty, we can enable automatic sparsifying of files on SSDs, even if the "sparse" mount option is not set. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
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-28Cygwin: introduce fallocate(2)Corinna Vinschen
First cut of the new, Linux-specific fallocate(2) function. Do not add any functionality yet, except of basic handling of FALLOC_FL_KEEP_SIZE. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-11-17Cygwin: Document /dev/disk/by-* subdirectoriesChristian Franke
Signed-off-by: Christian Franke <christian.franke@t-online.de>
2023-11-07Cygwin: Document /dev/disk/by-id and /dev/disk/by-partuuidChristian Franke
Signed-off-by: Christian Franke <christian.franke@t-online.de>
2023-09-04Cygwin: document FIFO over NFS changeCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-08-25Cygwin: doc: add new API calls in 3.5Corinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-08-09Cygwin: add SEEK_DATA/SEEK_HOLE addition to release messageCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-08-02Cygwin: Add ISO C2X functions c8rtomb, mbrtoc8Corinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-07-31Cygwin: Add ISO C11 functions c16rtomb, c32rtomb, mbrtoc16, mbrtoc32.Corinna Vinschen
Add uchar.h accordingly. For the c32 functions, use the internal functions wirtomb and mbrtowi as base, and convert wirtomb and mbrtowi to inline functions calling the c32 functions. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-07-22Cygwin: testsuite: Drop using DejaGnu to run testsJon Turney
A more sophisticated (and modern) test harness would probably be useful, but switching to Automake's built-in test harness gets us parallel test execution, colourization of failures, simplifies matters, seems adequate for the current testuite, and means we don't need to write any icky Tcl. Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
2023-07-14Cygwin: testsuite: Drop Adminstrator privileges while running testsJon Turney
Test access05 and symlink03 expect operations to fail which succeed when we have Adminstrator privileges. There's perhaps a bit of incoherency here: some XFAILed tests expect to run as root (so maybe we need the ability to selectively cygdrop?). Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
2023-07-14Cygwin: testsuite: Setup test prereqs in 'installation' the tests run inJon Turney
Do some setup in the Cygwin 'installation' at testsuite/testinst/: * Ensure /tmp exists * Use BusyBox to provide executables needed by tests which use system() (sh, sleep, ls) This enables tests which use system(), or require /tmp to exist to pass. Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
2023-05-01Cygwin: doc: Upate a link from gitweb to cgitJon Turney
Also, reword 'considerable patch' to be more idomatic.
2023-04-19Cygwin: Export posix_spawn_file_actions_add{f}chdir_npCorinna Vinschen
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-29Cygwin: doc: fix description of new "env" schema for /etc/nsswitch.confCorinna Vinschen
Fixes: 27376c60a9b8 ("Allow deriving the current user's home directory via the HOME variable") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-03-28Allow deriving the current user's home directory via the HOME variableJohannes Schindelin
This patch hails from Git for Windows (where the Cygwin runtime is used in the form of a slightly modified MSYS2 runtime), where it is a well-established technique to let the `$HOME` variable define where the current user's home directory is, falling back to `$HOMEDRIVE$HOMEPATH` and `$USERPROFILE`. The idea is that we want to share user-specific settings between programs, whether they be Cygwin, MSYS2 or not. Unfortunately, we cannot blindly activate the "db_home: windows" setting because in some setups, the user's home directory is set to a hidden directory via an UNC path (\\share\some\hidden\folder$) -- something many programs cannot handle correctly, e.g. `cmd.exe` and other native Windows applications that users want to employ as Git helpers. The established technique is to allow setting the user's home directory via the environment variables mentioned above: `$HOMEDRIVE$HOMEPATH` or `$USERPROFILE`. This has the additional advantage that it is much faster than querying the Windows user database. Of course this scheme needs to be opt-in. For that reason, it needs to be activated explicitly via `db_home: env` in `/etc/nsswitch.conf`. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.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: add support for GB18030 codesetCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-03-16Cygwin: kill(1): Add -L to documentationCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-03-14Cygwin: doc: Update postinstall/preremove scriptsJon Turney
setup >=2.925 indicates to postinstall and preremove scripts the Start Menu suffix to use via the CYGWIN_START_MENU_SUFFIX env var. It also indicates, via the CYGWIN_SETUP_OPTIONS env var, if the option to disable Start Menu shortcut creation is supplied. Update the Cygwin documentation postinstall and preremove scripts to take these env vars into consideration.
2023-03-01Cygwin: add collating symbols support to release messageCorinna Vinschen
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-16add glob/fnmatch equivalence class support to release notesCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-02-15Cygwin: add glob/fnmatch named class support to release notesCorinna Vinschen
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-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-01-29Cygwin: add new cygcheck capabilities to release notesCorinna 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-14Cygwin: newgrp: improve doumentationCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-01-14Cygwin: add newgrp(1) to release message for 3.5.0Corinna Vinschen
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>
2022-12-21Cygwin: configure: Add option to disable building 'dumper'Jon Turney
Rather than guessing, based on just the presence of libbfd, add an explicit configuration option, to build dumper or not, defaulting to building it. This might have some use when bootstrapping Cygwin for a new architecture, or when building your own Cygwin-targetted cross-compiler, rather than installing one from the copr, along with the dependencies of libbfd.
2022-12-21Cygwin: FAQ: Mention configure options to build with reduced dependenciesJon Turney
2022-12-03Cygwin: FAQ: convert ulinks to FAQ to xrefsCorinna Vinschen
Using ulinks here makes the result work on cygwin.com only, while xrefs to FAQs are creating realtive links. Add xreflabel where appropriate. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-12-02Cygwin: FAQ: describe test releases, deprecate developer snapshotsCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-12-02Cygwin: uinfo: Drop long disabled nss_prefix and nss_separatorCorinna Vinschen
Originally the code was written to allow three ways of prefixing accounts and to freely define a domain/account separator. This code has been disabled even before being officially released, and it was never re-enabled. Given there has been no complaints for eight years now, drop this code eventually. Just add a macro to define the domain/account separator statically. Fixes: cc332c9e271b ("(cygheap_pwdgrp::nss_init_line): Disable db_prefix and db_separator settings. Add comment") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-11-28Cygwin: Update some mentions of x86 in documentationJon Turney
2022-11-28Cygwin: Fix typo in FAQJon Turney
The consonant in 'debug' is doubled in 'debuggee' just as it is in 'debugger'. Fixes: 8c68a8a4