fd130a03d1
* .gitignore: Update. * include/linux/x86/syscall.h: Update for M2-Planet. * lib/linux/brk.c (brk): Remove cast for M2-Planet. * lib/linux/x86-mes-m2/syscall.c: New file. * lib/m2/malloc.c: New file. * lib/string/memset.c (memset): Update for M2-Planet. * scaffold/read.c: Update for M2-Planet. * scaffold/kaem.read: New file.
32 lines
1 KiB
C
32 lines
1 KiB
C
/* -*-comment-start: "//";comment-end:""-*-
|
|
* GNU Mes --- Maxwell Equations of Software
|
|
* Copyright © 2019,2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
|
*
|
|
* This file is part of GNU Mes.
|
|
*
|
|
* GNU Mes is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 3 of the License, or (at
|
|
* your option) any later version.
|
|
*
|
|
* GNU Mes is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#include <linux/syscall.h>
|
|
#include <syscall.h>
|
|
#include <mes/lib.h>
|
|
#include <fcntl.h>
|
|
|
|
long
|
|
read (int filedes, void *buffer, long size)
|
|
{
|
|
long bytes = _sys_call3 (SYS_read, filedes, buffer, size);
|
|
return bytes;
|
|
}
|