search for: out_str

Displaying 4 results from an estimated 4 matches for "out_str".

Did you mean: out_str3
2011 Oct 03
2
patch: Replace many usleep and some sleep calls with nanosleep
...nfo_t upsdrv_info = { #define ENDCHAR '\r' #define IGNCHARS "\n" -#define UPS_DELAY 150000 -#define UPS_LONG_DELAY 450000 +#define UPS_DELAY 150e6 +#define UPS_LONG_DELAY 450e6 #define VICTRON_OVER 128 #define VICTRON_RB 1 @@ -86,7 +86,7 @@ static int get_data (const char *out_str { int ret_code; ser_send(upsfd, "%s%c", out_string, ENDCHAR); - usleep (UPS_DELAY); + struct timespec delay = {0, UPS_DELAY}; nanosleep(&delay, NULL); ret_code = ser_get_line(upsfd, in_string, LENGTH_TEMP, ENDCHAR, IGNCHARS, 3, 0); if (ret_code < 1) { @@...
2012 Nov 29
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
I have a new problem: Register RBP is used in a function foo. (I am not allocating RBP to any virtual register, the instances of RBP in function foo are in the machine code when my register allocator starts.) Function foo calls function bar. Register RBP is not saved across the call, though it is live after the call. Function bar includes a virtual register. The code that I'm using to
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
...ed char myesc (unsigned char[]); extern int otoi (unsigned char [] ); extern void out (const char []); extern void out_dec (const char [], int); extern void out_dec2 (const char [], int, int); extern void out_hex (const char [], unsigned int); extern void out_line_count (const char []); extern void out_str (const char [], const char []); extern void out_str3 (const char [], const char [], const char [], const char []); extern void out_str_dec (const char [], const char [], int); extern void outc (int); extern void outn (const char []); extern char *readable_form (int); extern void skelout (void); ex...
2011 Jun 02
48
[PATCH 0/9] libxl: disk configuration handling
This is v3 of my disk series. What were previously patches 01-06 have been applied. These are the tested and updated remainder, addressing the previous comments. 1 Preparatory work. 2-4 The new parser and its documentation. 5-6 Replace old parsers with calls to the new one. 7-8 Two features, one of them essential. 9 Basic test suite for disk string parsing, as adhoc script.