This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* test_dl_iterate_phdr.c */ | |
#define _GNU_SOURCE | |
#include <stdio.h> | |
#include <link.h> | |
static int | |
test_phdr(struct dl_phdr_info *i, size_t size, void *data) { | |
printf("0x%8.8x %-30.30s 0x%8.8x %d %d %d %d 0x%8.8x\n", | |
i->dlpi_addr, i->dlpi_name, i->dlpi_phdr, i->dlpi_phnum, | |
i->dlpi_adds, i->dlpi_subs, i->dlpi_tls_modid, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* test_shl_get_r.c */ | |
#include <stdio.h> | |
#include <dl.h> | |
int main() { | |
int idx; | |
struct shl_descriptor desc; | |
for(idx = -2; shl_get_r(idx, &desc) == 0; ++ idx) { | |
printf("[%03d] %8.8x %8.8x %8.8x %8.8x %8.8x %8.8x %s\n", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* test_pstat_getdynamic.c */ | |
#include <stdio.h> | |
#include <sys/pstat.h> | |
int main() { | |
struct pst_dynamic buf; | |
if(pstat_getdynamic(&buf, sizeof(buf), 1, 0) != 1) { | |
perror("pstat_getdynamic()"); | |
return -1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* test_pstat_getvminfo.c */ | |
#include <stdio.h> | |
#include <sys/pstat.h> | |
int main() { | |
struct pst_vminfo buf; | |
if(pstat_getvminfo(&buf, sizeof(buf), 1, 0) != 1) { | |
perror("pstat_getvminfo()"); | |
return -1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* test_pstat_getprocvm.c */ | |
#include <stdio.h> | |
#include <sys/pstat.h> | |
int main() { | |
struct pst_vm_status buf; | |
if(pstat_getprocvm(&buf, sizeof(buf), 0, 0) != 1) { | |
perror("pstat_getprocvm()"); | |
return -1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* test_pstat_getprocessor.c */ | |
#include <stdio.h> | |
#include <sys/pstat.h> | |
int main() { | |
int i; | |
for(i = 0; i < PST_MAX_PROCS; ++ i) { | |
struct pst_processor buf; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* test_pstat_getproc.c */ | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <sys/pstat.h> | |
int main() { | |
struct pst_status buf; | |
if(pstat_getproc(&buf, sizeof(buf), 0, getpid()) != 1) { | |
perror("pstat_getproc()"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# enctest.sh | |
openssl_bin=../apps/openssl | |
if [ -e ../apps/openssl.exe ]; then | |
openssl_bin=../apps/openssl.exe | |
fi | |
export OPENSSL_CONF=../apps/openssl.cnf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# renametest.sh | |
# | |
# input : none | |
# output : all files generated by this script go under $ssldir | |
# | |
openssl_bin=../apps/openssl | |
if [ -e ../apps/openssl.exe ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# ca-spkac.sh | |
# | |
openssl_bin=../apps/openssl | |
if [ -e ../apps/openssl.exe ]; then | |
openssl_bin=../apps/openssl.exe | |
fi |
OlderNewer