case 'f':
/* make sure they didn't ask for two types of lists */
if (part != 0) {
- error_msg_and_die("only one type of list may be specified");
+ error_msg_and_die("only one type of list may be specified\n");
}
part = (char)opt;
decompose_list(optarg);
}
if (supress_non_delimited_lines && part != 'f') {
- error_msg_and_die("suppressing non-delimited lines makes sense
- only when operating on fields\n");
+ error_msg_and_die("suppressing non-delimited lines makes sense"
+ " only when operating on fields\n");
+
}
if (delim != '\t' && part != 'f') {
if (create == FALSE && errno == ENOENT)
return EXIT_SUCCESS;
else {
- error_msg_and_die("%s", strerror(errno));
+ perror_msg_and_die("%s", *argv);
}
}
close(fd);
if (utime(*argv, NULL)) {
- error_msg_and_die("%s", strerror(errno));
+ perror_msg_and_die("%s", *argv);
}
argc--;
argv++;
case 'f':
/* make sure they didn't ask for two types of lists */
if (part != 0) {
- error_msg_and_die("only one type of list may be specified");
+ error_msg_and_die("only one type of list may be specified\n");
}
part = (char)opt;
decompose_list(optarg);
}
if (supress_non_delimited_lines && part != 'f') {
- error_msg_and_die("suppressing non-delimited lines makes sense
- only when operating on fields\n");
+ error_msg_and_die("suppressing non-delimited lines makes sense"
+ " only when operating on fields\n");
+
}
if (delim != '\t' && part != 'f') {
module_names = xmalloc(bufsize = 256);
deps = xmalloc(bufsize);
if (query_module(NULL, QM_MODULES, module_names, bufsize, &nmod)) {
- error_msg_and_die("QM_MODULES: %s\n", strerror(errno));
+ perror_msg_and_die("QM_MODULES");
}
printf("Module Size Used by\n");
continue;
}
/* else choke */
- error_msg_and_die("module %s: QM_INFO: %s\n", mn, strerror(errno));
+ perror_msg_and_die("module %s: QM_INFO", mn);
}
while (query_module(mn, QM_REFS, deps, bufsize, &count)) {
if (errno == ENOENT) {
continue;
}
if (errno != ENOSPC) {
- error_msg_and_die("module %s: QM_REFS: %s", mn, strerror(errno));
+ error_msg_and_die("module %s: QM_REFS", mn);
}
deps = xrealloc(deps, bufsize = count);
}
close(fd);
return 0;
}
- error_msg_and_die("/proc/modules: %s\n", strerror(errno));
+ perror_msg_and_die("/proc/modules");
return 1;
}
module_names = xmalloc(bufsize = 256);
deps = xmalloc(bufsize);
if (query_module(NULL, QM_MODULES, module_names, bufsize, &nmod)) {
- error_msg_and_die("QM_MODULES: %s\n", strerror(errno));
+ perror_msg_and_die("QM_MODULES");
}
printf("Module Size Used by\n");
continue;
}
/* else choke */
- error_msg_and_die("module %s: QM_INFO: %s\n", mn, strerror(errno));
+ perror_msg_and_die("module %s: QM_INFO", mn);
}
while (query_module(mn, QM_REFS, deps, bufsize, &count)) {
if (errno == ENOENT) {
continue;
}
if (errno != ENOSPC) {
- error_msg_and_die("module %s: QM_REFS: %s", mn, strerror(errno));
+ error_msg_and_die("module %s: QM_REFS", mn);
}
deps = xrealloc(deps, bufsize = count);
}
close(fd);
return 0;
}
- error_msg_and_die("/proc/modules: %s\n", strerror(errno));
+ perror_msg_and_die("/proc/modules");
return 1;
}
*/
if (do_continue) {
if (fstat(fileno(output), &sbuf) < 0)
- error_msg_and_die("fstat()");
+ perror_msg_and_die("fstat()");
if (sbuf.st_size > 0)
beg_range = sbuf.st_size;
else
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: wget.c,v 1.13 2000/12/09 16:55:35 andersen Exp $
+ * $Id: wget.c,v 1.14 2000/12/18 03:08:29 kraai Exp $
*/
if (create == FALSE && errno == ENOENT)
return EXIT_SUCCESS;
else {
- error_msg_and_die("%s", strerror(errno));
+ perror_msg_and_die("%s", *argv);
}
}
close(fd);
if (utime(*argv, NULL)) {
- error_msg_and_die("%s", strerror(errno));
+ perror_msg_and_die("%s", *argv);
}
argc--;
argv++;
char *t;
if (s == NULL)
- error_msg_and_die("xstrndup bug");
+ error_msg_and_die("xstrndup bug\n");
t = xmalloc(n+1);
strncpy(t,s,n);
*/
if (do_continue) {
if (fstat(fileno(output), &sbuf) < 0)
- error_msg_and_die("fstat()");
+ perror_msg_and_die("fstat()");
if (sbuf.st_size > 0)
beg_range = sbuf.st_size;
else
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: wget.c,v 1.13 2000/12/09 16:55:35 andersen Exp $
+ * $Id: wget.c,v 1.14 2000/12/18 03:08:29 kraai Exp $
*/