1
0
Fork 0
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:
Gregory Nutt 2016-08-25 15:06:46 -06:00
parent 55a325bcd4
commit 440d535360
4 changed files with 38 additions and 11 deletions

View file

@ -49,6 +49,7 @@
namespace std
{
using ::sigset_t;
using ::sig_atomic_t;
using ::sigval;
using ::sigevent;
using ::siginfo;
@ -56,18 +57,24 @@ namespace std
using ::sigaction;
using ::kill;
using ::raise;
using ::sigemptyset;
using ::sigfillset;
using ::sigaction;
using ::sigaddset;
using ::sigdelset;
using ::sigemptyset;
using ::sigfillset;
using ::sighold;
using ::sigismember;
using ::sigaction;
using ::sigprocmask;
using ::sigignore;
using ::signal;
using ::sigpause;
using ::sigpending;
using ::sigprocmask;
using ::sigqueue;
using ::sigrelse;
using ::sigset;
using ::sigtimedwait;
using ::sigsuspend;
using ::sigwaitinfo;
using ::sigtimedwait;
using ::sigqueue;
}
#endif // CSIGNAL_HEADER

View file

@ -1,7 +1,7 @@
//***************************************************************************
// 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>
//
// Redistribution and use in source and binary forms, with or without
@ -54,9 +54,9 @@ namespace std
using ::srand;
using ::rand;
#ifndef CONFIG_DISABLE_ENVIRON
// Environment variable support
#ifndef CONFIG_DISABLE_ENVIRON
using ::get_environ_ptr;
using ::getenv;
using ::putenv;
@ -76,6 +76,12 @@ namespace std
using ::on_exit;
#endif
#ifndef __KERNEL__
// System command
using ::system;
#endif
// String to binary conversions
using ::strtol;
@ -100,6 +106,16 @@ namespace std
using ::calloc;
using ::mallinfo;
#ifdef CONFIG_PSEUDOTERM
// Pseudo-Terminals
#ifdef CONFIG_PSEUDOTERM_SUSV1
using ::ptsname;
using ::ptsname_r;
#endif
using ::unlockpt;
#endif
// Arithmetic
using ::abs;
@ -124,6 +140,10 @@ namespace std
// Sorting
using ::qsort;
// Binary search
using ::bsearch;
}
#endif // __INCLUDE_CXX_CSTDLIB

View file

@ -298,9 +298,9 @@ int sighold(int signo);
int sigismember(FAR const sigset_t *set, int signo);
int sigignore(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 sigpending(FAR sigset_t *set);
int sigprocmask(int how, FAR const sigset_t *set, FAR sigset_t *oset);
#ifdef CONFIG_CAN_PASS_STRUCTS
int sigqueue(int pid, int signo, union sigval value);
#else

View file

@ -1,7 +1,7 @@
/****************************************************************************
* 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>
*
* Redistribution and use in source and binary forms, with or without
@ -143,9 +143,9 @@ extern "C"
void srand(unsigned int seed);
int rand(void);
#ifndef CONFIG_DISABLE_ENVIRON
/* Environment variable support */
#ifndef CONFIG_DISABLE_ENVIRON
FAR char **get_environ_ptr(void);
FAR char *getenv(FAR const char *name);
int putenv(FAR const char *string);