diff options
author | Manuel Novoa III | 2003-03-19 09:13:01 +0000 |
---|---|---|
committer | Manuel Novoa III | 2003-03-19 09:13:01 +0000 |
commit | cad5364599eb5062d59e0c397ed638ddd61a8d5d (patch) | |
tree | a318d0f03aa076c74b576ea45dc543a5669e8e91 /console-tools/openvt.c | |
parent | e01f9662a5bd5d91be4f6b3941b57fff73cd5af1 (diff) | |
download | busybox-cad5364599eb5062d59e0c397ed638ddd61a8d5d.zip busybox-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.gz |
Major coreutils update.
Diffstat (limited to 'console-tools/openvt.c')
-rw-r--r-- | console-tools/openvt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/console-tools/openvt.c b/console-tools/openvt.c index 77c8975..5195136 100644 --- a/console-tools/openvt.c +++ b/console-tools/openvt.c @@ -43,16 +43,16 @@ int openvt_main(int argc, char **argv) char * cmd_args = NULL; if (argc < 3) - show_usage(); + bb_show_usage(); if (!isdigit(argv[1][0])) - show_usage(); + bb_show_usage(); vtno = (int) atol(argv[1]); /* if (vtno <= 0 || vtno > 63) */ if (vtno <= 0 || vtno > 12) - error_msg_and_die("Illegal vt number (%d)", vtno); + bb_error_msg_and_die("Illegal vt number (%d)", vtno); sprintf(vtname, VTNAME, vtno); @@ -69,13 +69,13 @@ int openvt_main(int argc, char **argv) if (setsid() < 0) { #endif - perror_msg_and_die("Unable to set new session"); + bb_perror_msg_and_die("Unable to set new session"); } close(0); /* so that new vt becomes stdin */ /* and grab new one */ if ((fd = open(vtname, O_RDWR)) == -1) - perror_msg_and_die("could not open %s", vtname); + bb_perror_msg_and_die("could not open %s", vtname); /* Reassign stdout and sterr */ close(1); |