Changes between Version 84 and Version 85 of Projects/OpenLDAP
- Timestamp:
- 07/08/12 06:11:54 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Projects/OpenLDAP
v84 v85 243 243 == network-demos/ldap/init.c == 244 244 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: 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, 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 246 249 247 250 + #include <main.h> … … 249 252 ... 250 253 + 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); 257 260 ... 258 261 == network-demos/ldap/Makefile ==