~ubuntu-branches/ubuntu/natty/eglibc/natty-security

« back to all changes in this revision

Viewing changes to elf/nodlopen.c

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno
  • Date: 2009-05-05 09:54:14 UTC
  • Revision ID: james.westby@ubuntu.com-20090505095414-c45qsg9ixjheohru
ImportĀ upstreamĀ versionĀ 2.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <dlfcn.h>
 
2
#include <stdio.h>
 
3
 
 
4
int
 
5
main (void)
 
6
{
 
7
  if (dlopen ("nodlopenmod.so", RTLD_LAZY) != NULL)
 
8
    {
 
9
      puts ("opening \"nodlopenmod.so\" succeeded, FAIL");
 
10
      return 1;
 
11
    }
 
12
 
 
13
  puts ("opening \"nodlopenmod.so\" failed, OK");
 
14
  return 0;
 
15
}