mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 09:00:28 +00:00
truncate: style(9) some parts
This commit is contained in:
parent
4c2b439617
commit
dde27dbc9b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336139
|
@ -46,23 +46,23 @@ static const char rcsid[] =
|
||||||
|
|
||||||
static void usage(void);
|
static void usage(void);
|
||||||
|
|
||||||
static int no_create;
|
|
||||||
static int do_relative;
|
|
||||||
static int do_refer;
|
|
||||||
static int got_size;
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
struct stat sb;
|
struct stat sb;
|
||||||
mode_t omode;
|
mode_t omode;
|
||||||
off_t oflow, rsize, sz, tsize;
|
off_t oflow, rsize, sz, tsize;
|
||||||
uint64_t usz;
|
uint64_t usz;
|
||||||
int ch, error, fd, oflags;
|
int ch, error, fd, oflags;
|
||||||
char *fname, *rname;
|
int no_create;
|
||||||
|
int do_relative;
|
||||||
|
int do_refer;
|
||||||
|
int got_size;
|
||||||
|
char *fname, *rname;
|
||||||
|
|
||||||
fd = -1;
|
fd = -1;
|
||||||
rsize = tsize = sz = 0;
|
rsize = tsize = sz = 0;
|
||||||
|
no_create = do_relative = do_refer = got_size = 0;
|
||||||
error = 0;
|
error = 0;
|
||||||
rname = NULL;
|
rname = NULL;
|
||||||
while ((ch = getopt(argc, argv, "cr:s:")) != -1)
|
while ((ch = getopt(argc, argv, "cr:s:")) != -1)
|
||||||
|
|
Loading…
Reference in a new issue