]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - libio/ioseekoff.c
hurd: Fix build
[thirdparty/glibc.git] / libio / ioseekoff.c
index 4fdebd464df33be1c18dc2a2ee06ea57b325568d..a6370c19ffd39a52c72ae92baf8dd0bccc16681d 100644 (file)
@@ -1,5 +1,4 @@
-/* Copyright (C) 1993, 1997, 1998, 1999, 2001, 2002, 2003
-   Free Software Foundation, Inc.
+/* Copyright (C) 1993-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 #include <stdlib.h>
 #include <libioP.h>
 #include <errno.h>
-#ifndef errno
-extern int errno;
-#endif
-#ifndef __set_errno
-# define __set_errno(Val) errno = (Val)
-#endif
 
-_IO_off64_t
-_IO_seekoff_unlocked (fp, offset, dir, mode)
-     _IO_FILE *fp;
-     _IO_off64_t offset;
-     int dir;
-     int mode;
+off64_t
+_IO_seekoff_unlocked (FILE *fp, off64_t offset, int dir, int mode)
 {
   if (dir != _IO_seek_cur && dir != _IO_seek_set && dir != _IO_seek_end)
     {
@@ -62,23 +51,19 @@ _IO_seekoff_unlocked (fp, offset, dir, mode)
            abort ();
        }
       if (_IO_fwide (fp, 0) < 0)
-       INTUSE(_IO_free_backup_area) (fp);
+       _IO_free_backup_area (fp);
       else
-       INTUSE(_IO_free_wbackup_area) (fp);
+       _IO_free_wbackup_area (fp);
     }
 
   return _IO_SEEKOFF (fp, offset, dir, mode);
 }
 
 
-_IO_off64_t
-_IO_seekoff (fp, offset, dir, mode)
-     _IO_FILE *fp;
-     _IO_off64_t offset;
-     int dir;
-     int mode;
+off64_t
+_IO_seekoff (FILE *fp, off64_t offset, int dir, int mode)
 {
-  _IO_off64_t retval;
+  off64_t retval;
 
   _IO_acquire_lock (fp);
   retval = _IO_seekoff_unlocked (fp, offset, dir, mode);