style(9).
This commit is contained in:
parent
2ff991dc64
commit
67bf019b10
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238652
@ -58,11 +58,11 @@ __FBSDID("$FreeBSD$");
|
||||
#include <err.h>
|
||||
#include <fcntl.h>
|
||||
#include <locale.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <stddef.h>
|
||||
|
||||
static int bflag, eflag, nflag, sflag, tflag, vflag;
|
||||
static int rval;
|
||||
@ -77,15 +77,19 @@ static void raw_cat(int);
|
||||
static int udom_open(const char *path, int flags);
|
||||
#endif
|
||||
|
||||
/* Memory strategy threshold, in pages: if physmem is larger then this, use a
|
||||
* large buffer */
|
||||
/*
|
||||
* Memory strategy threshold, in pages: if physmem is larger than this,
|
||||
* use a large buffer.
|
||||
*/
|
||||
#define PHYSPAGES_THRESHOLD (32 * 1024)
|
||||
|
||||
/* Maximum buffer size in bytes - do not allow it to grow larger than this */
|
||||
/* Maximum buffer size in bytes - do not allow it to grow larger than this. */
|
||||
#define BUFSIZE_MAX (2 * 1024 * 1024)
|
||||
|
||||
/* Small (default) buffer size in bytes. It's inefficient for this to be
|
||||
* smaller than MAXPHYS */
|
||||
/*
|
||||
* Small (default) buffer size in bytes. It's inefficient for this to be
|
||||
* smaller than MAXPHYS.
|
||||
*/
|
||||
#define BUFSIZE_SMALL (MAXPHYS)
|
||||
|
||||
int
|
||||
@ -144,13 +148,12 @@ usage(void)
|
||||
static void
|
||||
scanfiles(char *argv[], int cooked)
|
||||
{
|
||||
int i = 0;
|
||||
int fd, i;
|
||||
char *path;
|
||||
FILE *fp;
|
||||
|
||||
i = 0;
|
||||
while ((path = argv[i]) != NULL || i == 0) {
|
||||
int fd;
|
||||
|
||||
if (path == NULL || strcmp(path, "-") == 0) {
|
||||
filename = "stdin";
|
||||
fd = STDIN_FILENO;
|
||||
|
Loading…
Reference in New Issue
Block a user