public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Gaius Mulley <gaius@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r14-8427] modula2: correct prototype for lseek within gcc/m2/gm2-libs/libc.def
Date: Thu, 25 Jan 2024 15:05:31 +0000 (GMT)	[thread overview]
Message-ID: <20240125150531.4C5FF38582A8@sourceware.org> (raw)

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 ] ;
 
 
 (*

                 reply	other threads:[~2024-01-25 15:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240125150531.4C5FF38582A8@sourceware.org \
    --to=gaius@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).