diff options
Diffstat (limited to 'libc/sysdeps/linux/sh')
-rw-r--r-- | libc/sysdeps/linux/sh/__longjmp.S | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/sh/brk.c | 8 | ||||
-rw-r--r-- | libc/sysdeps/linux/sh/mmap.c | 3 | ||||
-rw-r--r-- | libc/sysdeps/linux/sh/pipe.c | 11 | ||||
-rw-r--r-- | libc/sysdeps/linux/sh/pread_write.c | 21 | ||||
-rw-r--r-- | libc/sysdeps/linux/sh/sbrk.c | 3 |
6 files changed, 26 insertions, 22 deletions
diff --git a/libc/sysdeps/linux/sh/__longjmp.S b/libc/sysdeps/linux/sh/__longjmp.S index a9a7cba8a..a3151239e 100644 --- a/libc/sysdeps/linux/sh/__longjmp.S +++ b/libc/sysdeps/linux/sh/__longjmp.S @@ -64,5 +64,7 @@ __longjmp: .size __longjmp,.-__longjmp libc_hidden_def(__longjmp) +/* sigprocmask is not defined here, why the weak then ?*/ +/* it should rather be libc_hidden_def(sigprocmask) if needed */ .weak __sigprocmask __sigprocmask = sigprocmask diff --git a/libc/sysdeps/linux/sh/brk.c b/libc/sysdeps/linux/sh/brk.c index 443c03b25..9af08c37d 100644 --- a/libc/sysdeps/linux/sh/brk.c +++ b/libc/sysdeps/linux/sh/brk.c @@ -1,9 +1,16 @@ /* From libc-5.3.12 */ +/* + * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ #include <errno.h> #include <unistd.h> #include <sys/syscall.h> +libc_hidden_proto(brk) + extern void * __curbrk; extern int __init_brk (void); @@ -20,5 +27,4 @@ int brk(void * end_data_seg) } return -1; } -libc_hidden_proto(brk) libc_hidden_def(brk) diff --git a/libc/sysdeps/linux/sh/mmap.c b/libc/sysdeps/linux/sh/mmap.c index cefc532a2..6bc45e939 100644 --- a/libc/sysdeps/linux/sh/mmap.c +++ b/libc/sysdeps/linux/sh/mmap.c @@ -23,6 +23,8 @@ #include <errno.h> #include <sys/mman.h> +libc_hidden_proto(mmap) + #ifdef HIOS # define __SH_SYSCALL6_TRAPA "0x2E" #else @@ -32,5 +34,4 @@ #include <sys/syscall.h> _syscall6(__ptr_t, mmap, __ptr_t, addr, size_t, len, int, prot, int, flags, int, fd, __off_t, offset); -libc_hidden_proto(mmap) libc_hidden_def(mmap) diff --git a/libc/sysdeps/linux/sh/pipe.c b/libc/sysdeps/linux/sh/pipe.c index c8540c897..e4cc0080d 100644 --- a/libc/sysdeps/linux/sh/pipe.c +++ b/libc/sysdeps/linux/sh/pipe.c @@ -1,10 +1,16 @@ - -/* Copyright (C) 2001 Lineo, <davidm@lineo.com> */ +/* + * Copyright (C) 2001 Lineo, <davidm@lineo.com> + * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ #include <errno.h> #include <unistd.h> #include <syscall.h> +libc_hidden_proto(pipe) + int pipe(int *fd) { long __res, __res2; @@ -27,5 +33,4 @@ int pipe(int *fd) fd[1] = __res2; return(0); } -libc_hidden_proto(pipe) libc_hidden_def(pipe) diff --git a/libc/sysdeps/linux/sh/pread_write.c b/libc/sysdeps/linux/sh/pread_write.c index 23454e035..4b6d57b08 100644 --- a/libc/sysdeps/linux/sh/pread_write.c +++ b/libc/sysdeps/linux/sh/pread_write.c @@ -1,26 +1,15 @@ /* vi: set sw=4 ts=4: * - * Copyright (C) 2002 by Erik Andersen <andersen@uclibc.org> - * Based in part on the files + * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ +/* Based in part on the files * ./sysdeps/unix/sysv/linux/pwrite.c, * ./sysdeps/unix/sysv/linux/pread.c, * sysdeps/posix/pread.c * sysdeps/posix/pwrite.c * from GNU libc 2.2.5, but reworked considerably... - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Library General Public License as published by - * the Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. - * - * This program 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 Library General Public License - * for more details. - * - * You should have received a copy of the GNU Library General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #define _GNU_SOURCE diff --git a/libc/sysdeps/linux/sh/sbrk.c b/libc/sysdeps/linux/sh/sbrk.c index 7ccefdf58..343dc14fb 100644 --- a/libc/sysdeps/linux/sh/sbrk.c +++ b/libc/sysdeps/linux/sh/sbrk.c @@ -4,6 +4,8 @@ #include <unistd.h> #include <sys/syscall.h> +libc_hidden_proto(sbrk) + extern void * __curbrk; extern int __init_brk (void); @@ -23,5 +25,4 @@ sbrk(intptr_t increment) } return ((void *) -1); } -libc_hidden_proto(sbrk) libc_hidden_def(sbrk) |