Changes between Version 84 and Version 85 of Projects/OpenLDAP


Ignore:
Timestamp:
07/08/12 06:11:54 (12 years ago)
Author:
C Rempel
Comment:

/* network-demos/ldap/init.c */

Legend:

Unmodified
Added
Removed
Modified
  • Projects/OpenLDAP

    v84 v85  
    243243==  network-demos/ldap/init.c  ==
    244244
    245 Because invoking executables on a linux system are basically calls to main, we add a call to main in the init.c  To call main from rtems_task_Init, I had to do the following:
     245Because invoking executables on a linux system are basically calls to main, we add a call to main in the init.c  To call main, the following were necessary:
     246# get rtems-addon-packages/openldap/servers/slapd/main.c to repeat back the arguments passed it
     247# form strings with the arguments to pass
     248# point argv to each of the arguments
    246249
    247250 + #include <main.h>
     
    249252 ...
    250253 + char **argv;
    251  + *argv[0]="-d";
    252  + *argv[0]="1";
    253  + *argv[0]="-d";
    254  + *argv[0]="1";
    255 
    256  + main(2, argv);
     254 + *argv0="-d";
     255 + *argv1="1";
     256 + *argv2="-F/etc/openldap";
     257 + *argv3="";
     258 +
     259 + main(, argv);
    257260 ...
    258261==  network-demos/ldap/Makefile  ==