diff options
author | Mark Murray <markm@FreeBSD.org> | 2002-07-03 14:42:39 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 2002-07-03 14:42:39 +0000 |
commit | ccece3d626da41772d501aa1335198db6cfa1346 (patch) | |
tree | 6521c615b99170bbfa6794a3f6e54c7f981335c9 /lib/csu | |
parent | 8523e9a677516b947d5c85048e53b70d72a3b2b2 (diff) | |
download | src-ccece3d626da41772d501aa1335198db6cfa1346.tar.gz src-ccece3d626da41772d501aa1335198db6cfa1346.zip |
Whitespace diffs only; this brings this file into the same whitespace
convention as src/lib/csu/*/crt1.c.
This will make the follow up diffs easier to see and extract.
Notes
Notes:
svn path=/head/; revision=99354
Diffstat (limited to 'lib/csu')
-rw-r--r-- | lib/csu/amd64/crt1.c | 53 | ||||
-rw-r--r-- | lib/csu/i386-elf/crt1.c | 53 |
2 files changed, 54 insertions, 52 deletions
diff --git a/lib/csu/amd64/crt1.c b/lib/csu/amd64/crt1.c index 5dcd90e7cce7..5df6e11ab4bd 100644 --- a/lib/csu/amd64/crt1.c +++ b/lib/csu/amd64/crt1.c @@ -29,6 +29,7 @@ #include <stddef.h> #include <stdlib.h> + #include "libc_private.h" #include "crtbrand.c" @@ -50,9 +51,9 @@ extern int _DYNAMIC; #ifdef __i386__ #define get_rtld_cleanup() \ - ({ fptr __value; \ - __asm__("movl %%edx,%0" : "=rm"(__value)); \ - __value; }) + ({ fptr __value; \ + __asm__("movl %%edx,%0" : "=rm"(__value)); \ + __value; }) #else #error "This file only supports the i386 architecture" #endif @@ -63,36 +64,36 @@ const char *__progname = ""; void _start(char *arguments, ...) { - fptr rtld_cleanup; - int argc; - char **argv; - char **env; - const char *s; + fptr rtld_cleanup; + int argc; + char **argv; + char **env; + const char *s; - rtld_cleanup = get_rtld_cleanup(); - argv = &arguments; - argc = * (int *) (argv - 1); - env = argv + argc + 1; - environ = env; - if (argc > 0 && argv[0] != NULL) { - __progname = argv[0]; - for (s = __progname; *s != '\0'; s++) - if (*s == '/') - __progname = s + 1; - } + rtld_cleanup = get_rtld_cleanup(); + argv = &arguments; + argc = * (int *) (argv - 1); + env = argv + argc + 1; + environ = env; + if (argc > 0 && argv[0] != NULL) { + __progname = argv[0]; + for (s = __progname; *s != '\0'; s++) + if (*s == '/') + __progname = s + 1; + } - if (&_DYNAMIC != NULL) - atexit(rtld_cleanup); + if (&_DYNAMIC != NULL) + atexit(rtld_cleanup); #ifdef GCRT - atexit(_mcleanup); + atexit(_mcleanup); #endif - atexit(_fini); + atexit(_fini); #ifdef GCRT - monstartup(&eprol, &etext); + monstartup(&eprol, &etext); #endif - _init(); - exit( main(argc, argv, env) ); + _init(); + exit( main(argc, argv, env) ); } #ifdef GCRT diff --git a/lib/csu/i386-elf/crt1.c b/lib/csu/i386-elf/crt1.c index 5dcd90e7cce7..5df6e11ab4bd 100644 --- a/lib/csu/i386-elf/crt1.c +++ b/lib/csu/i386-elf/crt1.c @@ -29,6 +29,7 @@ #include <stddef.h> #include <stdlib.h> + #include "libc_private.h" #include "crtbrand.c" @@ -50,9 +51,9 @@ extern int _DYNAMIC; #ifdef __i386__ #define get_rtld_cleanup() \ - ({ fptr __value; \ - __asm__("movl %%edx,%0" : "=rm"(__value)); \ - __value; }) + ({ fptr __value; \ + __asm__("movl %%edx,%0" : "=rm"(__value)); \ + __value; }) #else #error "This file only supports the i386 architecture" #endif @@ -63,36 +64,36 @@ const char *__progname = ""; void _start(char *arguments, ...) { - fptr rtld_cleanup; - int argc; - char **argv; - char **env; - const char *s; + fptr rtld_cleanup; + int argc; + char **argv; + char **env; + const char *s; - rtld_cleanup = get_rtld_cleanup(); - argv = &arguments; - argc = * (int *) (argv - 1); - env = argv + argc + 1; - environ = env; - if (argc > 0 && argv[0] != NULL) { - __progname = argv[0]; - for (s = __progname; *s != '\0'; s++) - if (*s == '/') - __progname = s + 1; - } + rtld_cleanup = get_rtld_cleanup(); + argv = &arguments; + argc = * (int *) (argv - 1); + env = argv + argc + 1; + environ = env; + if (argc > 0 && argv[0] != NULL) { + __progname = argv[0]; + for (s = __progname; *s != '\0'; s++) + if (*s == '/') + __progname = s + 1; + } - if (&_DYNAMIC != NULL) - atexit(rtld_cleanup); + if (&_DYNAMIC != NULL) + atexit(rtld_cleanup); #ifdef GCRT - atexit(_mcleanup); + atexit(_mcleanup); #endif - atexit(_fini); + atexit(_fini); #ifdef GCRT - monstartup(&eprol, &etext); + monstartup(&eprol, &etext); #endif - _init(); - exit( main(argc, argv, env) ); + _init(); + exit( main(argc, argv, env) ); } #ifdef GCRT |