aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib/arc4random.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2025-02-25 11:05:32 +0100
committerCorinna Vinschen <corinna@vinschen.de>2025-02-26 09:45:04 +0100
commit230f4802edfba76da303e57a11ea04d67bc31b0d (patch)
tree6dfd2b709c59bcda8dda76225e03ed91ad914c74 /newlib/libc/stdlib/arc4random.c
parent2164981d267513dc3049675bd5dada04eac1bc8f (diff)
downloadnewlib-230f4802edfba76da303e57a11ea04d67bc31b0d.zip
newlib-230f4802edfba76da303e57a11ea04d67bc31b0d.tar.gz
newlib-230f4802edfba76da303e57a11ea04d67bc31b0d.tar.bz2
Cygwin: pipes: fix error handling when creating a pipe
The nt_create() function returns a Windows error code, but it only calls NT functions. In one case, it returns the Windows error code without converting the NT status code to a Windows error code first. To fix this mess, change nt_create() to a function returning the NT status code directly. Let the (only) caller handle the conversion from NT status code to errno value. Reported-by: "knut st. osmundsen" <bird-cygwin@anduin.net> Fixes: f56206cd86b9 ("Cygwin: fhandler_pipe: fix permission problem") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/stdlib/arc4random.c')
0 files changed, 0 insertions, 0 deletions