projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove dynamic exceptions
[anna.git]
/
source
/
io
/
functions.cpp
diff --git
a/source/io/functions.cpp
b/source/io/functions.cpp
index
47700ff
..
590180a
100644
(file)
--- a/
source/io/functions.cpp
+++ b/
source/io/functions.cpp
@@
-21,7
+21,7
@@
using namespace std;
using namespace anna;
void io::functions::mkdir(const std::string& path)
using namespace anna;
void io::functions::mkdir(const std::string& path)
-
throw(RuntimeException
) {
+
noexcept(false
) {
Tokenizer tokenizer;
string w;
int r;
Tokenizer tokenizer;
string w;
int r;
@@
-41,7
+41,7
@@
throw(RuntimeException) {
}
bool io::functions::exists(const char* path)
}
bool io::functions::exists(const char* path)
-
throw(RuntimeException
) {
+
noexcept(false
) {
struct stat data;
int r;
anna_signal_shield(r, stat(path, &data));
struct stat data;
int r;
anna_signal_shield(r, stat(path, &data));
@@
-56,7
+56,7
@@
throw(RuntimeException) {
}
bool io::functions::isADirectory(const char* path)
}
bool io::functions::isADirectory(const char* path)
-
throw(RuntimeException
) {
+
noexcept(false
) {
struct stat data;
int r;
anna_signal_shield(r, stat(path, &data));
struct stat data;
int r;
anna_signal_shield(r, stat(path, &data));
@@
-68,7
+68,7
@@
throw(RuntimeException) {
}
ino_t io::functions::getINode(const char* path)
}
ino_t io::functions::getINode(const char* path)
-
throw(RuntimeException
) {
+
noexcept(false
) {
struct stat data;
int r;
anna_signal_shield(r, stat(path, &data));
struct stat data;
int r;
anna_signal_shield(r, stat(path, &data));
@@
-81,7
+81,7
@@
throw(RuntimeException) {
/*static*/
bool io::functions::waitInput(const int fd, const Millisecond &timeout)
/*static*/
bool io::functions::waitInput(const int fd, const Millisecond &timeout)
-
throw(RuntimeException
) {
+
noexcept(false
) {
pollfd waiting;
int r;
waiting.fd = fd;
pollfd waiting;
int r;
waiting.fd = fd;