1999-04-16 01:35:26 +00:00
|
|
|
/* This program is linked against SOM shared libraries, which the loader
|
|
|
|
automatically loads along with the program itself).
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
1999-06-28 16:06:02 +00:00
|
|
|
#if defined(__cplusplus) || defined(__STDCPP__)
|
|
|
|
extern "C" int solib_main (int arg);
|
|
|
|
#else
|
|
|
|
int solib_main (int arg);
|
|
|
|
#endif
|
1999-04-16 01:35:26 +00:00
|
|
|
|
1999-06-28 16:06:02 +00:00
|
|
|
int main ()
|
1999-04-16 01:35:26 +00:00
|
|
|
{
|
|
|
|
int result;
|
|
|
|
|
|
|
|
/* Call a shlib function. */
|
|
|
|
result = solib_main (100);
|
|
|
|
|
|
|
|
/* Call it again. */
|
|
|
|
result = solib_main (result);
|
1999-06-28 16:06:02 +00:00
|
|
|
return 0;
|
1999-04-16 01:35:26 +00:00
|
|
|
}
|