Searched refs:rv (Results 1 - 25 of 61) sorted by relevance

123

/haiku/src/tests/kits/media/nodetest/
H A Dmain.cpp16 status_t rv; variable
38 rv = roster->RegisterNode(producer);
39 val(rv);
42 rv = roster->RegisterNode(consumer);
43 val(rv);
64 rv = roster->GetLiveNodes(live_nodes, &live_count, &liveformat);
65 val(rv);
70 rv = roster->GetLiveNodes(live_nodes, &live_count, NULL, &liveformat);
71 val(rv);
76 rv
[all...]
/haiku/src/tests/system/network/
H A Dstop_stack.c11 int rv; local
19 rv = ioctl(fd, NET_STACK_STOP, NULL, 0);
20 printf("ioctl to stop stack gave %d\n", rv);
22 rv = close(fd);
23 printf("close gave %d\n", rv);
H A Dat_client.c23 int rv, on = 1; local
35 rv = bind(sock, (const struct sockaddr*)&sin, salen);
36 if (rv < 0)
37 err(rv, "bind");
43 rv = connect(sock, (const struct sockaddr*)&sin, salen);
44 } while (rv < 0 && errno == EINPROGRESS);
45 if (rv < 0 && errno != EISCONN)
50 rv = read(sock, buffer, 50);
51 } while (rv < 0 && errno == EWOULDBLOCK);
52 if (rv <
[all...]
H A Dat_srv.c23 int rv, on = 1; local
34 rv = bind(sock, (const struct sockaddr*)&sin, salen);
35 if (rv < 0)
39 rv = listen(sock, 5);
40 if (rv < 0)
49 rv = write(newsock, HELLO_MSG, strlen(HELLO_MSG));
50 if (rv < 0)
H A Dselect_test.c17 int rv; local
40 rv = select(s + 1, &fdr, NULL, &fde, &tv);
42 printf("select gave %d in %ld seconds\n", rv, rtc);
43 if (rv < 0)
55 rv = select(s +1, &fdr, &fdw, &fde, NULL);
56 printf("select gave %d\n", rv);
H A Dselect_test2.c17 int rv; local
51 rv = select(s + 1, &fdr, NULL, &fde, &tv);
53 printf("select gave %d (expecting 0) in %ld seconds\n", rv, rtc);
65 rv = select(f +1, &fdr, NULL, NULL, NULL);
66 printf("select gave %d (expecting 2)\n", rv);
68 if (rv > 0) {
77 } else if (rv == 0) {
H A Dselect_test_big.c20 int rv; local
67 rv = select(max + 1, &fdr, NULL, &fde, &tv);
69 printf("select gave %d in %ld seconds\n", rv, rtc);
70 if (rv < 0)
85 rv = select(max +1, &fdr, &fdw, &fde, NULL);
86 printf("select gave %d\n", rv);
88 if (rv > 0) {
95 } else if (rv < 0)
H A Dtest2.c23 int rv; local
41 rv = bind(sock, (struct sockaddr *)&sa, sizeof(sa));
42 if (rv < 0)
43 err(rv, "Socket could not be bound to an ephemereal port");
H A Dtest3.c25 int i, rv, totsock = 0; local
50 rv = bind(sock[i], (struct sockaddr*)&sa, sizeof(sa));
51 if (rv < 0)
57 rv = close(sock[i]);
58 if (rv < 0)
/haiku/src/system/libroot/os/arch/sparc/
H A Dfpu_reg.h63 uint32_t rv; local
65 ((fp_ldst32_fn *)&__fpu_st32[r * FPU_ST32_SZ])(&rv);
66 return (rv);
72 uint64_t rv; local
74 ((fp_ldst64_fn *)&__fpu_st64[(r >> 1) * FPU_ST64_SZ])(&rv);
75 return (rv);
/haiku/src/tests/system/kernel/
H A Dnull_poll_test.cpp22 int rv = poll(&pfd, 1, -1); local
23 printf("rv=%d\n", rv);
24 if (rv <= 0)
H A Dfifo_poll_test.cpp27 int rv = poll(&pfd, 1, 500); local
28 printf("rv=%d\n", rv);
29 if (rv == 0)
31 if (rv < 0) {
/haiku/src/tests/kits/media/notificationtest/
H A Dmain.cpp25 status_t rv; local
26 rv = roster->StartWatching(be_app_messenger);
27 if (rv != B_OK) {
28 printf("Globalwatch: StartWatching failed. result = %#lx\n",rv);
35 status_t rv; local
37 rv = roster->GetLiveNodes(out_live_nodes, &io_total_count);
38 if (rv != B_OK) {
39 printf("GetLiveNodes failed. result = %#lx\n",rv);
51 status_t rv; local
52 rv
68 status_t rv; local
83 status_t rv; local
[all...]
/haiku/src/add-ons/kernel/drivers/disk/virtual/nbd/
H A Dnbd-server.py41 rv = ''
42 while len(rv) < nbytes:
43 more = self.sock.recv(nbytes - len(rv))
45 rv += more
46 return rv
56 rv = self.sock.recv(nbytes)
57 print `rv`
58 return rv
61 rv = self.sock.send(astring)
62 print `rv`
[all...]
/haiku/src/system/libroot/posix/stdlib/
H A Dstrtod.c383 Bigint *rv; local
386 rv = (Bigint *)malloc(sizeof(Bigint) + (x-1)*sizeof(Long));
387 rv->k = k;
388 rv->maxwds = x;
389 rv->sign = rv->wds = 0;
390 return rv;
1130 double aadj, aadj1, adj, rv, rv0; local
1137 rv = 0.;
1252 rv
[all...]
/haiku/src/kits/media/
H A DFileInterface.cpp54 status_t rv; local
66 rv = SetRef(ref, request->create, &reply.duration);
68 request->SendReply(rv, &reply, sizeof(reply));
77 rv = GetRef(&resultRef, reply.mimetype);
78 if (rv == B_OK) {
83 request->SendReply(rv, &reply, sizeof(reply));
95 rv = SniffRef(ref, reply.mimetype, &reply.capability);
96 request->SendReply(rv, &reply, sizeof(reply));
H A DMediaRoster.cpp351 status_t rv; local
360 rv = QueryServer(SERVER_RELEASE_NODE_ALL, &request, sizeof(request), &reply,
362 if (rv != B_OK) {
368 rv = SendToPort(node.port, NODE_FINAL_RELEASE, &command,
370 if (rv != B_OK) {
376 return rv;
402 status_t rv; local
406 rv = QueryServer(SERVER_GET_NODE, &request, sizeof(request), &reply,
408 if (rv != B_OK)
409 return rv;
447 status_t rv; local
524 status_t rv; local
605 status_t rv; local
778 status_t rv; local
879 status_t rv; local
898 status_t rv; local
935 status_t rv; local
984 status_t rv; local
1028 status_t rv; local
1653 status_t rv; local
1746 status_t rv; local
1799 status_t rv; local
1842 status_t rv; local
1883 status_t rv; local
1936 status_t rv; local
1981 status_t rv; local
2434 status_t rv; local
2502 status_t rv; local
2600 status_t rv; local
2728 status_t rv; local
2832 status_t rv; local
2906 status_t rv; local
2933 status_t rv; local
2963 status_t rv; local
3033 status_t rv; local
3069 status_t rv; local
3100 status_t rv; local
3222 status_t rv; local
3251 status_t rv; local
3331 status_t rv; local
3358 status_t rv; local
[all...]
/haiku/src/tests/system/glue/
H A DStackAlign.cpp44 status_t rv; local
45 wait_for_thread(spawn_thread(thread, "test", B_NORMAL_PRIORITY, NULL), &rv); local
/haiku/src/add-ons/kernel/drivers/audio/ice1712/
H A Dutil.cpp45 status_t rv; local
62 rv = get_memory_map(logadr, size, phy, 1);
63 if (rv < B_OK) {
/haiku/src/libs/compat/freebsd_network/
H A Dfbsd_time.c41 int rv = 0; local
54 rv = 1;
57 return (rv);
/haiku/src/servers/media/
H A DDefaultManager.cpp437 status_t rv; local
467 rv = fRoster->GetLiveNodes(&info[0], &count,
471 if (rv != B_OK || count < 1) {
539 status_t rv; local
567 rv = fRoster->GetLiveNodes(&info[0], &count, &input, NULL, NULL,
569 if (rv == B_OK && count >= 1) {
602 status_t rv; local
608 rv = fRoster->GetLiveNodes(&info, &count, NULL, NULL, NULL,
610 if (rv != B_OK || count != 1) {
634 status_t rv; local
[all...]
/haiku/src/add-ons/kernel/drivers/network/ether/rtl8139/dev/mii/
H A Drlphy.c113 int rv; local
115 rv = mii_phy_dev_probe(dev, rlphys, BUS_PROBE_DEFAULT);
117 if (rv <= 0)
118 return (rv);
121 if (rv > 0)
122 return (rv);
/haiku/src/add-ons/kernel/drivers/network/ether/rtl81xx/dev/mii/
H A Drlphy.c113 int rv; local
115 rv = mii_phy_dev_probe(dev, rlphys, BUS_PROBE_DEFAULT);
117 if (rv <= 0)
118 return (rv);
121 if (rv > 0)
122 return (rv);
/haiku/src/add-ons/kernel/drivers/dvb/cx23882/
H A Dutil.c80 status_t rv; local
93 rv = get_memory_map(virtadr, size, &pe, 1);
94 if (rv < B_OK) {
/haiku/src/add-ons/kernel/bus_managers/firewire/
H A Dutil.c44 status_t rv; local
57 rv = get_memory_map(virtadr, size, &pe, 1);
58 if (rv < B_OK) {

Completed in 212 milliseconds

123