diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-20 18:48:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-20 18:48:08 +0000 |
commit | 653e181509c0798bf9ca999a2141d7e2a6552aef (patch) | |
tree | 85076c02628462d7bbbb05fc09f1b2877c9e33e3 /src/include/gnunet_network_lib.h | |
parent | adf27a6356d67c4bef76f3560aa4abce5f71528f (diff) | |
download | gnunet-653e181509c0798bf9ca999a2141d7e2a6552aef.tar.gz gnunet-653e181509c0798bf9ca999a2141d7e2a6552aef.zip |
-fixing #2439
Diffstat (limited to 'src/include/gnunet_network_lib.h')
-rw-r--r-- | src/include/gnunet_network_lib.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h index 085845a0b..762e2faca 100644 --- a/src/include/gnunet_network_lib.h +++ b/src/include/gnunet_network_lib.h | |||
@@ -68,12 +68,24 @@ struct GNUNET_NETWORK_FDSet | |||
68 | }; | 68 | }; |
69 | 69 | ||
70 | 70 | ||
71 | |||
72 | #include "gnunet_disk_lib.h" | 71 | #include "gnunet_disk_lib.h" |
73 | #include "gnunet_time_lib.h" | 72 | #include "gnunet_time_lib.h" |
74 | 73 | ||
75 | 74 | ||
76 | /** | 75 | /** |
76 | * Given a unixpath that is too long (larger than UNIX_PATH_MAX), | ||
77 | * shorten it to an acceptable length while keeping it unique | ||
78 | * and making sure it remains a valid filename (if possible). | ||
79 | * | ||
80 | * @param unixpath long path, will be freed (or same pointer returned | ||
81 | * with moved 0-termination). | ||
82 | * @return shortened unixpath, NULL on error | ||
83 | */ | ||
84 | char * | ||
85 | GNUNET_NETWORK_shorten_unixpath (char *unixpath); | ||
86 | |||
87 | |||
88 | /** | ||
77 | * Accept a new connection on a socket. Configure it for non-blocking | 89 | * Accept a new connection on a socket. Configure it for non-blocking |
78 | * IO and mark it as non-inheritable to child processes (set the | 90 | * IO and mark it as non-inheritable to child processes (set the |
79 | * close-on-exec flag). | 91 | * close-on-exec flag). |