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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [sys/] [linux/] [inode.c] - Blame information for rev 1773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1010 ivang
/* libc/sys/linux/inode.c - Inode-related system calls */
2
 
3
/* Written 2000 by Werner Almesberger */
4
 
5
 
6
#include <unistd.h>
7
#include <fcntl.h>
8
#include <sys/types.h>
9
#include <sys/stat.h>
10
#include <sys/utime.h>
11
#include <linux/dirent.h>
12
#include <sys/syscall.h>
13
 
14
 
15
_syscall2(int,link,const char *,oldpath,const char *,newpath)
16
_syscall1(int,unlink,const char *,pathname)
17
_syscall1(int,chdir,const char *,path)
18
_syscall3(int,mknod,const char *,pathname,mode_t,mode,dev_t,dev)
19
_syscall2(int,chmod,const char *,path,mode_t,mode)
20
_syscall2(int,utime,const char *,filename,struct utimbuf *,buf)
21
_syscall2(int,access,const char *,filename,int,mode)
22
_syscall2(int,mkdir,const char *,pathname,mode_t,mode)
23
_syscall1(int,rmdir,const char *,pathname)
24
_syscall1(int,pipe,int *,filedes)
25
_syscall1(mode_t,umask,mode_t,mask)
26
_syscall1(int,chroot,const char *,path)
27
_syscall2(int,symlink,const char *,oldpath,const char *,newpath)
28
_syscall3(int,readlink,const char *,path,char *,buf,size_t,bufsiz)
29
_syscall2(int,stat,const char *,file_name,struct stat *,buf)
30
_syscall2(int,lstat,const char *,file_name,struct stat *,buf)
31
_syscall2(int,fstat,int,filedes,struct stat *,buf)
32
_syscall3(int,getdents,int,fd,struct dirent *,dirp,unsigned int,count)

powered by: WebSVN 2.1.0

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