-
- Downloads
"...git@gitlab.steamos.cloud:steamrt/steam-runtime-tools.git" did not exist on "9a9b8a72d9c4735ac43401b6bf77316410b2ae70"
Add glnx_fd_close() and glnx_autofd
I'd like to have the checks for `EBADF` as well as the "assign to -1" in more places. The cleanup function we had for `glnx_fd_close` is actually what we want. Let's rename the cleanup macro to `glnx_autofd` to better match other autocleanups like `g_autofree`. Then we can use `glnx_fd_close()` as a replacement for plain Unix `close()`. I left the `glnx_close_fd` macro, but it's obviously confusing now with the former. We'll eventually remove it.
Please register or sign in to comment