1.1 --- a/templates/native/io.h Mon Mar 06 22:29:36 2017 +0100
1.2 +++ b/templates/native/io.h Tue Mar 07 00:28:18 2017 +0100
1.3 @@ -1,6 +1,6 @@
1.4 /* Native functions for input/output.
1.5
1.6 -Copyright (C) 2016 Paul Boddie <paul@boddie.org.uk>
1.7 +Copyright (C) 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.8
1.9 This program is free software; you can redistribute it and/or modify it under
1.10 the terms of the GNU General Public License as published by the Free Software
1.11 @@ -23,15 +23,15 @@
1.12
1.13 /* Input/output. */
1.14
1.15 -__attr __fn_native_io_fclose(__attr __args[]);
1.16 -__attr __fn_native_io_fflush(__attr __args[]);
1.17 -__attr __fn_native_io_fopen(__attr __args[]);
1.18 -__attr __fn_native_io_fdopen(__attr __args[]);
1.19 -__attr __fn_native_io_fread(__attr __args[]);
1.20 -__attr __fn_native_io_fwrite(__attr __args[]);
1.21 -__attr __fn_native_io_close(__attr __args[]);
1.22 -__attr __fn_native_io_read(__attr __args[]);
1.23 -__attr __fn_native_io_write(__attr __args[]);
1.24 +__attr __fn_native_io_fclose(__attr __self, __attr fp);
1.25 +__attr __fn_native_io_fflush(__attr __self, __attr fp);
1.26 +__attr __fn_native_io_fopen(__attr __self, __attr filename, __attr mode);
1.27 +__attr __fn_native_io_fdopen(__attr __self, __attr fd, __attr mode);
1.28 +__attr __fn_native_io_fread(__attr __self, __attr fp, __attr size);
1.29 +__attr __fn_native_io_fwrite(__attr __self, __attr fp, __attr str);
1.30 +__attr __fn_native_io_close(__attr __self, __attr fd);
1.31 +__attr __fn_native_io_read(__attr __self, __attr fd, __attr n);
1.32 +__attr __fn_native_io_write(__attr __self, __attr fd, __attr str);
1.33
1.34 /* Module initialisation. */
1.35