valutazioni - 0, GPA: 0
(
![](/images/empty_star.gif)
![](/images/empty_star.gif)
![](/images/empty_star.gif)
![](/images/empty_star.gif)
)
![](/images/empty_star.gif)
![](/images/empty_star.gif)
![](/images/empty_star.gif)
![](/images/empty_star.gif)
![](/images/empty_star.gif)
|
da questo dispositivo ha anche altre istruzioni :
Software - MPE/iX 6.0 Operating System (646.69 kb)
Software - MPE/iX 6.0 Operating System (1.23 mb)
Software - MPE/iX 6.0 Operating System (118.4 kb)
Software - MPE/iX 6.0 Operating System (7.43 mb)
Software - MPE/iX 6.0 Operating System (776.42 kb)
Facilità d'uso
hp e3000
pipes the hard pipe() way
#include
programming
#include
and posix
int main() {
int request[2], response[2]; char buf[256];
pipe(request); pipe(response); /* create request & response pipes */
if (fork() > 0) { /* parent */
close(request[0]); close(response[1]); /* close unneeded ends*/
write(request[1], "123\n", 4); close(request[1]); /* write req*/
buf[read(response[0],buf,sizeof(buf))] = 0; /* read response */
printf("result = %s\n",buf);
} else { /* child */
close(request[1]); close(response[0]); /* close unneeded ends*/
dup2(request[0],0); dup2(response[1],1); /*redirect stdin&stdout*/
execl("/bin/sed", "/bin/sed", "-e", "s/^/pipe = /", NULL);
}
}
Solution Symposium
April 3, 2002
Page 52
...
Software - MPE/iX 6.5 Operating System (377.78 kb)
Software - MPE/iX 7.0 Operating System (377.78 kb)
Software - MPE/iX 7.5 Operating System (377.78 kb)