#ifdef _LARGEFILE64_SOURCE
# ifdef HAVE_FOPEN64
-# define fopen_for_input fopen64
-# define fopen_for_output fopen64
+# define fopen_stream fopen64
# else
-# define fopen_for_input fopen
-# define fopen_for_output fopen
+# define fopen_stream fopen
# endif
# define struct_stat struct stat64
# define stat_file stat64
# define struct_rlimit struct rlimit64
# define set_rlimit setrlimit64
#else
-# define fopen_for_input fopen
-# define fopen_for_output fopen
+# define fopen_stream fopen
# define struct_stat struct stat
# define stat_file stat
# define struct_dirent struct dirent
char buffer[PATH_MAX + 80];
xsprintf(filename, "/proc/%u/maps", tcp->pid);
- fp = fopen_for_input(filename, "r");
+ fp = fopen_stream(filename, "r");
if (!fp) {
perror_msg("fopen: %s", filename);
return;
FILE *fp;
swap_uid();
- fp = fopen_for_output(path, "w");
+ fp = fopen_stream(path, "w");
if (!fp)
perror_msg_and_die("Can't fopen '%s'", path);
swap_uid();