diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2019-06-07 20:55:43 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2019-06-07 20:55:43 +0300 |
commit | 007bc1923c505f18dce5949b57a849640f25b15c (patch) | |
tree | 27afc64d906f9744f8dd1410b2c004f285576a32 /newlib/libc/sys/amdgcn/unlink.c | |
parent | 4feb21d705f09263cd867f4787a0d24360810577 (diff) |
Add gfortran support for AMD GCN
From: Kwok Cheung Yeung <kcy@codesourcery.com>
This patch adds enough support for constructors/destructors and OS functions
to be able to link and run gfortran programs on AMD GCN.
There's no actual ability to do I/O operations on this targets, besides
"write" to stdout and stderr, so most of the functions are just stubs.
Diffstat (limited to 'newlib/libc/sys/amdgcn/unlink.c')
-rw-r--r-- | newlib/libc/sys/amdgcn/unlink.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/newlib/libc/sys/amdgcn/unlink.c b/newlib/libc/sys/amdgcn/unlink.c new file mode 100644 index 000000000..059c1d57c --- /dev/null +++ b/newlib/libc/sys/amdgcn/unlink.c @@ -0,0 +1,23 @@ +/* + * Support file for amdgcn in newlib. + * Copyright (c) 2019 Mentor Graphics. + * + * The authors hereby grant permission to use, copy, modify, distribute, + * and license this software and its documentation for any purpose, provided + * that existing copyright notices are retained in all copies and that this + * notice is included verbatim in any distributions. No written agreement, + * license, or royalty fee is required for any of the authorized uses. + * Modifications to this software may be copyrighted by their authors + * and need not follow the licensing terms described here, provided that + * the new terms are clearly indicated on the first page of each file where + * they apply. + */ + +#include <errno.h> + +int +unlink (const char *file) +{ + errno = EACCES; + return -1; +} |