aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/gnunet_network_lib.h14
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 */
84char *
85GNUNET_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).