1.1 --- a/templates/progops.c Mon Dec 12 00:37:28 2016 +0100
1.2 +++ b/templates/progops.c Mon Dec 12 00:40:23 2016 +0100
1.3 @@ -119,6 +119,15 @@
1.4 __Raise(exc);
1.5 }
1.6
1.7 +void __raise_os_error(__attr value, __attr arg)
1.8 +{
1.9 +#ifdef __HAVE___builtins___exception_system_OSError
1.10 + __attr args[3] = {{0, 0}, value, arg};
1.11 + __attr exc = __new___builtins___exception_system_OSError(args);
1.12 + __Raise(exc);
1.13 +#endif /* __HAVE___builtins___exception_system_OSError */
1.14 +}
1.15 +
1.16 void __raise_overflow_error()
1.17 {
1.18 __attr args[1];