mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 12:45:18 +03:00
24 lines
733 B
Diff
24 lines
733 B
Diff
Author: Sean McAvoy
|
|
Summary: Fixes posix_close to posix_closex
|
|
----
|
|
diff --git a/src/sysdep_posix.c b/src/sysdep_posix.c
|
|
index 0d70de0..b390431 100644
|
|
--- a/src/sysdep_posix.c
|
|
+++ b/src/sysdep_posix.c
|
|
@@ -79,7 +79,7 @@ posix_open(void *rhp, const char *p, sysdep_open_mode_t omode)
|
|
* error - Otherwise.
|
|
*/
|
|
static int
|
|
-posix_close(void *rh)
|
|
+posix_closex(void *rh)
|
|
{
|
|
int *fhp = (int *) rh;
|
|
int error = EINVAL;
|
|
@@ -240,6 +240,6 @@ posix_file_size(void *rh, u_int64_t *nbytes)
|
|
}
|
|
|
|
const sysdep_dispatch_t posix_dispatch =
|
|
-{ posix_open, posix_close, posix_seek, posix_read, posix_write, posix_malloc,
|
|
+{ posix_open, posix_closex, posix_seek, posix_read, posix_write, posix_malloc,
|
|
posix_free, posix_file_size };
|
|
|