version 1.1.1.2, 2012/05/29 12:26:49
|
version 1.1.1.3, 2013/07/22 10:46:11
|
Line 1
|
Line 1
|
/* |
/* |
* Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com> | * Copyright (c) 2010, 2012-2013 Todd C. Miller <Todd.Miller@courtesan.com> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 16
|
Line 16
|
|
|
#include <config.h> |
#include <config.h> |
|
|
|
#ifndef HAVE_DLOPEN |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
|
|
#include <stdio.h> |
#include <stdio.h> |
Line 51
|
Line 53
|
void * |
void * |
sudo_dlopen(const char *path, int mode) |
sudo_dlopen(const char *path, int mode) |
{ |
{ |
int flags = DYNAMIC_PATH; | int flags = DYNAMIC_PATH | BIND_VERBOSE; |
|
|
if (mode == 0) |
if (mode == 0) |
mode = RTLD_LAZY; /* default behavior */ |
mode = RTLD_LAZY; /* default behavior */ |
Line 150 sudo_dlerror(void)
|
Line 152 sudo_dlerror(void)
|
{ |
{ |
return strerror(errno); |
return strerror(errno); |
} |
} |
|
|
#endif /* HAVE_SHL_LOAD */ |
#endif /* HAVE_SHL_LOAD */ |
|
#endif /* HAVE_DLOPEN */ |