Mercurial > hg > octave-lojdl > gnulib-hg
annotate lib/unlocked-io.h @ 4778:d68794da5ecb
Merge getpass from libc, plus a few fixes.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Wed, 08 Oct 2003 20:34:54 +0000 |
parents | d4efdb886b2a |
children | 77792d9c28e4 |
rev | line source |
---|---|
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
1 /* Prefer faster, non-thread-safe stdio functions if available. |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
2 |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
3 Copyright (C) 2001, 2002 Free Software Foundation, Inc. |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
4 |
4435 | 5 This program is free software; you can redistribute it and/or modify |
6 it under the terms of the GNU General Public License as published by | |
7 the Free Software Foundation; either version 2, or (at your option) | |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
8 any later version. |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
9 |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
10 This program is distributed in the hope that it will be useful, |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
4435 | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 GNU General Public License for more details. | |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
14 |
4435 | 15 You should have received a copy of the GNU General Public License along |
16 with this program; if not, write to the Free Software Foundation, | |
17 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ | |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
18 |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
19 /* Written by Jim Meyering. */ |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
20 |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
21 #ifndef UNLOCKED_IO_H |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
22 # define UNLOCKED_IO_H 1 |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
23 |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
24 # ifndef USE_UNLOCKED_IO |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
25 # define USE_UNLOCKED_IO 1 |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
26 # endif |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
27 |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
28 # if USE_UNLOCKED_IO |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
29 |
4778
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
30 /* These are wrappers for functions/macros from the GNU C library, and |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
31 from other C libraries supporting POSIX's optional thread-safe functions. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
32 |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
33 The standard I/O functions are thread-safe. These *_unlocked ones are |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
34 more efficient but not thread-safe. That they're not thread-safe is |
4778
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
35 fine since all of the applications in this package are single threaded. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
36 |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
37 Also, some code that is shared with the GNU C library may invoke |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
38 the *_unlocked functions directly. On hosts that lack those |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
39 functions, invoke the non-thread-safe versions instead. */ |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
40 |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
41 # include <stdio.h> |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
42 |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
43 # if HAVE_DECL_CLEARERR_UNLOCKED |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
44 # undef clearerr |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
45 # define clearerr(x) clearerr_unlocked (x) |
4778
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
46 # else |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
47 # define clearerr_unlocked(x) clearerr (x) |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
48 # endif |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
49 # if HAVE_DECL_FEOF_UNLOCKED |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
50 # undef feof |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
51 # define feof(x) feof_unlocked (x) |
4778
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
52 # else |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
53 # define feof_unlocked(x) feof (x) |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
54 # endif |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
55 # if HAVE_DECL_FERROR_UNLOCKED |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
56 # undef ferror |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
57 # define ferror(x) ferror_unlocked (x) |
4778
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
58 # else |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
59 # define ferror_unlocked(x) ferror (x) |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
60 # endif |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
61 # if HAVE_DECL_FFLUSH_UNLOCKED |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
62 # undef fflush |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
63 # define fflush(x) fflush_unlocked (x) |
4778
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
64 # else |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
65 # define fflush_unlocked(x) fflush (x) |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
66 # endif |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
67 # if HAVE_DECL_FGETS_UNLOCKED |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
68 # undef fgets |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
69 # define fgets(x,y,z) fgets_unlocked (x,y,z) |
4778
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
70 # else |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
71 # define fgets_unlocked(x,y,z) fgets (x,y,z) |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
72 # endif |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
73 # if HAVE_DECL_FPUTC_UNLOCKED |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
74 # undef fputc |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
75 # define fputc(x,y) fputc_unlocked (x,y) |
4778
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
76 # else |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
77 # define fputc_unlocked(x,y) fputc (x,y) |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
78 # endif |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
79 # if HAVE_DECL_FPUTS_UNLOCKED |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
80 # undef fputs |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
81 # define fputs(x,y) fputs_unlocked (x,y) |
4778
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
82 # else |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
83 # define fputs_unlocked(x,y) fputs (x,y) |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
84 # endif |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
85 # if HAVE_DECL_FREAD_UNLOCKED |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
86 # undef fread |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
87 # define fread(w,x,y,z) fread_unlocked (w,x,y,z) |
4778
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
88 # else |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
89 # define fread_unlocked(w,x,y,z) fread (w,x,y,z) |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
90 # endif |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
91 # if HAVE_DECL_FWRITE_UNLOCKED |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
92 # undef fwrite |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
93 # define fwrite(w,x,y,z) fwrite_unlocked (w,x,y,z) |
4778
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
94 # else |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
95 # define fwrite_unlocked(w,x,y,z) fwrite (w,x,y,z) |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
96 # endif |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
97 # if HAVE_DECL_GETC_UNLOCKED |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
98 # undef getc |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
99 # define getc(x) getc_unlocked (x) |
4778
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
100 # else |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
101 # define getc_unlocked(x) getc (x) |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
102 # endif |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
103 # if HAVE_DECL_GETCHAR_UNLOCKED |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
104 # undef getchar |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
105 # define getchar() getchar_unlocked () |
4778
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
106 # else |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
107 # define getchar_unlocked() getchar () |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
108 # endif |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
109 # if HAVE_DECL_PUTC_UNLOCKED |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
110 # undef putc |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
111 # define putc(x,y) putc_unlocked (x,y) |
4778
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
112 # else |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
113 # define putc_unlocked(x,y) putc (x,y) |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
114 # endif |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
115 # if HAVE_DECL_PUTCHAR_UNLOCKED |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
116 # undef putchar |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
117 # define putchar(x) putchar_unlocked (x) |
4778
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
118 # else |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
119 # define putchar_unlocked(x) putchar (x) |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
120 # endif |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
121 |
4778
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
122 # undef flockfile |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
123 # define flockfile(x) ((void) 0) |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
124 |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
125 # undef ftrylockfile |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
126 # define ftrylockfile(x) 0 |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
127 |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
128 # undef funlockfile |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
129 # define funlockfile(x) ((void) 0) |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4435
diff
changeset
|
130 |
4064
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
131 # endif /* USE_UNLOCKED_IO */ |
b4c31ea552ff
New file, from GNU diffutils, but with proper copyright notice and
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
132 #endif /* UNLOCKED_IO_H */ |