diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-08-18 03:27:08 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-08-18 03:27:08 +0000 |
commit | 86875334fe99f65094df97edd8d6812c3dcebfef (patch) | |
tree | bdcd8d39de073463c51c8ca23d7b6b3ec990ed15 /libc/sysdeps/linux/sh/pipe.c | |
parent | 2ca268a71b555ca90fbea391b398c92bdf069c2a (diff) | |
download | uClibc-alpine-86875334fe99f65094df97edd8d6812c3dcebfef.tar.bz2 uClibc-alpine-86875334fe99f65094df97edd8d6812c3dcebfef.tar.xz |
Merge from trunk.
Diffstat (limited to 'libc/sysdeps/linux/sh/pipe.c')
-rw-r--r-- | libc/sysdeps/linux/sh/pipe.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/libc/sysdeps/linux/sh/pipe.c b/libc/sysdeps/linux/sh/pipe.c index e4cc0080d..167db8903 100644 --- a/libc/sysdeps/linux/sh/pipe.c +++ b/libc/sysdeps/linux/sh/pipe.c @@ -1,4 +1,7 @@ +/* vi: set sw=4 ts=4: */ /* + * pipe syscall for uClibc sh + * * Copyright (C) 2001 Lineo, <davidm@lineo.com> * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> * @@ -15,15 +18,15 @@ int pipe(int *fd) { long __res, __res2; __asm__ __volatile__ ( - "mov %2, r3;" - "mov %3, r4;" - "trapa #0x13;" - "mov r1, %1;" - : "=z" (__res), - "=r" ((long) __res2) - : "r" ((long) __NR_pipe), - "r" ((long) fd) - : "cc", "memory", "r1", "r3", "r4"); + "mov %2, r3;" + "mov %3, r4;" + "trapa #0x13;" + "mov r1, %1;" + : "=z" (__res), + "=r" ((long) __res2) + : "r" ((long) __NR_pipe), + "r" ((long) fd) + : "cc", "memory", "r1", "r3", "r4"); if ((unsigned long)(__res) >= (unsigned long)(-125)) { int __err = -(__res); errno = __err; |