Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/ucontext.h
          +++ new/usr/src/head/ucontext.h
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*      Copyright (c) 1988 AT&T */
  22   22  /*        All Rights Reserved   */
  23   23  
  24   24  
  25   25  /*
       26 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       27 + *
  26   28   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  27   29   * Use is subject to license terms.
  28   30   */
  29   31  
  30   32  #ifndef _UCONTEXT_H
  31   33  #define _UCONTEXT_H
  32   34  
  33   35  #include <sys/ucontext.h>
  34   36  
  35   37  #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
↓ open down ↓ 5 lines elided ↑ open up ↑
  41   43  #endif
  42   44  
  43   45  #ifdef __sparc
  44   46  #ifdef __PRAGMA_REDEFINE_EXTNAME
  45   47  #pragma redefine_extname        makecontext     __makecontext_v2
  46   48  #else
  47   49  #define makecontext     __makecontext_v2
  48   50  #endif
  49   51  #endif
  50   52  
  51      -#if defined(__STDC__)
  52      -
  53   53  extern int getcontext(ucontext_t *) __RETURNS_TWICE;
  54   54  #pragma unknown_control_flow(getcontext)
  55   55  extern int setcontext(const ucontext_t *) __NORETURN;
  56   56  extern int swapcontext(ucontext_t *_RESTRICT_KYWD,
  57   57                  const ucontext_t *_RESTRICT_KYWD);
  58   58  extern void makecontext(ucontext_t *, void(*)(), int, ...);
       59 +
  59   60  #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
  60   61  extern int walkcontext(const ucontext_t *, int (*)(uintptr_t, int, void *),
  61   62      void *);
  62   63  extern int printstack(int);
  63   64  extern int addrtosymstr(void *, char *, int);
  64   65  extern int getustack(stack_t **);
  65   66  extern int setustack(stack_t *);
  66   67  
  67   68  extern int stack_getbounds(stack_t *);
  68   69  extern int stack_setbounds(const stack_t *);
  69   70  extern int stack_inbounds(void *);
  70   71  extern int stack_violation(int, const siginfo_t *, const ucontext_t *);
  71   72  
  72   73  extern void *_stack_grow(void *);
  73      -#endif
  74      -#else
       74 +#endif  /* !_XPG4_2 || __EXTENSIONS__ */
  75   75  
  76      -extern int getcontext() __RETURNS_TWICE;
  77      -#pragma unknown_control_flow(getcontext)
  78      -extern int setcontext();
  79      -extern int swapcontext();
  80      -extern void makecontext();
  81      -#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
  82      -extern int walkcontext();
  83      -extern int printstack();
  84      -extern int addrtosymstr();
  85      -extern int getustack();
  86      -extern int setustack();
  87      -
  88      -extern int stack_getbounds();
  89      -extern int stack_setbounds();
  90      -extern int stack_inbounds();
  91      -extern int stack_violation();
  92      -
  93      -extern void *_stack_grow();
  94      -#endif
  95      -#endif
  96      -
  97   76  #ifdef  __cplusplus
  98   77  }
  99   78  #endif
 100   79  
 101   80  #endif  /* _UCONTEXT_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX