ns-3 Direct Code Execution
Home
Tutorials ▼
Docs ▼
Wiki
Manual
Develop ▼
API
Bugs
API
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
dce-unistd.h
Go to the documentation of this file.
1
#ifndef SIMU_UNISTD_H
2
#define SIMU_UNISTD_H
3
4
#include <sys/types.h>
5
#include <stdarg.h>
6
#include <unistd.h>
7
8
#ifdef __cplusplus
9
extern
"C"
{
10
#endif
11
12
13
14
ssize_t
dce_write
(
int
fd,
const
void
*buf,
size_t
count);
15
ssize_t
dce_writev
(
int
fd,
const
struct
iovec *iov,
int
iovcnt);
16
ssize_t
dce_read
(
int
fd,
void
*buf,
size_t
count);
17
ssize_t
dce_readv
(
int
fd,
const
struct
iovec *iov,
int
iovcnt);
18
void
dce_exit
(
int
status);
19
unsigned
int
dce_sleep
(
unsigned
int
seconds);
20
int
dce_usleep
(useconds_t usec);
21
pid_t
dce_getpid
(
void
);
22
pid_t
dce_getppid
(
void
);
23
int
dce_pause
(
void
);
24
int
dce_getopt
(
int
argc,
char
*
const
argv[],
const
char
*optstringt);
25
int
dce_getopt_long
(
int
argc,
char
*
const
argv[],
const
char
*optstring,
26
const
struct
option *longopts,
int
*longindex);
27
uid_t
dce_getuid
(
void
);
28
uid_t
dce_geteuid
(
void
);
29
int
dce_setuid
(uid_t uid);
30
int
dce_setgid
(gid_t gid);
31
int
dce_seteuid
(uid_t euid);
32
int
dce_setegid
(gid_t egid);
33
int
dce_setreuid
(uid_t ruid, uid_t euid);
34
int
dce_setregid
(gid_t rgid, gid_t egid);
35
int
dce_setresuid
(uid_t ruid, uid_t euid, uid_t suid);
36
int
dce_setresgid
(gid_t rgid, gid_t egid, gid_t sgid);
37
38
int
dce_isatty
(
int
desc);
39
char
*
dce_ttyname
(
int
fd);
40
char
*
dce_getcwd
(
char
*buf,
size_t
size);
41
char
*
dce_getwd
(
char
*buf);
42
char
*
dce_get_current_dir_name
(
void
);
43
44
int
dce_chdir
(
const
char
*path);
45
int
dce_fchdir
(
int
fd);
46
int
dce_dup
(
int
oldfd);
47
int
dce_dup2
(
int
oldfd,
int
newfd);
48
int
dce_close
(
int
fd);
49
off_t
dce_lseek
(
int
fildes, off_t offset,
int
whence);
50
off64_t
dce_lseek64
(
int
fildes, off64_t offset,
int
whence);
51
int
dce_unlink
(
const
char
*pathname);
52
int
dce_rmdir
(
const
char
*pathname);
53
int
dce_access
(
const
char
*pathname,
int
mode);
54
pid_t
dce_fork
(
void
);
55
int
dce_execv
(
const
char
*path,
char
*
const
argv[]);
56
int
dce_execl
(
const
char
*path,
const
char
*arg, ...);
57
int
dce_execve
(
const
char
*filename,
char
*
const
argv[],
char
*
const
envp[]);
58
int
dce_execlp
(
const
char
*file,
const
char
*arg, ...);
59
int
dce_execvp
(
const
char
*file,
char
*
const
argv[]);
60
int
dce_execle
(
const
char
*path,
const
char
*arg, ...);
61
62
int
dce_truncate
(
const
char
*path, off_t length);
63
int
dce_ftruncate
(
int
fd, off_t length);
64
int
dce_ftruncate64
(
int
fd, off_t length);
65
66
void
*
dce_sbrk
(intptr_t increment);
67
int
dce_getpagesize
(
void
);
68
69
gid_t
dce_getgid
(
void
);
70
gid_t
dce_getegid
(
void
);
71
pid_t
dce_getpgrp
(
void
);
72
73
int
dce_euidaccess
(
const
char
*pathname,
int
mode);
74
int
dce_eaccess
(
const
char
*pathname,
int
mode);
75
76
int
dce_pipe
(
int
pipefd[2]);
77
78
ssize_t
dce_pread
(
int
fd,
void
*buf,
size_t
count, off_t offset);
79
ssize_t
dce_pwrite
(
int
fd,
const
void
*buf,
size_t
count, off_t offset);
80
int
dce_chown
(
const
char
*path, uid_t owner, gid_t group);
81
int
dce_initgroups
(
const
char
*user, gid_t group);
82
83
int
dce_daemon
(
int
nochdir,
int
noclose);
84
85
unsigned
int
dce_alarm
(
unsigned
int
seconds);
86
87
ssize_t
dce_readlink
(
const
char
*p,
char
*b,
size_t
bufsize);
88
89
90
#ifdef __cplusplus
91
}
92
#endif
93
94
#endif
/* SIMU_UNISTD_H */
model
dce-unistd.h
Generated on Fri Aug 30 2013 13:57:55 for ns-3-dce by
1.8.1.2