Chameleon

Chameleon Commit Details

Date:2011-08-06 19:21:58 (7 years 11 months ago)
Author:Evan Lojewski
Commit:1295
Parents: 1294
Message:Remove libsaio.h from klibc
Changes:
M/branches/xZenu/src/modules/klibc/strndup.c
M/branches/xZenu/src/modules/klibc/strxspn.c
M/branches/xZenu/src/modules/klibc/snprintf.c
M/branches/xZenu/src/modules/klibc/vsscanf.c
M/branches/xZenu/src/modules/klibc/strntoumax.c
M/branches/xZenu/src/modules/klibc/onexit.c
M/branches/xZenu/src/modules/klibc/vsnprintf.c
M/branches/xZenu/src/modules/klibc/seed48.c
M/branches/xZenu/src/modules/klibc/calloc.c
M/branches/xZenu/src/modules/klibc/sscanf.c

File differences

branches/xZenu/src/modules/klibc/strndup.c
22
33
44
5
5
6
67
78
89
* strndup.c
*/
#include "libsaio.h"
#include <stdlib.h>
#include <string.h>
char *strndup(const char *s, size_t n)
{
branches/xZenu/src/modules/klibc/onexit.c
22
33
44
5
5
66
77
88
* onexit.c
*/
#include "libsaio.h"
#include <stdlib.h>
#include "atexit.h"
int on_exit(void (*fctn) (int, void *), void *arg)
branches/xZenu/src/modules/klibc/vsnprintf.c
44
55
66
7
8
9
10
11
712
8
9
10
11
12
1313
1414
1515
* vsnprintf(), from which the rest of the printf()
* family is built
*/
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <limits.h>
#include <stdint.h>
//#include "libsaio.h"
//Azi: "UCHAR_MAX" & "UINT_MAX" redefined error - limits.h is also present in i386/include.
#include "libsa.h"
#include "limits.h"
enum flags {
FL_ZERO= 0x01,/* Zero modifier */
FL_MINUS= 0x02,/* Minus modifier */
branches/xZenu/src/modules/klibc/vsscanf.c
44
55
66
7
8
9
10
11
12
713
8
9
10
11
12
1314
1415
1516
* vsscanf(), from which the rest of the scanf()
* family is built
*/
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <limits.h>
#include <ctype.h>
#include <stdint.h>
//#include "libsaio.h"
//Azi: "UCHAR_MAX" & "UINT_MAX" redefined error - limits.h is also present in i386/include.
#include "libsa.h"
#include "limits.h"
extern uintmax_t strntoumax(const char *nptr, char **endptr, int base, size_t n);
#ifndef LONG_BIT
branches/xZenu/src/modules/klibc/snprintf.c
22
33
44
5
5
6
7
68
79
810
* snprintf.c
*/
#include "libsaio.h"
#include <stdio.h>
#include <stdarg.h>
extern int vsnprintf(char *buffer, size_t n, const char *format, va_list ap);
int snprintf(char *buffer, size_t n, const char *format, ...)
branches/xZenu/src/modules/klibc/sscanf.c
22
33
44
5
6
5
6
7
78
89
910
* sscanf()
*/
#include "libsaio.h"
extern int vsscanf(const char *buffer, const char *format, va_list ap);
#include <stdio.h>
#include <stdarg.h>
int sscanf(const char *str, const char *format, ...)
{
va_list ap;
branches/xZenu/src/modules/klibc/strntoumax.c
33
44
55
6
6
7
8
79
810
911
*
* The strntoumax() function and associated
*/
#include "libsaio.h"
#include <stdlib.h>
#include <stdint.h>
#include <ctype.h>
static inline int digitval(int ch)
{
branches/xZenu/src/modules/klibc/seed48.c
22
33
44
5
5
66
77
88
* seed48.c
*/
#include "libsaio.h"
#include <string.h>
unsigned short __rand48_seed[3];
branches/xZenu/src/modules/klibc/strxspn.c
33
44
55
6
6
77
88
99
*/
#include <limits.h>
#include "libsaio.h"
#include <string.h>
#include "strxspn.h"
branches/xZenu/src/modules/klibc/calloc.c
22
33
44
5
5
6
67
78
89
* calloc.c
*/
#include "libsaio.h"
#include <stdlib.h>
#include <string.h>
/* FIXME: This should look for multiplication overflow */
void *calloc(size_t nmemb, size_t size)

Archive Download the corresponding diff file

Revision: 1295