Contiki 3.x
Functions
newlib-syscalls.c File Reference

    Syscall implementations for K60 CPU.
More...

#include <unistd.h>
#include <sys/reent.h>
#include <sys/times.h>
#include <string.h>
#include <stdio.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include "K60.h"
#include "devopttab.h"
#include "devicemap.h"
#include "cfs.h"
#include "synchronization.h"

Go to the source code of this file.

Functions

pid_t _getpid (void)
 
int _fstat_r (struct _reent *r, int fd, struct stat *st)
 
void * _sbrk_r (struct _reent *r, ptrdiff_t increment)
 Move the program break. More...
 

Detailed Description

    Syscall implementations for K60 CPU.
Author
Joakim Gebart joaki.nosp@m.m.ge.nosp@m.bart@.nosp@m.eist.nosp@m.ec.se

Definition in file newlib-syscalls.c.

Function Documentation

int _fstat_r ( struct _reent *  r,
int  fd,
struct stat *  st 
)
Todo:
Handle file size with fstat

Definition at line 347 of file newlib-syscalls.c.

References NULL.

pid_t _getpid ( void  )
Todo:
Return some process identifier on getpid()

Definition at line 115 of file newlib-syscalls.c.

void* _sbrk_r ( struct _reent *  r,
ptrdiff_t  increment 
)

Move the program break.

This function can increase the size of the allocated memory.

NEVER call this from ISRs (or anything that may call this function, e.g. malloc, free).

Definition at line 461 of file newlib-syscalls.c.

References lock_acquire(), and lock_release().