errno.h (3f5ad7fc) | errno.h (e6f98e3a) |
---|---|
1/* $OpenBSD: errno.h,v 1.1 2015/09/06 20:26:20 guenther Exp $ */ | 1/* $OpenBSD: errno.h,v 1.2 2015/09/10 18:13:46 guenther Exp $ */ |
2/* 3 * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org> 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 7 unchanged lines hidden (view full) --- 17 18#ifndef _LIBC_ERRNO_H_ 19#define _LIBC_ERRNO_H_ 20 21/* we want the const-correct declarations inside libc */ 22#define __SYS_ERRLIST 23 24#include_next <errno.h> | 2/* 3 * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org> 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 7 unchanged lines hidden (view full) --- 17 18#ifndef _LIBC_ERRNO_H_ 19#define _LIBC_ERRNO_H_ 20 21/* we want the const-correct declarations inside libc */ 22#define __SYS_ERRLIST 23 24#include_next <errno.h> |
25#include "namespace.h" | |
26 27extern const int sys_nerr; 28extern const char *const sys_errlist[]; 29 30extern PROTO_NORMAL(sys_nerr); 31extern PROTO_NORMAL(sys_errlist); 32 33/*PROTO_OVERRIDABLE(__errno);*/ 34 35#endif /* _LIBC_ERRNO_H_ */ | 25 26extern const int sys_nerr; 27extern const char *const sys_errlist[]; 28 29extern PROTO_NORMAL(sys_nerr); 30extern PROTO_NORMAL(sys_errlist); 31 32/*PROTO_OVERRIDABLE(__errno);*/ 33 34#endif /* _LIBC_ERRNO_H_ */ |