adjusted texts to recent api changes, documentation will follow
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16649 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -51,7 +51,7 @@ main()
|
|||||||
size = read_port(id, &code, data, sizeof(data));
|
size = read_port(id, &code, data, sizeof(data));
|
||||||
printf("read port code %lx, size %ld (0x%08lx) (%s)\n", code, size, size, strerror(size));
|
printf("read port code %lx, size %ld (0x%08lx) (%s)\n", code, size, size, strerror(size));
|
||||||
|
|
||||||
printf("should block now\n");
|
printf("port_buffer_size should fail now:\n");
|
||||||
|
|
||||||
// BeBook: does block when port is empty, and unblocks when port is written to or deleted
|
// BeBook: does block when port is empty, and unblocks when port is written to or deleted
|
||||||
size = port_buffer_size(id);
|
size = port_buffer_size(id);
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ main()
|
|||||||
size = read_port(id, &code, data, sizeof(data));
|
size = read_port(id, &code, data, sizeof(data));
|
||||||
printf("read port code %lx, size %ld (0x%08lx) (%s)\n", code, size, size, strerror(size));
|
printf("read port code %lx, size %ld (0x%08lx) (%s)\n", code, size, size, strerror(size));
|
||||||
|
|
||||||
printf("should block now\n");
|
printf("read_port should fail now:\n");
|
||||||
|
|
||||||
// BeBook: does block when port is empty, and unblocks when port is written to or deleted
|
// BeBook: does block when port is empty, and unblocks when port is written to or deleted
|
||||||
size = read_port(id, &code, data, sizeof(data));
|
size = read_port(id, &code, data, sizeof(data));
|
||||||
|
|||||||
Reference in New Issue
Block a user