4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-23 07:27:21 +08:00
Pietro Monteiro 36e398b04e libc: sh: add missing prototypes and change functions from K&R to ANSI
The SuperH target doesn't build on GCC 14.1 because of missing
function prototypes or because some function declarations use the
deprecated K&R style.  This patch adds missing prototypes on the files
the functions are used and convert K&R declarations to ANSI-style.

Signed-off-by: Pietro Monteiro <pietro@sociotechnical.xyz>
2024-06-28 11:25:51 +02:00

12 lines
205 B
C

#include <_ansi.h>
#include <sys/types.h>
#include "sys/syscall.h"
extern int __trap34 (int function, ...);
int
ftruncate (int file, off_t length)
{
return __trap34 (SYS_ftruncate, file, length, 0);
}