# HG changeset patch # User Markus Bröker # Date 1268069404 -3600 # Node ID 430dbec0c2281d093d7e12ec292753c48c060ba3 # Parent 305d2ca3293627e517f5204d1c6c6bfcccacb5c0 step 1) move all headers to include/lsf committer: Markus Bröker diff --git a/lsflib/include/bits.h b/lsflib/include/bits.h deleted file mode 100644 --- a/lsflib/include/bits.h +++ /dev/null @@ -1,16 +0,0 @@ -/** - * test/demos/lsflib/include/bits.h - * Copyright (C) 2008 Markus Broeker - */ - -#ifndef __BITS_H__ -#define __BITS_H__ - -#define BITS 8 - -char *bindump (char *, int); -char *hexdump (char *, int); -char *not (char *); -char *xor (char *, char); - -#endif diff --git a/lsflib/include/cpuid.h b/lsflib/include/cpuid.h deleted file mode 100644 --- a/lsflib/include/cpuid.h +++ /dev/null @@ -1,18 +0,0 @@ -/** - * test/demos/lsflib/include/cpuid.h - * Copyright (C) 2008 Markus Broeker - */ - -#ifndef __CPUID_H__ -#define __CPUID_H__ - -#include - -typedef unsigned long ULONG; - -char *get_cpu_brand (int); -char *get_cpu_vendor (void); - -ULONG get_cpu_function (ULONG, ULONG *, ULONG *, ULONG *, ULONG *); - -#endif diff --git a/lsflib/include/list.h b/lsflib/include/list.h deleted file mode 100644 --- a/lsflib/include/list.h +++ /dev/null @@ -1,17 +0,0 @@ -/** - * test/demos/lsflib/include/list.h - * Copyright (C) 2008 Markus Broeker - */ - -#ifndef __LIST_H__ -#define __LIST_H__ - -typedef struct node { - char *data; - struct node *next; -} Node; - -void set_limit (long); -Node *addnode (Node *, char *); -Node *getnode (Node *); -#endif diff --git a/lsflib/include/lsf.h b/lsflib/include/lsf.h deleted file mode 100644 --- a/lsflib/include/lsf.h +++ /dev/null @@ -1,41 +0,0 @@ -/** - * test/demos/lsflib/include/lsf.h - * Copyright (C) 2008 Markus Broeker - */ - -#ifndef __LSF_H__ -#define __LSF_H__ - -#ifndef LINE_LENGTH -#define LINE_LENGTH 100 -#endif - -#include -#ifndef __LIST__H -#include -#endif - -/* tokenizer splits a file into tokens */ -Node *tokenizer (FILE *, const char *); - -/* tokenchar splits a file into chars */ -int tokenchar (FILE *); - -/* get_line returns a multiline string str="...\n..." */ -char *get_line (const char *, const char *, size_t); - -/* isDir returns true, if a fd points to a dir */ -int isDir (char *); - -/* isDir returns true, if a fd points to a file */ -int isFile (char *); - -/* getdir prints a dir hierarchy */ -void getdir (char *, int); - -/* returns a pointer int* */ -unsigned char *md5sum (char *); - -void md5recursive (char *, int); - -#endif diff --git a/lsflib/include/lsf/bits.h b/lsflib/include/lsf/bits.h new file mode 100644 --- /dev/null +++ b/lsflib/include/lsf/bits.h @@ -0,0 +1,16 @@ +/** + * test/demos/lsflib/include/bits.h + * Copyright (C) 2008 Markus Broeker + */ + +#ifndef __BITS_H__ +#define __BITS_H__ + +#define BITS 8 + +char *bindump (char *, int); +char *hexdump (char *, int); +char *not (char *); +char *xor (char *, char); + +#endif diff --git a/lsflib/include/lsf/cpuid.h b/lsflib/include/lsf/cpuid.h new file mode 100644 --- /dev/null +++ b/lsflib/include/lsf/cpuid.h @@ -0,0 +1,18 @@ +/** + * test/demos/lsflib/include/cpuid.h + * Copyright (C) 2008 Markus Broeker + */ + +#ifndef __CPUID_H__ +#define __CPUID_H__ + +#include + +typedef unsigned long ULONG; + +char *get_cpu_brand (int); +char *get_cpu_vendor (void); + +ULONG get_cpu_function (ULONG, ULONG *, ULONG *, ULONG *, ULONG *); + +#endif diff --git a/lsflib/include/lsf/list.h b/lsflib/include/lsf/list.h new file mode 100644 --- /dev/null +++ b/lsflib/include/lsf/list.h @@ -0,0 +1,17 @@ +/** + * test/demos/lsflib/include/list.h + * Copyright (C) 2008 Markus Broeker + */ + +#ifndef __LIST_H__ +#define __LIST_H__ + +typedef struct node { + char *data; + struct node *next; +} Node; + +void set_limit (long); +Node *addnode (Node *, char *); +Node *getnode (Node *); +#endif diff --git a/lsflib/include/lsf/lsf.h b/lsflib/include/lsf/lsf.h new file mode 100644 --- /dev/null +++ b/lsflib/include/lsf/lsf.h @@ -0,0 +1,41 @@ +/** + * test/demos/lsflib/include/lsf.h + * Copyright (C) 2008 Markus Broeker + */ + +#ifndef __LSF_H__ +#define __LSF_H__ + +#ifndef LINE_LENGTH +#define LINE_LENGTH 100 +#endif + +#include +#ifndef __LIST__H +#include +#endif + +/* tokenizer splits a file into tokens */ +Node *tokenizer (FILE *, const char *); + +/* tokenchar splits a file into chars */ +int tokenchar (FILE *); + +/* get_line returns a multiline string str="...\n..." */ +char *get_line (const char *, const char *, size_t); + +/* isDir returns true, if a fd points to a dir */ +int isDir (char *); + +/* isDir returns true, if a fd points to a file */ +int isFile (char *); + +/* getdir prints a dir hierarchy */ +void getdir (char *, int); + +/* returns a pointer int* */ +unsigned char *md5sum (char *); + +void md5recursive (char *, int); + +#endif