version 1.165, 2001/08/27 17:23:27
|
version 1.166, 2001/08/29 18:48:23
|
Line 42
|
Line 42
|
#include <sys/un.h> |
#include <sys/un.h> |
#include <fcntl.h> |
#include <fcntl.h> |
#include <iconv.h> |
#include <iconv.h> |
|
#include <features.h> |
|
#ifdef __dietlibc__ |
|
#include <md5.h> |
|
#endif |
|
|
#if 0 |
#if 0 |
static const char* Ident; |
static const char* Ident; |
Line 91 extern char* strcpy2(char*a,char*b);
|
Line 95 extern char* strcpy2(char*a,char*b);
|
__asm__ __volatile__ ("rdtsc" : "=a" (low) : : "edx") |
__asm__ __volatile__ ("rdtsc" : "=a" (low) : : "edx") |
|
|
int main(int argc,char *argv[]) { |
int main(int argc,char *argv[]) { |
|
printf("%s\n",crypt("test","$1$")); |
|
#if 0 |
|
MD5_CTX x; |
|
unsigned char md5[16]; |
|
MD5Init(&x); |
|
MD5Update(&x,"fnord",5); |
|
MD5Final(md5,&x); |
|
{ |
|
int i; |
|
for (i=0; i<16; ++i) { |
|
printf("%02x",md5[i]); |
|
} |
|
putchar('\n'); |
|
} |
printf("%d\n",memchr("aaaa",'x',4)); |
printf("%d\n",memchr("aaaa",'x',4)); |
|
#endif |
#if 0 |
#if 0 |
long a,b,c; |
long a,b,c; |
char buf[20]="fnord"; |
char buf[20]="fnord"; |