]> Savannah Git Hosting - gnulib.git/commitdiff
mountlist: Optimize stdio accesses.
authorBruno Haible <bruno@clisp.org>
Sun, 7 Mar 2021 01:31:45 +0000 (02:31 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 7 Mar 2021 10:01:58 +0000 (11:01 +0100)
* lib/mountlist.c: Include unlocked-io.h unconditionally.
* modules/mountlist (Depends-on): Add unlocked-io-internal.

ChangeLog
lib/mountlist.c
modules/mountlist

index d6e8d542de6b6146cc64c9c696b3b40f4a13ca69..1159ee80056e2ccce9538b4881dee6a8dfdb726c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-03-06  Bruno Haible  <bruno@clisp.org>
+
+       mountlist: Optimize stdio accesses.
+       * lib/mountlist.c: Include unlocked-io.h unconditionally.
+       * modules/mountlist (Depends-on): Add unlocked-io-internal.
+
 2021-03-06  Bruno Haible  <bruno@clisp.org>
 
        getusershell: Optimize stdio accesses when possible.
index fae5b601bac5dbe5cdee28e2093406a21c9a080c..27989d271ca81195fa4025b8564ec7494022408b 100644 (file)
 # define MNT_IGNORE(M) 0
 #endif
 
-#if USE_UNLOCKED_IO
-# include "unlocked-io.h"
-#endif
+/* Each of the FILE streams in this file is only used in a single thread.  */
+#include "unlocked-io.h"
 
 /* The results of opendir() in this file are not used with dirfd and fchdir,
    therefore save some unnecessary work in fchdir.c.  */
index 7542048e451a396dc492abbc1fc05fed3ddac025..8ec47933552d6f14c9ed20047accde03d7b18a5c 100644 (file)
@@ -11,6 +11,7 @@ Depends-on:
 fopen-gnu
 getline
 open
+unlocked-io-internal
 stdbool
 stdint
 strstr-simple