Displaying 1 result from an estimated 1 matches for "stdout_lock".
2010 Nov 20
1
[PATCH 1/2] cat cleanup ugly ifdefery
...BC__
-#include <err.h>
-#endif
#include <errno.h>
#include <fcntl.h>
-#ifndef __KLIBC__
-#include <locale.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -88,11 +75,6 @@ int main(int argc, char *argv[])
int ch;
struct flock stdout_lock;
-#ifndef __KLIBC__
- setprogname(argv[0]);
- (void)setlocale(LC_ALL, "");
-#endif
-
while ((ch = getopt(argc, argv, "beflnstuv")) != -1)
switch (ch) {
case 'b':
@@ -117,9 +99,7 @@ int main(int argc, char *argv[])
tflag = vflag = 1; /* -t implies -v */...