/*see uClibc's sh/pipe.c and glibc-2.2.4's mips/pipe.S */
#include <features.h>
#include <asm/asm.h>
#include <sys/asm.h>
#include <asm/unistd.h>
#include <asm/regdef.h>
#include <sys/regdef.h>
.globl pipe
.ent pipe, 0
#define _ERRNO_H 1
#include <bits/errno.h>
/* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg) */
02111-1307 USA. */
#ifdef __PIC__
.option pic2
/*
* Get the kernel definition for sysmips(2)
* Commands for the sysmips(2) call
*
* sysmips(2) is deprecated - though some existing software uses it.
* We only support the following commands. Sysmips exists for compatibility
* purposes only so new software should avoid it.
*/
#include <asm/sysmips.h>
#define SETNAME 1 /* set hostname */
#define FLUSH_CACHE 3 /* writeback and invalidate caches */
#define MIPS_FIXADE 7 /* control address error fixing */
#define MIPS_RDNVRAM 10 /* read NVRAM */
#define MIPS_ATOMIC_SET 2001 /* atomically set variable */
__BEGIN_DECLS