Ignore:
Timestamp:
Sep 17, 2006, 2:44:18 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Updated kernel 'driver', still not working, but most of the work is done
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/kernel/kernel.h

    r769 r1048  
    1818 */
    1919
     20#ifndef __KERNEL_H_
     21#define __KERNEL_H_
    2022/* Various defines */
    2123#define NULL ((void *)0)
     
    4547/* Various typedefs -- some are x86-specific */
    4648#define CUSTOM_INTTYPES
    47 typedef unsigned char uint8_t;
    48 typedef unsigned short uint16_t;
    49 typedef unsigned long int uint32_t;
    50 typedef long int intptr_t;
    51 typedef long unsigned int uintptr_t;
    52 
    5349typedef unsigned int size_t;
    5450
     
    8278int abs(int j);
    8379void exit(int status);
     80void srand(unsigned int s);
     81int stdint;
     82int stdout;
     83int stderr;
    8484
    8585/* string.h functions */
     
    8888size_t strlen(const char *s);
    8989int strcasecmp(const char *s1, const char *s2);
    90 
     90int memcmp(const char *s1, const char *s2, size_t n);
    9191/* stdarg.h functions */
    9292typedef void * va_list;
     
    9999int feof(FILE *stream);
    100100char *fgets(char *s, int size, FILE *stream);
     101size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);
    101102int fclose(FILE *fp);
    102103int printf(const char *format, ...);
     
    106107/* unistd.h functions */
    107108void usleep(unsigned long usec);
     109int getpid(void);
     110
    108111
    109112/* time.h functions */
    110113int gettimeofday(struct timeval *tv, struct timezone *tz);
     114int time(void *);
    111115
    112116/* math.h functions */
     
    115119double sqrt(double x);
    116120
     121/* arpa/inet.h functions */
     122unsigned int htonl(unsigned int hostlong);
     123unsigned short htons(unsigned short hostlong);
     124
     125#endif /* __KERNEL_H_ */
Note: See TracChangeset for help on using the changeset viewer.