summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
68c295a)
Merge of xfs-cmds-melb:slinx:20143a by kenmcd.
- * Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
+ * Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
#include <unistd.h>
#define MAXNAMELEN 256
#include <unistd.h>
#define MAXNAMELEN 256
typedef unsigned int uint_t;
typedef unsigned int uint_t;
/*
* Loop over directory sizes:
/*
* Loop over directory sizes:
static uint_t addval;
static uint_t dirchars;
static uint_t addval;
static uint_t dirchars;
static uint_t firstsize;
static uint_t lastsize;
static uint_t minchars;
static uint_t firstsize;
static uint_t lastsize;
static uint_t minchars;
nchars = (uint_t)atoi(optarg);
break;
case 'd':
nchars = (uint_t)atoi(optarg);
break;
case 'd':
break;
case 'f':
firstsize = (uint_t)atoi(optarg);
break;
case 'f':
firstsize = (uint_t)atoi(optarg);
}
if (stats == 0)
stats = 1;
}
if (stats == 0)
stats = 1;
- if (!dirname)
- dirname = ".";
+ if (!directory)
+ directory = ".";
- if (mkdir(dirname, 0777) < 0 && errno != EEXIST) {
- perror(dirname);
+ if (mkdir(directory, 0777) < 0 && errno != EEXIST) {
+ perror(directory);
- if (chdir(dirname) < 0) {
- perror(dirname);
+ if (chdir(directory) < 0) {
+ perror(directory);