diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-10-04 20:18:43 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-10-04 20:18:43 +0000 |
commit | 1cc46fbf537a89aa60128e84b5973a831221220d (patch) | |
tree | 4c930d113bc9fdd3180197fe438900e569423775 /m4 | |
parent | be1d0e7285afc1084b86b50ab64e86eb5bb9bb3d (diff) | |
download | coreutils-1cc46fbf537a89aa60128e84b5973a831221220d.tar.xz |
Sync from gnulib, to remove dependencies of other modules on unlocked-io.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ChangeLog | 6 | ||||
-rw-r--r-- | m4/unlocked-io.m4 | 24 |
2 files changed, 29 insertions, 1 deletions
diff --git a/m4/ChangeLog b/m4/ChangeLog index aeeffa1af..450fd1e7c 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,9 @@ +2004-10-04 Paul Eggert <eggert@cs.ucla.edu> + + Sync from gnulib. + * unlocked-io.m4: Add copyright notice. + (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO. + 2004-10-03 Paul Eggert <eggert@cs.ucla.edu> Sync from gnulib. diff --git a/m4/unlocked-io.m4 b/m4/unlocked-io.m4 index cd1c5f4ef..5849e4a3a 100644 --- a/m4/unlocked-io.m4 +++ b/m4/unlocked-io.m4 @@ -1,4 +1,21 @@ -#serial 9 +# unlocked-io.m4 serial 10 + +# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software +# Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. dnl From Jim Meyering. dnl @@ -10,6 +27,11 @@ dnl on Solaris 2.6). AC_DEFUN([gl_FUNC_GLIBC_UNLOCKED_IO], [ + AC_DEFINE([USE_UNLOCKED_IO], 1, + [Define to 1 if you want getc etc. to use unlocked I/O if available. + Unlocked I/O can improve performance in unithreaded apps, + but it is not safe for multithreaded apps.]) + dnl Persuade glibc and Solaris <stdio.h> to declare dnl fgets_unlocked(), fputs_unlocked() etc. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) |