diff options
author | Gaius Mulley <gaiusmod2@gmail.com> | 2024-01-25 15:04:53 +0000 |
---|---|---|
committer | Gaius Mulley <gaiusmod2@gmail.com> | 2024-01-25 15:04:53 +0000 |
commit | 4ffcceef8137b7151ad1e779e38e4b6a3bdcaea8 (patch) | |
tree | 6bcd826bf5795911d1d89e0a992f1d0fa8133780 | |
parent | 5739d5fb5417e3e4303533ae464829e43ad3b47c (diff) | |
download | gcc-4ffcceef8137b7151ad1e779e38e4b6a3bdcaea8.zip gcc-4ffcceef8137b7151ad1e779e38e4b6a3bdcaea8.tar.gz gcc-4ffcceef8137b7151ad1e779e38e4b6a3bdcaea8.tar.bz2 |
modula2: correct prototype for lseek within gcc/m2/gm2-libs/libc.def
This patch corrects the definition of lseek by changing the second
parameter to a CSSIZE_T rather than LONGINT and allow the return value
to be ignored.
gcc/m2/ChangeLog:
* gm2-libs/libc.def (lseek): Change the second parameter
type to CSSIZE_T and make the return value optional.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
-rw-r--r-- | gcc/m2/gm2-libs/libc.def | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/m2/gm2-libs/libc.def b/gcc/m2/gm2-libs/libc.def index 4a389f5..f28f8b5 100644 --- a/gcc/m2/gm2-libs/libc.def +++ b/gcc/m2/gm2-libs/libc.def @@ -227,7 +227,7 @@ PROCEDURE creat (filename: ADDRESS; mode: CARDINAL) : INTEGER; off_t lseek(int fildes, off_t offset, int whence); *) -PROCEDURE lseek (fd: INTEGER; offset: LONGINT; whence: INTEGER) : LONGINT ; +PROCEDURE lseek (fd: INTEGER; offset: CSSIZE_T; whence: INTEGER) : [ CSSIZE_T ] ; (* |