From 8193034b1d0e3760dadb06b891a22cd4631c675a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 10 Mar 1998 18:04:16 +0000 Subject: Update. 1998-03-10 17:54 Ulrich Drepper * libc.map: Add _dl_debug_message. * elf/dl-misc.c: Make _dl_debug_message a function. Print the PID before every line. * elf/fini.c: Correctly use new _dl_debug_message function. * elf/init.c: Likewise. * elf/dl-lookup.c: Likewise. * sysdeps/unix/sysv/linux/libc-start.c: Likewise. * elf/dl-load.c: Likewise. Add more debugging prints. * elf/dl-reloc.c: Likewise. * elf/dl-version.c: Likewise. * elf/dl-support.c: Add variables for debugging. * elf/rtld.c: Likewise. Recognize new debug options. * elf/link.h: Declare new variables. * elf/dl-deps.c (_dl_map_object_deps): Little optimizations. * sysdeps/unix/sysv/linux/sys/quota.h: Extract information from kernel headers. Patch by a sun . 1998-03-11 00:16 Tim Waugh * posix/wordexp-test.c (command_line_test): New function to allow testing of specific cases from the command-line. 1998-03-10 Ulrich Drepper * elf/dl-init.c (_dl_init_next): Print nicer messages. * elf/dl-fini.c (_dl_fini): Likewise. * sysdeps/unix/sysv/linux/libc-start.c (__libc_start_main): Likewise. --- posix/wordexp-test.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'posix') diff --git a/posix/wordexp-test.c b/posix/wordexp-test.c index 75cfe5f360..2a94caa367 100644 --- a/posix/wordexp-test.c +++ b/posix/wordexp-test.c @@ -89,8 +89,19 @@ struct test_case_struct static int testit (struct test_case_struct *tc); +void +command_line_test (const char *words) +{ + wordexp_t we; + int i; + int retval = wordexp (words, &we, 0); + printf ("wordexp returned %d\n", retval); + for (i = 0; i < we.we_wordc; i++) + printf ("we_wordv[%d] = \"%s\"\n", i, we.we_wordv[i]); +} + int -main (int argc, char * argv[]) +main (int argc, char *argv[]) { struct passwd *pw; int test; @@ -101,6 +112,12 @@ main (int argc, char * argv[]) if (testit (&test_case[test])) ++fail; + if (argc > 1) + { + command_line_test (argv[1]); + return 0; + } + pw = getpwnam ("root"); if (pw != NULL) { -- cgit v1.2.3