Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
This commit is contained in:
@@ -8,14 +8,6 @@
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <signal.h> // For FEATURE_DD_SIGNAL_HANDLING
|
||||
#include "busybox.h"
|
||||
|
||||
static const struct suffix_mult dd_suffixes[] = {
|
||||
@@ -110,7 +102,7 @@ int dd_main(int argc, char **argv)
|
||||
else obuf = ibuf;
|
||||
|
||||
if (infile != NULL) {
|
||||
ifd = bb_xopen(infile, O_RDONLY);
|
||||
ifd = xopen(infile, O_RDONLY);
|
||||
} else {
|
||||
ifd = STDIN_FILENO;
|
||||
infile = bb_msg_standard_input;
|
||||
@@ -123,7 +115,7 @@ int dd_main(int argc, char **argv)
|
||||
oflag |= O_TRUNC;
|
||||
}
|
||||
|
||||
ofd = bb_xopen3(outfile, oflag, 0666);
|
||||
ofd = xopen3(outfile, oflag, 0666);
|
||||
|
||||
if (seek && trunc_flag) {
|
||||
if (ftruncate(ofd, seek * obs) < 0) {
|
||||
|
Reference in New Issue
Block a user