[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11198 - in gnunet: . src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11198 - in gnunet: . src/include |
Date: |
Wed, 5 May 2010 15:42:16 +0200 |
Author: grothoff
Date: 2010-05-05 15:42:16 +0200 (Wed, 05 May 2010)
New Revision: 11198
Modified:
gnunet/TODO
gnunet/src/include/gnunet_bio_lib.h
Log:
notes
Modified: gnunet/TODO
===================================================================
--- gnunet/TODO 2010-05-05 13:39:20 UTC (rev 11197)
+++ gnunet/TODO 2010-05-05 13:42:16 UTC (rev 11198)
@@ -1,9 +1,14 @@
0.9.0pre1:
* FS: [CG]
- persistence testing (publish, unindex, search, download):
- => need driver!
- => schedule suspending tasks DURING event handler => good coverage!
- => test SUSPEND events
+ * unindex:
+ + need to clean up state on stop/suspend (including file-hashing => util
API change!)
+ * download:
+ + assertion fail (gdb)
+ * publish:
+ + valgrind errors
+ * search:
+ + valgrind errors
- gnunet-service-fs (hot-path routing, load-based routing, nitpicks)
- [gnunet-service-fs.c:208]: member 'LocalGetContext::results_bf_size' is
never used
- [gnunet-service-fs.c:501]: member 'PendingRequest::used_pids_size' is
never used
Modified: gnunet/src/include/gnunet_bio_lib.h
===================================================================
--- gnunet/src/include/gnunet_bio_lib.h 2010-05-05 13:39:20 UTC (rev 11197)
+++ gnunet/src/include/gnunet_bio_lib.h 2010-05-05 13:42:16 UTC (rev 11198)
@@ -78,7 +78,23 @@
void *result,
size_t len);
+
/**
+ * Read the contents of a binary file into a buffer.
+ *
+ * @param h handle to an open file
+ * @param file name of the source file
+ * @param line line number in the source file
+ * @param result the buffer to write the result to
+ * @param len the number of bytes to read
+ * @return GNUNET_OK on success, GNUNET_SYSERR on failure
+ */
+int GNUNET_BIO_read_fn (struct GNUNET_BIO_ReadHandle *h,
+ const char *file, int line,
+ void *result,
+ size_t len);
+
+/**
* Read 0-terminated string from a file.
*
* @param h handle to an open file
@@ -113,7 +129,7 @@
* @param h hande to open file
* @param f address of float to read
*/
-#define GNUNET_BIO_read_float(h, f) (GNUNET_BIO_read (h, __FILE__
"##__LINE__##", f, sizeof(float)))
+#define GNUNET_BIO_read_float(h, f) (GNUNET_BIO_read_fn (h, __FILE__,
__LINE__, f, sizeof(float)))
@@ -123,7 +139,7 @@
* @param h hande to open file
* @param f address of double to read
*/
-#define GNUNET_BIO_read_double(h, f) (GNUNET_BIO_read (h, __FILE__
"##__LINE__##", f, sizeof(double)))
+#define GNUNET_BIO_read_double(h, f) (GNUNET_BIO_read_fn (h, __FILE__,
__LINE__, f, sizeof(double)))
/**
@@ -131,11 +147,12 @@
*
* @param h hande to open file
* @param what describes what is being read (for error message creation)
+ * @param line line number in the code
* @param i address of 32-bit integer to read
* @return GNUNET_OK on success, GNUNET_SYSERR on error
*/
int GNUNET_BIO_read_int32__ (struct GNUNET_BIO_ReadHandle *h,
- const char *what,
+ const char *what, int line,
int32_t *i);
@@ -145,7 +162,7 @@
* @param h hande to open file
* @param i address of 32-bit integer to read
*/
-#define GNUNET_BIO_read_int32(h, i) GNUNET_BIO_read_int32__ (h, __FILE__
"##__LINE__##", (int32_t*) i)
+#define GNUNET_BIO_read_int32(h, i) GNUNET_BIO_read_int32__ (h, __FILE__,
__LINE__, (int32_t*) i)
/**
@@ -153,11 +170,12 @@
*
* @param h hande to open file
* @param what describes what is being read (for error message creation)
+ * @param line line number in the code
* @param i address of 64-bit integer to read
* @return GNUNET_OK on success, GNUNET_SYSERR on error
*/
int GNUNET_BIO_read_int64__ (struct GNUNET_BIO_ReadHandle *h,
- const char *what,
+ const char *what, int line,
int64_t *i);
@@ -167,7 +185,7 @@
* @param h hande to open file
* @param i address of 64-bit integer to read
*/
-#define GNUNET_BIO_read_int64(h, i) GNUNET_BIO_read_int64__ (h, __FILE__
"##__LINE__##", (int64_t*) i)
+#define GNUNET_BIO_read_int64(h, i) GNUNET_BIO_read_int64__ (h, __FILE__,
__LINE__, (int64_t*) i)
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11198 - in gnunet: . src/include,
gnunet <=