so we don't get redefinition warnings about getc, etc.
Revert back to using lower case _unlocked wrapper names.
/* GNU's uptime.
- Copyright (C) 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
+ Copyright (C) 92, 93, 94, 95, 96, 1997, 1998 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
#include <config.h>
#include <getopt.h>
-#include "system.h"
#include "error.h"
#include "readutmp.h"
+#include "system.h"
/* The name this program was run with. */
char *program_name;
res = sscanf (buf, "%lf", &upsecs);
if (res == 1)
uptime = (time_t) upsecs;
- FCLOSE (fp);
+ fclose (fp);
}
#endif /* HAVE_PROC_UPTIME */
/* Loop through all the utmp entries we just read and count up the valid
#endif
if (loads == -1)
- PUTCHAR ('\n');
+ putchar ('\n');
else
{
if (loads > 0)
if (loads > 2)
printf (", %.2f", avg[2]);
if (loads > 0)
- PUTCHAR ('\n');
+ putchar ('\n');
}
}
/* GNU's users.
- Copyright (C) 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
+ Copyright (C) 92, 93, 94, 95, 96, 1997, 1998 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
#include <config.h>
#include <getopt.h>
-#include "system.h"
#include "error.h"
#include "readutmp.h"
+#include "system.h"
/* The name this program was run with. */
char *program_name;
int c;
fputs (u[i], stdout);
c = (i < n_entries - 1 ? ' ' : '\n');
- PUTCHAR (c);
+ putchar (c);
}
for (i = 0; i < n_entries; i++)
/* GNU's who.
- Copyright (C) 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
+ Copyright (C) 92, 93, 94, 95, 96, 1997, 1998 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
#include <config.h>
#include <getopt.h>
-#include "system.h"
#include "error.h"
#include "readutmp.h"
+#include "system.h"
#ifndef MAXHOSTNAMELEN
# define MAXHOSTNAMELEN 64
}
#endif
- PUTCHAR ('\n');
+ putchar ('\n');
}
/* Print the username of each valid entry and the number of valid entries