OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [posix/] [mm0/] [include/] [syscalls.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
/*
2
 * Copyright (C) 2007 Bahadir Balban
3
 *
4
 * MM0 Posix system call prototypes and structure
5
 * definitions for converting data in message registers
6
 * into system call argument format.
7
 */
8
 
9
#ifndef __MM0_SYSARGS_H__
10
#define __MM0_SYSARGS_H__
11
 
12
#include <sys/types.h>
13
#include <l4lib/types.h>
14
#include <task.h>
15
 
16
/* For reading argument data from a system call */
17
struct sys_mmap_args {
18
        void *start;
19
        size_t length;
20
        int prot;
21
        int flags;
22
        int fd;
23
        off_t offset;
24
};
25
 
26
void *sys_mmap(struct tcb *task, struct sys_mmap_args *args);
27
int sys_munmap(struct tcb *sender, void *vaddr, unsigned long size);
28
int sys_msync(struct tcb *task, void *start, unsigned long length, int flags);
29
void *sys_shmat(struct tcb *task, l4id_t shmid, const void *shmadr, int shmflg);
30
int sys_shmdt(struct tcb *requester, const void *shmaddr);
31
 
32
int sys_shmget(key_t key, int size, int shmflg);
33
 
34
int sys_execve(struct tcb *sender, char *pathname, char *argv[], char *envp[]);
35
int sys_fork(struct tcb *parent);
36
int sys_clone(struct tcb *parent, void *child_stack, unsigned int clone_flags);
37
void sys_exit(struct tcb *task, int status);
38
 
39
/* Posix calls */
40
int sys_open(struct tcb *sender, const char *pathname, int flags, u32 mode);
41
int sys_readdir(struct tcb *sender, int fd, int count, char *dirbuf);
42
int sys_mkdir(struct tcb *sender, const char *pathname, unsigned int mode);
43
int sys_chdir(struct tcb *sender, const char *pathname);
44
 
45
#endif /* __MM0_SYSARGS_H__ */
46
 

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.