Kernel updates since December 2009

This commit is contained in:
Bahadir Balban
2010-03-25 01:12:40 +02:00
parent 16818191b3
commit 74b5963fcb
487 changed files with 22477 additions and 3857 deletions

View File

@@ -1,6 +1,12 @@
#ifndef __LIBPOSIX_H__
#define __LIBPOSIX_H__
#include L4LIB_INC_ARCH(syscalls.h)
#include L4LIB_INC_ARCH(syslib.h)
#include <l4lib/types.h>
#include <l4lib/ipcdefs.h>
/* Abort debugging conditions */
// #define LIBPOSIX_ERROR_MESSAGES
#if defined (LIBPOSIX_ERROR_MESSAGES)

View File

@@ -33,7 +33,7 @@
#endif
/* The kernel sources contain a file with all the needed information. */
#include <linux/limits.h>
//#include <linux/limits.h>
/* Have to remove NR_OPEN? */
#ifdef __undef_NR_OPEN

View File

@@ -23,9 +23,9 @@
#ifndef _UCLIBC_PTHREAD_H
#define _UCLIBC_PTHREAD_H
#ifndef _PTHREAD_H
# error "Always include <pthread.h> rather than <bits/uClibc_pthread.h>"
#endif
//#ifndef _PTHREAD_H
//# error "Always include <pthread.h> rather than <bits/uClibc_pthread.h>"
//#endif
#if defined _LIBC && (defined IS_IN_libc || defined NOT_IN_libc)
/* Threading functions internal to uClibc. Make these thread functions

View File

@@ -8,11 +8,11 @@
#define __LIBPOSIX_SHPAGE_H__
#include <l4/macros.h>
#include <l4lib/arch/syscalls.h>
#include <l4lib/arch/syslib.h>
#include <l4lib/ipcdefs.h>
#include <l4lib/utcb.h>
#include INC_GLUE(memory.h)
#include L4LIB_INC_ARCH(syscalls.h)
#include L4LIB_INC_ARCH(syslib.h)
extern void *shared_page;

View File

@@ -328,16 +328,16 @@ extern int sprintf (char *__restrict __s,
This function is a possible cancellation point and therefore not
marked with __THROW. */
extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
__gnuc_va_list __arg);
//extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
// __gnuc_va_list __arg);
/* Write formatted output to stdout from argument list ARG.
This function is a possible cancellation point and therefore not
marked with __THROW. */
extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
//extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
/* Write formatted output to S from argument list ARG. */
extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
__gnuc_va_list __arg) __THROW;
//extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
// __gnuc_va_list __arg) __THROW;
__END_NAMESPACE_STD
#if defined __USE_BSD || defined __USE_ISOC99 || defined __USE_UNIX98
@@ -347,18 +347,18 @@ extern int snprintf (char *__restrict __s, size_t __maxlen,
__const char *__restrict __format, ...)
__THROW __attribute__ ((__format__ (__printf__, 3, 4)));
extern int vsnprintf (char *__restrict __s, size_t __maxlen,
__const char *__restrict __format, __gnuc_va_list __arg)
__THROW __attribute__ ((__format__ (__printf__, 3, 0)));
//extern int vsnprintf (char *__restrict __s, size_t __maxlen,
// __const char *__restrict __format, __gnuc_va_list __arg)
// __THROW __attribute__ ((__format__ (__printf__, 3, 0)));
__END_NAMESPACE_C99
#endif
#ifdef __USE_GNU
/* Write formatted output to a string dynamically allocated with `malloc'.
Store the address of the string in *PTR. */
extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f,
__gnuc_va_list __arg)
__THROW __attribute__ ((__format__ (__printf__, 2, 0)));
//extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f,
// __gnuc_va_list __arg)
// __THROW __attribute__ ((__format__ (__printf__, 2, 0)));
#if 0 /* uClibc: disabled */
extern int __asprintf (char **__restrict __ptr,
__const char *__restrict __fmt, ...)
@@ -374,8 +374,8 @@ extern int asprintf (char **__restrict __ptr,
cancellation point. But due to similarity with an POSIX interface
or due to the implementation they are cancellation points and
therefore not marked with __THROW. */
extern int vdprintf (int __fd, __const char *__restrict __fmt,
__gnuc_va_list __arg)
//extern int vdprintf (int __fd, __const char *__restrict __fmt,
// __gnuc_va_list __arg)
__attribute__ ((__format__ (__printf__, 2, 0)));
extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
__attribute__ ((__format__ (__printf__, 2, 3)));
@@ -405,21 +405,21 @@ __BEGIN_NAMESPACE_C99
This function is a possible cancellation point and therefore not
marked with __THROW. */
extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
__gnuc_va_list __arg)
__attribute__ ((__format__ (__scanf__, 2, 0)));
//extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
// __gnuc_va_list __arg)
// __attribute__ ((__format__ (__scanf__, 2, 0)));
/* Read formatted input from stdin into argument list ARG.
This function is a possible cancellation point and therefore not
marked with __THROW. */
extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
__attribute__ ((__format__ (__scanf__, 1, 0)));
//extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
// __attribute__ ((__format__ (__scanf__, 1, 0)));
/* Read formatted input from S into argument list ARG. */
extern int vsscanf (__const char *__restrict __s,
__const char *__restrict __format, __gnuc_va_list __arg)
__THROW __attribute__ ((__format__ (__scanf__, 2, 0)));
//extern int vsscanf (__const char *__restrict __s,
// __const char *__restrict __format, __gnuc_va_list __arg)
// __THROW __attribute__ ((__format__ (__scanf__, 2, 0)));
__END_NAMESPACE_C99
#endif /* Use ISO C9x. */