- 27 May, 2014 2 commits
-
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
If one connect failed, we'd return the other one without waiting for the connect to complete. This resulted in read() returning 0, which was really weird. The downside: the poll doesn't seem to time out when the connect times out (Linux 3.13 x86-64). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 19 May, 2014 1 commit
-
-
David Gibson authored
A number of functions in bitmap.h take parameters which they don't modify but aren't currently marked as const. This patch fixes that. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 14 May, 2014 1 commit
-
-
David Gibson authored
No reason for it not to be. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 24 Apr, 2014 4 commits
-
-
Cody P Schafer authored
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 20 Mar, 2014 1 commit
-
-
Emilio G. Cota authored
Bitmap words (e.g. resulting from BITMAP_{N,HEAD}WORDS) are of unsigned type. Use "unsigned int" to iterate over bitmap words to avoid comparisons between signed and unsigned expressions. GCC otherwise warns about these when -Wsign-compare is enabled. Signed-off-by: Emilio G. Cota <cota@braap.org>
-
- 02 Mar, 2014 1 commit
-
-
Rusty Russell authored
This turns out to be the right sequence for pettycoin, which wants to reap the child in the finish routine. From that sample size of 1, this is clearly the Right Thing! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 28 Feb, 2014 1 commit
-
-
Rusty Russell authored
Simpler reimplementation of SS's patch; just plumb file and line through inline functions in header. We add a new check, which actually tests these, and fix _info which missed ccan/check_type as a dependency. Based-on-the-true-story-by: Stewart Smith <stewart@linux.vnet.ibm.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 24 Feb, 2014 2 commits
-
-
Rusty Russell authored
bfgminer/cgminer/sgminer want these. Con implemented some, but these are independently written (with tests!) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Acked by contributors: Luke-Jr <luke@dashjr.org>: I don't have any objections Douglas Bagnall <douglas@halo.gen.nz>: Fine by me. Joel Stanley <joel@jms.id.au>: Fine with me. Brad Hards <bradh@frogmouth.net>: Ack. No response from Joey (trivial warning patch) or Andreas Schlick (one trivial patch, but he also wrote opt_free() (which was a 2 line function). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 11 Feb, 2014 4 commits
-
-
Rusty Russell authored
This was suggested by Luke, though his version insisted on using tab. This one is a bit more complex, but allows either tab or space. Suggested-by: Luke Dashjr <luke-jr+git@utopios.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Luke Dashjr authored
This correctly continues on the next line indented. Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 06 Feb, 2014 5 commits
-
-
Rusty Russell authored
Actually, only an issue for 64 bit big endian systems, but still... Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
As ccanlint warns. Also, test TIOCGWINSZ before ioctl, rather than the header directly since it's a little orthogonal. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
As recently required by ccan/opt. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Luke Dashjr authored
These are not supported in all environments, so use PRId64 and PRIu64 instead. Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Luke Dashjr authored
This fixes building for Windows and other platforms which lack <sys/termios.h> Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 25 Dec, 2013 1 commit
-
-
Emilio G. Cota authored
sparse yells at us when it realises we are implicitly casting an endian type (big endian) to a plain unsigned long. Get rid of this warning by telling sparse that we know what we are doing. Signed-off-by: Emilio G. Cota <cota@braap.org>
-
- 12 Dec, 2013 2 commits
-
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
In this case, Linux (at least, Ubuntu 13.10, x86-64 kernel 3.11.0-14-generic) sets POLLHUP and gives no other error notification. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 07 Dec, 2013 1 commit
-
-
Rusty Russell authored
A zero-length read should complete immediately, even if the fd isn't readable. Wire this up, and expose it for callers to use. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 01 Dec, 2013 6 commits
-
-
Ahmed Samy authored
Signed-off-by: Ahmed Samy <f.fallen45@gmail.com>
-
Ahmed Samy authored
For now, we'll just have this and later on I'll make it support writing it also using cpuid_write_info. Signed-off-by: Ahmed Samy <f.fallen45@gmail.com>
-
Peter Hutterer authored
This code provides some macros to check arguments for valid value ranges. Consider this a mild version of assert(3), because all it does is to log a message and continue. These macros don't replace error handling, but they are useful in situations where an error is unexpected but not common, i.e. this shouldn't happen but if it does let me know". Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
Rusty Russell authored
And add test for that which also tests duplex case. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
This reverts commit 490b6385. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Conflicts: ccan/io/io.c
-
- 28 Nov, 2013 2 commits
-
-
Ahmed Samy authored
This function writes CPU information to a file. Signed-off-by: Ahmed Samy <f.fallen45@gmail.com>
-
Ahmed Samy authored
Signed-off-by: Ahmed Samy <f.fallen45@gmail.com>
-
- 14 Nov, 2013 3 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
Turns out to be useful for complex cases. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Especially where we have just done a read and spin off a duplex to do a read as well. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 13 Nov, 2013 1 commit
-
-
Ahmed Samy authored
eax/ebx/ecx/edx are 32-bit registers, and we need 8 bits from most significand bits so there is no need to mask out 0xFF. Signed-off-by: Ahmed Samy <f.fallen45@gmail.com>
-
- 12 Nov, 2013 2 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
Otherwise, it's a PITA to close a duplexed connection. If necessary we can introduce a half-close to de-deplex later. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-