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.
This commit is contained in:
Mark Murray 2002-07-03 14:42:39 +00:00
parent 8523e9a677
commit ccece3d626
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99354
2 changed files with 54 additions and 52 deletions

View File

@ -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

View File

@ -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