diff options
author | Roland McGrath <roland@gnu.org> | 1995-10-05 09:00:06 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-10-05 09:00:06 +0000 |
commit | 6a76c115150318eae5d02eca76f2fc03be7bd029 (patch) | |
tree | 70a777331f79484d2d72583dfda40f5125864355 /sysdeps/generic/dl-sysdep.c | |
parent | 57aefafe56f066b56031187ea26e49df076f2ac9 (diff) | |
download | glibc-6a76c115150318eae5d02eca76f2fc03be7bd029.zip glibc-6a76c115150318eae5d02eca76f2fc03be7bd029.tar.gz glibc-6a76c115150318eae5d02eca76f2fc03be7bd029.tar.bz2 |
Thu Oct 5 00:59:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* elf/rtld.c (dl_main): Grok --list flag.
* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Ignore -- args.
* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_message): New function.
* sysdeps/generic/dl-sysdep.c (_dl_sysdep_message): New function.
* elf/link.h (_dl_sysdep_message): Declare it.
Diffstat (limited to 'sysdeps/generic/dl-sysdep.c')
-rw-r--r-- | sysdeps/generic/dl-sysdep.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sysdeps/generic/dl-sysdep.c b/sysdeps/generic/dl-sysdep.c index 49eaad6..b7b895f 100644 --- a/sysdeps/generic/dl-sysdep.c +++ b/sysdeps/generic/dl-sysdep.c @@ -104,3 +104,19 @@ _dl_sysdep_fatal (const char *msg, ...) _exit (127); } + + +void +_dl_sysdep_message (const char *msg, ...) +{ + va_list ap; + + va_start (ap, msg); + do + { + size_t len = strlen (msg); + write (STDOUT_FILENO, msg, len); + msg = va_arg (ap, const char *); + } while (msg); + va_end (ap); +} |