mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 19:09:58 +08:00
7b61d0c500
* libc/sys/mmixware/link.c: New. * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm volatile. * libc/sys/mmixware/times.c (_times): Renamed from times. * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND properly by reading previous contents, not through BinaryReadWrite. * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c * libc/sys/mmixware/Makefile.in: Regenerate.
26 lines
643 B
C
26 lines
643 B
C
/* link stub for MMIXware.
|
|
|
|
Copyright (C) 2002 Hans-Peter Nilsson
|
|
|
|
Permission to use, copy, modify, and distribute this software is
|
|
freely granted, provided that the above copyright notice, this notice
|
|
and the following disclaimer are preserved with no changes.
|
|
|
|
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
|
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
PURPOSE. */
|
|
|
|
#include <_ansi.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include "sys/syscall.h"
|
|
#include <errno.h>
|
|
|
|
int
|
|
_link ()
|
|
{
|
|
errno = EMLINK;
|
|
return -1;
|
|
}
|