akaros/tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/bits/errno.h
<<
>>
Prefs
   1#ifndef _BITS_ERRNO_H
   2#define _BITS_ERRNO_H
   3
   4#ifndef __ASSEMBLER__
   5
   6int *__errno_location_tls(void);
   7char *__errstr_location_tls(void);
   8extern int *(*ros_errno_loc)(void);
   9extern char *(*ros_errstr_loc)(void);
  10int *__errno_location(void);
  11#define errno (*__errno_location())
  12char *errstr(void);     /* can't macro, errstr is used internally in libc */
  13/* this is defined in init-first.c, but declared here for easy #includes */
  14void werrstr(const char *fmt, ...);
  15void save_err(int *no, char *str);
  16void restore_err(int *no, char *str);
  17
  18# ifdef libc_hidden_proto
  19libc_hidden_proto(__errno_location_tls)
  20libc_hidden_proto(__errstr_location_tls)
  21libc_hidden_proto(errstr)
  22# endif
  23
  24#endif
  25
  26#include <ros/errno.h>
  27
  28#endif
  29