forked from nuttx/nuttx-update
include/cxx: Update some C++ header files due to recent changes to C hader files
This commit is contained in:
parent
55a325bcd4
commit
440d535360
4 changed files with 38 additions and 11 deletions
|
@ -49,6 +49,7 @@
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
using ::sigset_t;
|
using ::sigset_t;
|
||||||
|
using ::sig_atomic_t;
|
||||||
using ::sigval;
|
using ::sigval;
|
||||||
using ::sigevent;
|
using ::sigevent;
|
||||||
using ::siginfo;
|
using ::siginfo;
|
||||||
|
@ -56,18 +57,24 @@ namespace std
|
||||||
using ::sigaction;
|
using ::sigaction;
|
||||||
using ::kill;
|
using ::kill;
|
||||||
using ::raise;
|
using ::raise;
|
||||||
using ::sigemptyset;
|
using ::sigaction;
|
||||||
using ::sigfillset;
|
|
||||||
using ::sigaddset;
|
using ::sigaddset;
|
||||||
using ::sigdelset;
|
using ::sigdelset;
|
||||||
|
using ::sigemptyset;
|
||||||
|
using ::sigfillset;
|
||||||
|
using ::sighold;
|
||||||
using ::sigismember;
|
using ::sigismember;
|
||||||
using ::sigaction;
|
using ::sigignore;
|
||||||
using ::sigprocmask;
|
using ::signal;
|
||||||
|
using ::sigpause;
|
||||||
using ::sigpending;
|
using ::sigpending;
|
||||||
|
using ::sigprocmask;
|
||||||
|
using ::sigqueue;
|
||||||
|
using ::sigrelse;
|
||||||
|
using ::sigset;
|
||||||
|
using ::sigtimedwait;
|
||||||
using ::sigsuspend;
|
using ::sigsuspend;
|
||||||
using ::sigwaitinfo;
|
using ::sigwaitinfo;
|
||||||
using ::sigtimedwait;
|
|
||||||
using ::sigqueue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // CSIGNAL_HEADER
|
#endif // CSIGNAL_HEADER
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// include/cxx/cstdlib
|
// include/cxx/cstdlib
|
||||||
//
|
//
|
||||||
// Copyright (C) 2009, 2012, 2015 Gregory Nutt. All rights reserved.
|
// Copyright (C) 2009, 2012, 2015-2016 Gregory Nutt. All rights reserved.
|
||||||
// Author: Gregory Nutt <gnutt@nuttx.org>
|
// Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
//
|
//
|
||||||
// Redistribution and use in source and binary forms, with or without
|
// Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -54,9 +54,9 @@ namespace std
|
||||||
using ::srand;
|
using ::srand;
|
||||||
using ::rand;
|
using ::rand;
|
||||||
|
|
||||||
|
#ifndef CONFIG_DISABLE_ENVIRON
|
||||||
// Environment variable support
|
// Environment variable support
|
||||||
|
|
||||||
#ifndef CONFIG_DISABLE_ENVIRON
|
|
||||||
using ::get_environ_ptr;
|
using ::get_environ_ptr;
|
||||||
using ::getenv;
|
using ::getenv;
|
||||||
using ::putenv;
|
using ::putenv;
|
||||||
|
@ -76,6 +76,12 @@ namespace std
|
||||||
using ::on_exit;
|
using ::on_exit;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __KERNEL__
|
||||||
|
// System command
|
||||||
|
|
||||||
|
using ::system;
|
||||||
|
#endif
|
||||||
|
|
||||||
// String to binary conversions
|
// String to binary conversions
|
||||||
|
|
||||||
using ::strtol;
|
using ::strtol;
|
||||||
|
@ -100,6 +106,16 @@ namespace std
|
||||||
using ::calloc;
|
using ::calloc;
|
||||||
using ::mallinfo;
|
using ::mallinfo;
|
||||||
|
|
||||||
|
#ifdef CONFIG_PSEUDOTERM
|
||||||
|
// Pseudo-Terminals
|
||||||
|
|
||||||
|
#ifdef CONFIG_PSEUDOTERM_SUSV1
|
||||||
|
using ::ptsname;
|
||||||
|
using ::ptsname_r;
|
||||||
|
#endif
|
||||||
|
using ::unlockpt;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Arithmetic
|
// Arithmetic
|
||||||
|
|
||||||
using ::abs;
|
using ::abs;
|
||||||
|
@ -124,6 +140,10 @@ namespace std
|
||||||
// Sorting
|
// Sorting
|
||||||
|
|
||||||
using ::qsort;
|
using ::qsort;
|
||||||
|
|
||||||
|
// Binary search
|
||||||
|
|
||||||
|
using ::bsearch;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // __INCLUDE_CXX_CSTDLIB
|
#endif // __INCLUDE_CXX_CSTDLIB
|
||||||
|
|
|
@ -298,9 +298,9 @@ int sighold(int signo);
|
||||||
int sigismember(FAR const sigset_t *set, int signo);
|
int sigismember(FAR const sigset_t *set, int signo);
|
||||||
int sigignore(int signo);
|
int sigignore(int signo);
|
||||||
CODE void (*signal(int signo, CODE void (*func)(int signo)))(int signo);
|
CODE void (*signal(int signo, CODE void (*func)(int signo)))(int signo);
|
||||||
int sigprocmask(int how, FAR const sigset_t *set, FAR sigset_t *oset);
|
|
||||||
int sigpause(int signo);
|
int sigpause(int signo);
|
||||||
int sigpending(FAR sigset_t *set);
|
int sigpending(FAR sigset_t *set);
|
||||||
|
int sigprocmask(int how, FAR const sigset_t *set, FAR sigset_t *oset);
|
||||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||||
int sigqueue(int pid, int signo, union sigval value);
|
int sigqueue(int pid, int signo, union sigval value);
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* include/stdlib.h
|
* include/stdlib.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007-2015 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2007-2016 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -143,9 +143,9 @@ extern "C"
|
||||||
void srand(unsigned int seed);
|
void srand(unsigned int seed);
|
||||||
int rand(void);
|
int rand(void);
|
||||||
|
|
||||||
|
#ifndef CONFIG_DISABLE_ENVIRON
|
||||||
/* Environment variable support */
|
/* Environment variable support */
|
||||||
|
|
||||||
#ifndef CONFIG_DISABLE_ENVIRON
|
|
||||||
FAR char **get_environ_ptr(void);
|
FAR char **get_environ_ptr(void);
|
||||||
FAR char *getenv(FAR const char *name);
|
FAR char *getenv(FAR const char *name);
|
||||||
int putenv(FAR const char *string);
|
int putenv(FAR const char *string);
|
||||||
|
|
Loading…
Reference in a new issue