Typedefs | Functions | Variables

/home/bifh6/cs2009q3-i386/work/applauncherd-0.30.5+rq730927+0m6/src/launcher/launcher.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <dlfcn.h>
#include <string.h>
#include "preload.h"

Go to the source code of this file.

Typedefs

typedef int(* entry_t )(int, char **)

Functions

static void loadLibraries (const char *const libs[], unsigned int numLibs)
 Load libraries from the given array.
static int invokeLauncherLib (int argc, char **argv)
int main (int argc, char **argv)
 Entry point.

Variables

int g_debugPrinting

Typedef Documentation

typedef int(* entry_t)(int, char **)

Definition at line 27 of file launcher.c.


Function Documentation

static int invokeLauncherLib ( int  argc,
char **  argv 
) [static]

Invoke launcher daemon library and run main()

Note that argv must have enough dummy space so that the argument vector can be altered afterwards.

See e.g. Booster::renameProcess(int parentArgc, char** parentArgv) in launcherlib/booster.cpp

Definition at line 88 of file launcher.c.

References error.

static void loadLibraries ( const char *const   libs[],
unsigned int  numLibs 
) [static]

Load libraries from the given array.

Definition at line 32 of file launcher.c.

References g_debugPrinting.

int main ( int  argc,
char **  argv 
)

Entry point.

Definition at line 127 of file launcher.c.

References g_debugPrinting, gLibs, invokeLauncherLib(), and loadLibraries().


Variable Documentation

Definition at line 29 of file launcher.c.