diff options
author | Jim Meyering <jim@meyering.net> | 1998-06-29 01:00:51 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-06-29 01:00:51 +0000 |
commit | e989012b575b817705a284a6fc0ac1f54bdd9ae6 (patch) | |
tree | 5e04c74387028aae33760e426cdbf50d63d7eaf9 /src | |
parent | 7aeda9a4d3db538499510c888a5c128ccd260f96 (diff) | |
download | coreutils-e989012b575b817705a284a6fc0ac1f54bdd9ae6.tar.xz |
add #undefs, alphabetize
Diffstat (limited to 'src')
-rw-r--r-- | src/sys2.h | 71 |
1 files changed, 41 insertions, 30 deletions
diff --git a/src/sys2.h b/src/sys2.h index 2b3c57e36..09eb937d8 100644 --- a/src/sys2.h +++ b/src/sys2.h @@ -162,75 +162,86 @@ off_t lseek (); are more efficient but not thread-safe. That they're not thread-safe is fine since all these applications are single threaded. */ -#ifdef HAVE_FCLOSE_UNLOCKED -# define FCLOSE(S) fclose_unlocked (S) -#else -# define FCLOSE(S) fclose (S) -#endif - -#ifdef HAVE_FFLUSH_UNLOCKED -# define FFLUSH(S) fflush_unlocked (S) +#undef CLEARERR +#ifdef HAVE_CLEARERR_UNLOCKED +# define CLEARERR(S) clearerr_unlocked (S) #else -# define FFLUSH(S) fflush (S) +# define CLEARERR(S) clearerr (S) #endif -#ifdef HAVE_GETC_UNLOCKED -# define GETC(S) getc_unlocked (S) +#undef FCLOSE +#ifdef HAVE_FCLOSE_UNLOCKED +# define FCLOSE(S) fclose_unlocked (S) #else -# define GETC(S) getc (S) +# define FCLOSE(S) fclose (S) #endif -#ifdef HAVE_GETCHAR_UNLOCKED -# define GETCHAR(S) getchar_unlocked (S) +#undef FEOF +#ifdef HAVE_FEOF_UNLOCKED +# define FEOF(S) feof_unlocked (S) #else -# define GETCHAR(S) getchar (S) +# define FEOF(S) feof (S) #endif -#ifdef HAVE_PUTCHAR_UNLOCKED -# define PUTCHAR(C) putchar_unlocked (C) +#undef FERROR +#ifdef HAVE_FERROR_UNLOCKED +# define FERROR(S) ferror_unlocked (S) #else -# define PUTCHAR(C) putchar (C) +# define FERROR(S) ferror (S) #endif -#ifdef HAVE_PUTC_UNLOCKED -# define PUTC(C, S) putc_unlocked (C, S) +#undef FFLUSH +#ifdef HAVE_FFLUSH_UNLOCKED +# define FFLUSH(S) fflush_unlocked (S) #else -# define PUTC(C, S) putc (C, S) +# define FFLUSH(S) fflush (S) #endif +#undef FPUTC #ifdef HAVE_FPUTC_UNLOCKED # define FPUTC(C, S) fputc_unlocked (C, S) #else # define FPUTC(C, S) fputc (C, S) #endif +#undef FREAD #ifdef HAVE_FREAD_UNLOCKED # define FREAD(P, Z, N, S) fread_unlocked (P, Z, N, S) #else # define FREAD(P, Z, N, S) fread (P, Z, N, S) #endif +#undef FWRITE #ifdef HAVE_FWRITE_UNLOCKED # define FWRITE(P, Z, N, S) fwrite_unlocked (P, Z, N, S) #else # define FWRITE(P, Z, N, S) fwrite (P, Z, N, S) #endif -#ifdef HAVE_CLEARERR_UNLOCKED -# define CLEARERR(S) clearerr_unlocked (S) +#undef GETC +#ifdef HAVE_GETC_UNLOCKED +# define GETC(S) getc_unlocked (S) #else -# define CLEARERR(S) clearerr (S) +# define GETC(S) getc (S) #endif -#ifdef HAVE_FEOF_UNLOCKED -# define FEOF(S) feof_unlocked (S) +#undef GETCHAR +#ifdef HAVE_GETCHAR_UNLOCKED +# define GETCHAR(S) getchar_unlocked (S) #else -# define FEOF(S) feof (S) +# define GETCHAR(S) getchar (S) #endif -#ifdef HAVE_FERROR_UNLOCKED -# define FERROR(S) ferror_unlocked (S) +#undef PUTC +#ifdef HAVE_PUTC_UNLOCKED +# define PUTC(C, S) putc_unlocked (C, S) #else -# define FERROR(S) ferror (S) +# define PUTC(C, S) putc (C, S) #endif +#undef PUTCHAR +#ifdef HAVE_PUTCHAR_UNLOCKED +# define PUTCHAR(C) putchar_unlocked (C) +#else +# define PUTCHAR(C) putchar (C) +#endif |