summaryrefslogtreecommitdiffstats
path: root/libgloss/nds32/_unlink.S
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2014-03-21 21:02:52 +0000
committerJeff Johnston <jjohnstn@redhat.com>2014-03-21 21:02:52 +0000
commit23cf8028ec4b7bb2206fbfde1fe9b59ac977f324 (patch)
tree516e33d63d67dea70c373bd3dae453ca9bdd5d99 /libgloss/nds32/_unlink.S
parente59026e844dc2f11f032058e671da848beb67f91 (diff)
downloadcygnal-23cf8028ec4b7bb2206fbfde1fe9b59ac977f324.tar.gz
cygnal-23cf8028ec4b7bb2206fbfde1fe9b59ac977f324.tar.bz2
cygnal-23cf8028ec4b7bb2206fbfde1fe9b59ac977f324.zip
2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
* nds32/_argv.S: Replace syscall with break. * nds32/_argvlen.S: Ditto. * nds32/_chdir.S: Ditto. * nds32/_chmod.S: Ditto. * nds32/_close.S: Ditto. * nds32/_exit.S: Ditto. * nds32/_fstat.S: Ditto. * nds32/_getpid.S: Ditto. * nds32/_gettimeofday.S: Ditto. * nds32/_isatty.S: Ditto. * nds32/_kill.S: Ditto. * nds32/_link.S: Ditto. * nds32/_lseek.S: Ditto. * nds32/_open.S: Ditto. * nds32/_read.S: Ditto. * nds32/_rename.S: Ditto. * nds32/_stat.S: Ditto. * nds32/_system.S: Ditto. * nds32/_time.S: Ditto. * nds32/_times.S: Ditto. * nds32/_unlink.S: Ditto. * nds32/_utime.S: Ditto. * nds32/_write.S: Ditto. * nds32/syscall_error_handler.S: Ditto. * nds32/vh.h: New.
Diffstat (limited to 'libgloss/nds32/_unlink.S')
-rw-r--r--libgloss/nds32/_unlink.S13
1 files changed, 11 insertions, 2 deletions
diff --git a/libgloss/nds32/_unlink.S b/libgloss/nds32/_unlink.S
index 77a62d6ff..ec251b504 100644
--- a/libgloss/nds32/_unlink.S
+++ b/libgloss/nds32/_unlink.S
@@ -27,8 +27,17 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "../syscall.h"
-#include "syscall_extra.h"
+#ifdef __NDS32_VH__
+
+#include "vh.h"
+.extern _impure_ptr
+TYPE1 _lseek, VH_LSEEK
+
+#else /* not __NDS32_VH__ */
+#include "../syscall.h"
+#include "syscall_extra.h"
SYS_WRAPPER _unlink, SYS_unlink
+
+#endif /* not __NDS32_VH__ */