#ifdef linux
#include <string.h>
#include <malloc.h>
+#include <getopt.h>
#endif
/*---------------------------------------------------------------------------
static void
usage(void)
{
- int i;
-
fprintf(stderr, "usage:\t%s [-c char] [-o offset] [-l length] "
"[-s sid] pathname\n", Progname);
exit(1);
dm_ssize_t rc;
char *name;
int opt;
- int i;
if (Progname = strrchr(argv[0], '/')) {
Progname++;
sufficiently big boundary.
*/
if ((bufp = memalign(4096, length)) == NULL) {
- fprintf(stderr, "malloc of %d bytes failed\n", length);
+ fprintf(stderr, "malloc of %llu bytes failed\n", length);
exit(1);
}
memset(bufp, ch, length);