Project

General

Profile

Bug #9553

C11 functions quick_exit and at_quick_exit should be visible in C++11.

Added by Aurélien Larcher about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

This is a follow-up to #9545.

Although C++11 defines STDC_VERSION to C99, it includes two functions from C11: quick_exit and at_quick_exit.
In iso/stdlib_c11.h the conditional for these two functions should look like:

#if !defined(_STRICT_SYMBOLS) || defined(_STDC_C11) || __cplusplus >= 201103L
extern int at_quick_exit(void ()(void));
extern _NORETURN_KYWD void quick_exit(int);
#endif /
!_STRICT_SYMBOLS || _STDC_C11 || __cplusplus >= 201103L */

while no modification is required for aligned_alloc.

History

#1

Updated by Electric Monk about 2 years ago

  • Status changed from New to Closed

git commit 27df165cb1057f761e8c77051edac6c560d1e4d9

commit  27df165cb1057f761e8c77051edac6c560d1e4d9
Author: Aurélien Larcher <aurelien.larcher@gmail.com>
Date:   2018-05-25T14:18:54.000Z

    9553 C11 functions quick_exit and at_quick_exit should be visible in C++11.
    Reviewed by: Igor Kozhukhov <igor@dilos.org>
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Reviewed by: Robert Mustacchi <robert.mustacchi@joyent.com>
    Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF