git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
renamed and cleaned up export header files to match linux convention
[lunaix-os.git]
/
lunaix-os
/
usr
/
libc
/
src
/
posix
/
unistd.c
diff --git
a/lunaix-os/usr/libc/src/posix/unistd.c
b/lunaix-os/usr/libc/src/posix/unistd.c
index 8e17324c0ba8a260da8490a6e89c39e7028a245a..b6234ed51b460d8f5195eb0574f8c1d1103533d4 100644
(file)
--- a/
lunaix-os/usr/libc/src/posix/unistd.c
+++ b/
lunaix-os/usr/libc/src/posix/unistd.c
@@
-1,211
+1,211
@@
-#include <
lunaix/
syscall.h>
-#include <
lunaix
/types.h>
+#include <syscall.h>
+#include <
sys
/types.h>
pid_t
fork()
{
pid_t
fork()
{
- return do_lunaix_syscall(__
SYSCALL
_fork);
+ return do_lunaix_syscall(__
NR__lxsys
_fork);
}
int
brk(void* addr)
{
}
int
brk(void* addr)
{
- return do_lunaix_syscall(__
SYSCALL
_brk, addr);
+ return do_lunaix_syscall(__
NR__lxsys
_brk, addr);
}
void*
sbrk(ssize_t size)
{
}
void*
sbrk(ssize_t size)
{
- return (void*)do_lunaix_syscall(__
SYSCALL
_sbrk, size);
+ return (void*)do_lunaix_syscall(__
NR__lxsys
_sbrk, size);
}
pid_t
getpid()
{
}
pid_t
getpid()
{
- return do_lunaix_syscall(__
SYSCALL
_getpid);
+ return do_lunaix_syscall(__
NR__lxsys
_getpid);
}
pid_t
getppid()
{
}
pid_t
getppid()
{
- return do_lunaix_syscall(__
SYSCALL
_getppid);
+ return do_lunaix_syscall(__
NR__lxsys
_getppid);
}
pid_t
getpgid()
{
}
pid_t
getpgid()
{
- return do_lunaix_syscall(__
SYSCALL
_getpgid);
+ return do_lunaix_syscall(__
NR__lxsys
_getpgid);
}
pid_t
setpgid(pid_t pid, pid_t pgid)
{
}
pid_t
setpgid(pid_t pid, pid_t pgid)
{
- return do_lunaix_syscall(__
SYSCALL
_setpgid, pid, pgid);
+ return do_lunaix_syscall(__
NR__lxsys
_setpgid, pid, pgid);
}
void
_exit(int status)
{
}
void
_exit(int status)
{
- do_lunaix_syscall(__
SYSCALL_
_exit, status);
+ do_lunaix_syscall(__
NR__lxsys
_exit, status);
}
unsigned int
sleep(unsigned int seconds)
{
}
unsigned int
sleep(unsigned int seconds)
{
- return do_lunaix_syscall(__
SYSCALL
_sleep, seconds);
+ return do_lunaix_syscall(__
NR__lxsys
_sleep, seconds);
}
int
pause()
{
}
int
pause()
{
- return do_lunaix_syscall(__
SYSCALL
_pause);
+ return do_lunaix_syscall(__
NR__lxsys
_pause);
}
unsigned int
alarm(unsigned int seconds)
{
}
unsigned int
alarm(unsigned int seconds)
{
- return do_lunaix_syscall(__
SYSCALL
_alarm, seconds);
+ return do_lunaix_syscall(__
NR__lxsys
_alarm, seconds);
}
int
link(const char* oldpath, const char* newpath)
{
}
int
link(const char* oldpath, const char* newpath)
{
- return do_lunaix_syscall(__
SYSCALL
_link, oldpath, newpath);
+ return do_lunaix_syscall(__
NR__lxsys
_link, oldpath, newpath);
}
int
rmdir(const char* pathname)
{
}
int
rmdir(const char* pathname)
{
- return do_lunaix_syscall(__
SYSCALL
_rmdir, pathname);
+ return do_lunaix_syscall(__
NR__lxsys
_rmdir, pathname);
}
int
read(int fd, void* buf, size_t count)
{
}
int
read(int fd, void* buf, size_t count)
{
- return do_lunaix_syscall(__
SYSCALL
_read, fd, buf, count);
+ return do_lunaix_syscall(__
NR__lxsys
_read, fd, buf, count);
}
int
write(int fd, void* buf, size_t count)
{
}
int
write(int fd, void* buf, size_t count)
{
- return do_lunaix_syscall(__
SYSCALL
_write, fd, buf, count);
+ return do_lunaix_syscall(__
NR__lxsys
_write, fd, buf, count);
}
int
readlink(const char* path, char* buf, size_t size)
{
}
int
readlink(const char* path, char* buf, size_t size)
{
- return do_lunaix_syscall(__
SYSCALL
_readlink, path, buf, size);
+ return do_lunaix_syscall(__
NR__lxsys
_readlink, path, buf, size);
}
int
lseek(int fd, off_t offset, int options)
{
}
int
lseek(int fd, off_t offset, int options)
{
- return do_lunaix_syscall(__
SYSCALL
_lseek, fd, offset, options);
+ return do_lunaix_syscall(__
NR__lxsys
_lseek, fd, offset, options);
}
int
unlink(const char* pathname)
{
}
int
unlink(const char* pathname)
{
- return do_lunaix_syscall(__
SYSCALL
_unlink, pathname);
+ return do_lunaix_syscall(__
NR__lxsys
_unlink, pathname);
}
int
close(int fd)
{
}
int
close(int fd)
{
- return do_lunaix_syscall(__
SYSCALL
_close, fd);
+ return do_lunaix_syscall(__
NR__lxsys
_close, fd);
}
int
dup2(int oldfd, int newfd)
{
}
int
dup2(int oldfd, int newfd)
{
- return do_lunaix_syscall(__
SYSCALL
_dup2, oldfd, newfd);
+ return do_lunaix_syscall(__
NR__lxsys
_dup2, oldfd, newfd);
}
int
dup(int oldfd)
{
}
int
dup(int oldfd)
{
- return do_lunaix_syscall(__
SYSCALL
_dup, oldfd);
+ return do_lunaix_syscall(__
NR__lxsys
_dup, oldfd);
}
int
fsync(int fildes)
{
}
int
fsync(int fildes)
{
- return do_lunaix_syscall(__
SYSCALL
_fsync, fildes);
+ return do_lunaix_syscall(__
NR__lxsys
_fsync, fildes);
}
int
symlink(const char* pathname, const char* link_target)
{
}
int
symlink(const char* pathname, const char* link_target)
{
- return do_lunaix_syscall(__
SYSCALL
_symlink, pathname, link_target);
+ return do_lunaix_syscall(__
NR__lxsys
_symlink, pathname, link_target);
}
int
chdir(const char* path)
{
}
int
chdir(const char* path)
{
- return do_lunaix_syscall(__
SYSCALL
_chdir, path);
+ return do_lunaix_syscall(__
NR__lxsys
_chdir, path);
}
int
fchdir(int fd)
{
}
int
fchdir(int fd)
{
- return do_lunaix_syscall(__
SYSCALL
_fchdir, fd);
+ return do_lunaix_syscall(__
NR__lxsys
_fchdir, fd);
}
char*
getcwd(char* buf, size_t size)
{
}
char*
getcwd(char* buf, size_t size)
{
- return (char*)do_lunaix_syscall(__
SYSCALL
_getcwd, buf, size);
+ return (char*)do_lunaix_syscall(__
NR__lxsys
_getcwd, buf, size);
}
int
rename(const char* oldpath, const char* newpath)
{
}
int
rename(const char* oldpath, const char* newpath)
{
- return do_lunaix_syscall(__
SYSCALL
_rename, oldpath, newpath);
+ return do_lunaix_syscall(__
NR__lxsys
_rename, oldpath, newpath);
}
int
getxattr(const char* path, const char* name, void* value, size_t len)
{
}
int
getxattr(const char* path, const char* name, void* value, size_t len)
{
- return do_lunaix_syscall(__
SYSCALL
_getxattr, path, name, value, len);
+ return do_lunaix_syscall(__
NR__lxsys
_getxattr, path, name, value, len);
}
int
setxattr(const char* path, const char* name, void* value, size_t len)
{
}
int
setxattr(const char* path, const char* name, void* value, size_t len)
{
- return do_lunaix_syscall(__
SYSCALL
_setxattr, path, name, value, len);
+ return do_lunaix_syscall(__
NR__lxsys
_setxattr, path, name, value, len);
}
int
fgetxattr(int fd, const char* name, void* value, size_t len)
{
}
int
fgetxattr(int fd, const char* name, void* value, size_t len)
{
- return do_lunaix_syscall(__
SYSCALL
_fgetxattr, fd, name, value, len);
+ return do_lunaix_syscall(__
NR__lxsys
_fgetxattr, fd, name, value, len);
}
int
fsetxattr(int fd, const char* name, void* value, size_t len)
{
}
int
fsetxattr(int fd, const char* name, void* value, size_t len)
{
- return do_lunaix_syscall(__
SYSCALL
_fsetxattr, fd, name, value, len);
+ return do_lunaix_syscall(__
NR__lxsys
_fsetxattr, fd, name, value, len);
}
int
readlinkat(int dirfd, const char* pathname, char* buf, size_t size)
{
}
int
readlinkat(int dirfd, const char* pathname, char* buf, size_t size)
{
- return do_lunaix_syscall(__
SYSCALL
_readlinkat, dirfd, pathname, buf, size);
+ return do_lunaix_syscall(__
NR__lxsys
_readlinkat, dirfd, pathname, buf, size);
}
int
unlinkat(int fd, const char* pathname)
{
}
int
unlinkat(int fd, const char* pathname)
{
- return do_lunaix_syscall(__
SYSCALL
_unlinkat, fd, pathname);
+ return do_lunaix_syscall(__
NR__lxsys
_unlinkat, fd, pathname);
}
int
mkdir(const char* path)
{
}
int
mkdir(const char* path)
{
- return do_lunaix_syscall(__
SYSCALL
_mkdir, path);
+ return do_lunaix_syscall(__
NR__lxsys
_mkdir, path);
}
int
execve(const char* filename, const char** argv, const char** envp)
{
}
int
execve(const char* filename, const char** argv, const char** envp)
{
- return do_lunaix_syscall(__
SYSCALL
_execve, filename, argv, envp);
+ return do_lunaix_syscall(__
NR__lxsys
_execve, filename, argv, envp);
}
}