Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 2021 16:04:15 GMT
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 5fe9edba0d7d - main - security/wpa_supplicant-devel: Make use of fdatasync(2)
Message-ID:  <202106141604.15EG4F4q015720@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by cy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5fe9edba0d7d40dba06f94419cce706349da5b57

commit 5fe9edba0d7d40dba06f94419cce706349da5b57
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-06-09 20:58:31 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2021-06-14 16:03:59 +0000

    security/wpa_supplicant-devel: Make use of fdatasync(2)
    
    FreeBSD has supported fdatasync(2) since FreeBSD 11.1. Prepare for
    future use when syncing to planned updates to base.
---
 .../wpa_supplicant-devel/files/patch-src_utils_os__unix.c  | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/security/wpa_supplicant-devel/files/patch-src_utils_os__unix.c b/security/wpa_supplicant-devel/files/patch-src_utils_os__unix.c
new file mode 100644
index 000000000000..cd4f24b681c3
--- /dev/null
+++ b/security/wpa_supplicant-devel/files/patch-src_utils_os__unix.c
@@ -0,0 +1,14 @@
+--- src/utils/os_unix.c.orig	2021-06-02 14:11:18.000000000 -0700
++++ src/utils/os_unix.c	2021-06-07 16:07:39.152547000 -0700
+@@ -464,9 +464,9 @@
+ int os_fdatasync(FILE *stream)
+ {
+ 	if (!fflush(stream)) {
+-#ifdef __linux__
++#if defined __FreeBSD__ || defined __linux__
+ 		return fdatasync(fileno(stream));
+-#else /* !__linux__ */
++#else /* !__linux__ && !__FreeBSD__ */
+ #ifdef F_FULLFSYNC
+ 		/* OS X does not implement fdatasync(). */
+ 		return fcntl(fileno(stream), F_FULLFSYNC);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106141604.15EG4F4q015720>