version 1.19, 2019/06/28 13:35:05 |
version 1.20, 2021/10/24 21:24:17 |
|
|
* open will fail on slip lines or exclusive-use lines |
* open will fail on slip lines or exclusive-use lines |
* if not running as root; not an error. |
* if not running as root; not an error. |
*/ |
*/ |
if ((fd = open(device, O_WRONLY|O_NONBLOCK, 0)) == -1) { |
if ((fd = open(device, O_WRONLY|O_NONBLOCK)) == -1) { |
if (errno == EBUSY || errno == EACCES) |
if (errno == EBUSY || errno == EACCES) |
return (NULL); |
return (NULL); |
(void) snprintf(errbuf, sizeof(errbuf), |
(void) snprintf(errbuf, sizeof(errbuf), |