Changeset 1052 for libcaca/trunk/kernel
- Timestamp:
- Sep 18, 2006, 8:59:48 AM (16 years ago)
- Location:
- libcaca/trunk/kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/kernel/kernel.c
r1049 r1052 3 3 * libcaca Colour ASCII-Art library 4 4 * Copyright (c) 2006 Sam Hocevar <sam@zoy.org> 5 * 2006 Jean-Yves Lamoureux <jylam@lnxscene.org> 5 6 * All Rights Reserved 6 7 * … … 333 334 } 334 335 336 /* errno.h stuff */ 337 int errno = 0; 338 339 /* arpa/inet.h functions */ 335 340 336 341 /* XXX FIXME Converts only from little endian to big endian (x86) */ … … 346 351 } 347 352 348 349 350 353 #endif /* __KERNEL__ */ -
libcaca/trunk/kernel/kernel.h
r1048 r1052 18 18 */ 19 19 20 #ifndef __KERNEL_H_21 #define __KERNEL_H_22 20 /* Various defines */ 23 21 #define NULL ((void *)0) … … 109 107 int getpid(void); 110 108 111 112 109 /* time.h functions */ 113 110 int gettimeofday(struct timeval *tv, struct timezone *tz); … … 119 116 double sqrt(double x); 120 117 118 /* errno.h functions */ 119 #define ENOENT 2 /* No such file or directory */ 120 #define ENOMEM 12 /* Out of memory */ 121 #define EBUSY 16 /* Device or resource busy */ 122 #define ENODEV 19 /* No such device */ 123 #define EINVAL 22 /* Invalid argument */ 124 #define ENOTTY 25 /* Not a typewriter */ 125 #define ENOSYS 38 /* Function not implemented */ 126 extern int errno; 127 121 128 /* arpa/inet.h functions */ 122 129 unsigned int htonl(unsigned int hostlong); 123 130 unsigned short htons(unsigned short hostlong); 124 131 125 #endif /* __KERNEL_H_ */
Note: See TracChangeset
for help on using the changeset viewer.