Re: /usr/bin/fallocate missing in Cygwin 3.5's "util-linux" ...

2024-01-26 Thread ASSI via Cygwin
Mark Geisert via Cygwin writes: > A new build of the util-linux package, 2.33.1-3, now includes > fallocate and its man page. The updated package is now making its way > to the Cygwin mirrors. fallocate requires Cygwin version >= 3.5.0. It also doesn't work at all on Cygwin 3.4.x and 3.5 isn't y

Re: New package: btop 1.3.0-1

2024-01-26 Thread Takashi Yano via Cygwin
On Sat, 27 Jan 2024 08:58:49 +0900 Takashi Yano wrote: > On Fri, 26 Jan 2024 16:09:10 -0700 > Brian Inglis wrote: > > Window blips and disappears whether running from XDG Menu btop++ or > > terminal! > > What happens if you run btop in mintty or UXterm? I could reproduce the problem. I'll releas

Re: New package: btop 1.3.0-1

2024-01-26 Thread Takashi Yano via Cygwin
On Fri, 26 Jan 2024 16:09:10 -0700 Brian Inglis wrote: > Window blips and disappears whether running from XDG Menu btop++ or terminal! What happens if you run btop in mintty or UXterm? > tail ~/.xsession-errors > ... > executing 'xterm -e btop', pid 23052 > (pid 23052 stderr) Missing charset KSC5

Re: arc4random does not reseed after using fork()

2024-01-26 Thread Glenn Strauss via Cygwin
> While testing ksh93u+m's recently added SRANDOM variable[1], I have > discovered a bug in Cygwin's arc4random function. After using fork(), > arc4random does not reseed itself, which causes the results to become > predictable[2]. Below is a test case C program exhibiting the bug: > > ... > > [1

Re: New package: btop 1.3.0-1

2024-01-26 Thread Brian Inglis via Cygwin
On 2024-01-26 04:45, Takashi Yano via Cygwin-announce wrote: The following packages have been uploaded to the Cygwin distribution: * btop-1.3.0-1 Resource monitor that shows usage and stats for processor, memory, disks, network and processes. Window blips and disappears whether running from

Re: Setting process command name in forked process

2024-01-26 Thread Steve Beck via Cygwin
Thanks so much for the reply, Anton! Really appreciate it. I tried what you proposed. Here is the code trying both ways (overwriting what is referenced by __argv[0] and then reassigning the reference). I compile this code (foo.c) simply as follows: gcc -o foo foo.c (with no errors or warnings

RE: Setting process command name in forked process

2024-01-26 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> (I'm assuming it's too late by the time the /proc entry has been set up). Actually, it's not. But beware, the suggested solution is absolutely NOT portable: These are the externals that /proc is referring to... (Not argc, argv passed to main().) extern char** __argv; extern int

Re: Source code for bash package?

2024-01-26 Thread Marco Atzeri via Cygwin
On 26/01/2024 08:22, Cedric Blancher via Cygwin wrote: Good morning! Where can I find the source code for the Cygwin bash package? Not the bash source itself, I am looking for the data which is used to build the Cygwin bash package. Ced https://cygwin.com/cgit/cygwin-packages/bash/tree/ and