Displaying 1 result from an estimated 1 matches for "sec_send".
Did you mean:
lec_send
2005 Dec 19
0
new(er) SEC driver.
...0':
upsdebugx(SEC_LOG_LOWLEVEL, "UPS returned: command failed");
r = -1;
break;
case '1':
upsdebugx(SEC_LOG_LOWLEVEL, "UPS returned: command succeeded!");
r = 0;
break;
default:
r = -2;
break;
}
return r;
}
/*
* sec_send(fd, mode, command, buffer, length)
*
* Sends mode command to the UPS with the given data.
*
* Returns -1 if command fails
* 0 if command succeeds, but returns no data
* length of returned data if data is returned
*/
static int
sec_send(int fd, const char mode, const char *c...