Mercurial > archived > louis > perso > liblxcstats
comparison utils.c @ 10:3a1977ecccc7
Add a configure script and fix various things
author | Louis Opter <kalessin@kalessin.fr> |
---|---|
date | Thu, 06 Jan 2011 00:59:06 +0100 |
parents | 8339ab15527d |
children |
comparison
equal
deleted
inserted
replaced
9:6f2e13f5fcfd | 10:3a1977ecccc7 |
---|---|
58 assert(path); | 58 assert(path); |
59 assert(content); | 59 assert(content); |
60 | 60 |
61 *content = NULL; | 61 *content = NULL; |
62 size = 0; | 62 size = 0; |
63 ret = -1; | |
63 | 64 |
64 fd = open(path, O_RDONLY); | 65 fd = open(path, O_RDONLY); |
65 if (fd != -1) { | 66 if (fd != -1) { |
66 | 67 |
67 while (1) { | 68 while (1) { |