version 1.29, 2009/11/12 07:27:31 |
version 1.30, 2015/02/08 23:40:34 |
|
|
while ((ch = getopt(argc, argv, "af:nqtvw")) != -1) { |
while ((ch = getopt(argc, argv, "af:nqtvw")) != -1) { |
switch (ch) { |
switch (ch) { |
case 'a': |
case 'a': |
aflag++; |
aflag = 1; |
break; |
break; |
case 'w': |
case 'w': |
/* compat */ |
/* compat */ |
break; |
break; |
case 'v': |
case 'v': |
vflag++; |
vflag = 1; |
break; |
break; |
case 'n': |
case 'n': |
sep = 0; |
sep = 0; |
|
|
argv += optind; |
argv += optind; |
|
|
if (argc == 0 && tflag == 0) |
if (argc == 0 && tflag == 0) |
aflag++; |
aflag = 1; |
|
|
if ((fd = open(file, O_RDWR)) == -1) |
if ((fd = open(file, O_RDWR)) == -1) |
if ((fd = open(file, O_RDONLY)) == -1) |
if ((fd = open(file, O_RDONLY)) == -1) |