Back to index

glibc  2.9
Functions
init-first.c File Reference
#include <unistd.h>

Go to the source code of this file.

Functions

void __libc_init (int, char **, char **)
void __libc_global_ctors (void)
static void init (int *data)
void __libc_init_first (int argc __attribute__((unused)),...)

Function Documentation

void __libc_global_ctors ( void  )

Definition at line 25 of file soinit.c.

{
  /* Call constructor functions.  */
  run_hooks (__CTOR_LIST__);
}
void __libc_init ( int  ,
char **  ,
char **   
)
void __libc_init_first ( int argc   __attribute__(unused),
  ... 
)

Definition at line 59 of file init-first.c.

{
#ifndef SHARED
  init (&argc);
#endif
}
static void init ( int data) [static]

Definition at line 27 of file init-first.c.

{
  int argc = *data;
  char **argv = (void *) (data + 1);
  char **envp = &argv[argc + 1];

  __environ = envp;
  __libc_init (argc, argv, envp);
}

Here is the call graph for this function: