Changeset d5a89a3 in mainline for uspace/lib/c/include/setjmp.h


Ignore:
Timestamp:
2019-02-11T22:31:04Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
aaf9789c
Parents:
e3272101 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merging with upstream/master

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/setjmp.h

    re3272101 rd5a89a3  
    3131 */
    3232
    33 #ifndef LIBC_SETJMP_H_
    34 #define LIBC_SETJMP_H_
     33#ifndef _LIBC_SETJMP_H_
     34#define _LIBC_SETJMP_H_
    3535
    3636#ifdef __cplusplus
     
    4141#include <_bits/__noreturn.h>
    4242
    43 typedef context_t jmp_buf[1];
     43typedef __context_t jmp_buf[1];
    4444
    45 extern int __setjmp(jmp_buf) __attribute__((returns_twice));
    46 extern __noreturn void __longjmp(jmp_buf, int);
     45extern int __context_save(__context_t *) __attribute__((returns_twice));
     46extern __noreturn void __context_restore(__context_t *, int);
    4747
    48 #define setjmp __setjmp
     48#define setjmp __context_save
    4949extern __noreturn void longjmp(jmp_buf, int);
    5050
Note: See TracChangeset for help on using the changeset viewer.