source: trunk/libs/newlib/src/libgloss/xc16x/write.c @ 673

Last change on this file since 673 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 658 bytes
Line 
1/*
2 * Copyright (C) 2006 KPIT Cummins
3 * Copyright (C) 2009 Conny Marco Menebröcker
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms is permitted
7 * provided that the above copyright notice and following paragraph are
8 * duplicated in all such forms.
9 *
10 * This file is distributed WITHOUT ANY WARRANTY; without even the implied
11 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 */
13#include<sys/types.h>
14#include<sys/stat.h>
15
16/*int trap0(int file, unsigned long ptr,int len)
17{
18asm volatile("TRAP #3");
19return len;
20}
21*/
22int _write(int file, char *ptr,int len)
23{
24 return trap0(file,(unsigned long)ptr,len);
25}
Note: See TracBrowser for help on using the repository browser.