Skip to content

Commit 664c0d3

Browse files
pevikmetan-ucw
authored andcommitted
lib: Remove -C option and self_exec.c
It was added only for UCLINUX. These unused functions were removed: void maybe_run_child(void (*child)(), const char *fmt, ...); int self_exec(const char *argv0, const char *fmt, ...); Signed-off-by: Petr Vorel <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]>
1 parent 7cdb2be commit 664c0d3

File tree

3 files changed

+0
-240
lines changed

3 files changed

+0
-240
lines changed

include/old/test.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,6 @@ extern int tst_count;
167167
/* lib/tst_sig.c */
168168
void tst_sig(int fork_flag, void (*handler)(), void (*cleanup)());
169169

170-
/* lib/self_exec.c */
171-
void maybe_run_child(void (*child)(), const char *fmt, ...);
172-
int self_exec(const char *argv0, const char *fmt, ...);
173-
174170
/* lib/tst_mkfs.c
175171
*
176172
* @dev: path to a device

lib/self_exec.c

Lines changed: 0 additions & 225 deletions
This file was deleted.

lib/tst_test.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,6 @@ static struct option {
520520
{"I:", "-I x Execute test for n seconds"},
521521
{"D", "-D Prints debug information"},
522522
{"V", "-V Prints LTP version"},
523-
{"C:", "-C ARG Run child process with ARG arguments (used internally)"},
524523
};
525524

526525
static void print_help(void)
@@ -660,11 +659,6 @@ static void parse_topt(unsigned int topts_len, int opt, char *optarg)
660659
*(toptions[i].arg) = optarg ? optarg : "";
661660
}
662661

663-
/* see self_exec.c */
664-
#ifdef UCLINUX
665-
extern char *child_args;
666-
#endif
667-
668662
static void parse_opts(int argc, char *argv[])
669663
{
670664
unsigned int i, topts_len = count_options();
@@ -708,11 +702,6 @@ static void parse_opts(int argc, char *argv[])
708702
fprintf(stderr, "LTP version: " LTP_VERSION "\n");
709703
exit(0);
710704
break;
711-
case 'C':
712-
#ifdef UCLINUX
713-
child_args = optarg;
714-
#endif
715-
break;
716705
default:
717706
parse_topt(topts_len, opt, optarg);
718707
}

0 commit comments

Comments
 (0)