Re: Shell API to get Windows SID from Cygwin name?

2023-09-22 Thread Allen, Norton T. via Cygwin
On 9/22/2023 8:07 AM, Brian Inglis via Cygwin wrote: On 2023-09-21 23:58, Martin Wege via Cygwin wrote: Does Cygwin have a shell (e.g. bash) API to lookup the Windows SID for a given Cygwin user or group name? /usr/bin/getent usersid thisisausername Forget Windows! Think Unix: $ getent passwd

Re: Shell API to get Windows SID from Cygwin name?

2023-09-23 Thread Allen, Norton T. via Cygwin
On 9/22/2023 11:11 PM, Brian Inglis wrote: On 2023-09-22 18:15, Allen, Norton T. via Cygwin wrote: On 9/22/2023 8:07 AM, Brian Inglis via Cygwin wrote: On 2023-09-21 23:58, Martin Wege via Cygwin wrote: Does Cygwin have a shell (e.g. bash) API to lookup the Windows SID for a given Cygwin user

Re: rand is not ISO C compliant in Cygwin

2023-11-11 Thread Allen, Norton T. via Cygwin
On 11/10/2023 5:27 PM, Bruno Haible wrote: Norton Allen wrote: Cygwin/(newlib?) has chosen to avoid race conditions by making pseudo-random sequences in different threads independent. Although the standard does not require this, it does not prohibit it either. I disagree. I cited the relevant s

Re: rand is not ISO C compliant in Cygwin

2023-11-11 Thread Allen, Norton T. via Cygwin
On 11/11/2023 1:25 PM, René Berber via Cygwin wrote: On 11/11/2023 10:50 AM, Allen, Norton T. via Cygwin wrote: [snip] The srand function is not required to avoid data races with other     calls to pseudo-random sequence generation functions. ..." That is not the same as "... requ