ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dce-dirent.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2011 INRIA
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Frederic Urbani <frederic.urbani@inria.fr>
19  *
20  */
21 #ifndef SIMU_DIRENT_H
22 #define SIMU_DIRENT_H
23 
24 #include <sys/types.h>
25 #include <dirent.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 DIR * dce_opendir (const char *name);
32 DIR * dce_fdopendir (int fd);
33 struct dirent * dce_readdir (DIR *dirp);
34 int dce_readdir_r (DIR *dirp, struct dirent *entry, struct dirent **result);
35 int dce_closedir (DIR *dirp);
36 int dce_dirfd (DIR *dirp);
37 void dce_rewinddir (DIR *dirp);
38 int dce_scandir (const char *dirp, struct dirent ***namelist,
39  int (*filter)(const struct dirent *),
40  int (*compar)(const struct dirent **, const struct dirent **));
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 namespace ns3 {
47 struct Thread;
48 
49 int dce_internalClosedir (DIR *dirp, struct Thread *cur);
50 
51 }
52 
53 #endif /* SIMU_DIRENT_H */