Hello!
The following program
#include stdio.h
#include fcntl.h
main() {
int control;
if ((control = open("STATUS",O_WRONLY|O_NONBLOCK))0) {
perror("Could not open STATUS ");
exit(1);
}
printf("STATUS ready\n");
"Alex" == Alex Povolotsky [EMAIL PROTECTED] writes:
Alex if ((control = open("STATUS",O_WRONLY|O_NONBLOCK))0) {
Alex fails to run (STATUS is pre-created FIFO file) with error
Alex "Device not configured", which seems kinda odd for me.
Alex However, when FIFO is opened with O_RDWR and
On Mon, 6 Sep 1999, Alex Povolotsky wrote:
Hello!
The following program
#include stdio.h
#include fcntl.h
main() {
int control;
if ((control = open("STATUS",O_WRONLY|O_NONBLOCK))0) {
perror("Could not open STATUS ");
exit(1);
}
Alex == Alex Povolotsky tark...@asteroid.svib.ru writes:
Alex if ((control = open(STATUS,O_WRONLY|O_NONBLOCK))0) {
Alex fails to run (STATUS is pre-created FIFO file) with error
Alex Device not configured, which seems kinda odd for me.
Alex However, when FIFO is opened with O_RDWR and
On Mon, 6 Sep 1999, Alex Povolotsky wrote:
Hello!
The following program
#include stdio.h
#include fcntl.h
main() {
int control;
if ((control = open(STATUS,O_WRONLY|O_NONBLOCK))0) {
perror(Could not open STATUS );
exit(1);
}
Hello!
The following program
#include stdio.h
#include fcntl.h
main() {
int control;
if ((control = open(STATUS,O_WRONLY|O_NONBLOCK))0) {
perror(Could not open STATUS );
exit(1);
}
printf(STATUS ready\n);
close(control);
6 matches
Mail list logo