public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8427] modula2: correct prototype for lseek within gcc/m2/gm2-libs/libc.def
@ 2024-01-25 15:05 Gaius Mulley
  0 siblings, 0 replies; only message in thread
From: Gaius Mulley @ 2024-01-25 15:05 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:4ffcceef8137b7151ad1e779e38e4b6a3bdcaea8

commit r14-8427-g4ffcceef8137b7151ad1e779e38e4b6a3bdcaea8
Author: Gaius Mulley <gaiusmod2@gmail.com>
Date:   Thu Jan 25 15:04:53 2024 +0000

    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>

Diff:
---
 gcc/m2/gm2-libs/libc.def | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/m2/gm2-libs/libc.def b/gcc/m2/gm2-libs/libc.def
index 4a389f5d49f8..f28f8b5f2bca 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 ] ;
 
 
 (*

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-25 15:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-25 15:05 [gcc r14-8427] modula2: correct prototype for lseek within gcc/m2/gm2-libs/libc.def Gaius Mulley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).