Searched defs:rv (Results 1 - 25 of 339) sorted by relevance

1234567891011>>

/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/
H A Dselintr.c68 int rv; local
76 rv = select(1, NULL, NULL, NULL, &timeout);
77 printf("select returned %d\n", rv);
H A Dgetproto.c61 PRStatus rv; local
64 rv = PR_GetProtoByName("tcp", buf, sizeof(buf), &proto);
65 if (PR_FAILURE == rv) {
76 rv = PR_GetProtoByName("udp", buf, sizeof(buf), &proto);
77 if (PR_FAILURE == rv) {
88 rv = PR_GetProtoByNumber(6, buf, sizeof(buf), &proto);
89 if (PR_FAILURE == rv) {
100 rv = PR_GetProtoByNumber(17, buf, sizeof(buf), &proto);
101 if (PR_FAILURE == rv) {
H A Dstdio.c58 PRInt32 rv; local
63 rv = PR_Write(
66 PR_ASSERT((PRInt32)strlen("This to standard out\n") == rv);
67 rv = PR_Write(
70 PR_ASSERT((PRInt32)strlen("This to standard err\n") == rv);
H A Datomic.c44 PRInt32 rv, oldval, test, result = 0; local
48 rv = PR_AtomicIncrement(&test);
49 result = result | ((rv == -1) ? 0 : 1);
52 oldval, rv, (rv == -1) ? "PASSED" : "FAILED");
54 rv = PR_AtomicIncrement(&test);
55 result = result | ((rv == 0) ? 0 : 1);
58 oldval, rv, (rv == 0) ? "PASSED" : "FAILED");
60 rv
[all...]
H A Ddceemu.c71 PRStatus rv; local
76 rv = PRP_TryLock(ml);
77 PR_ASSERT(PR_SUCCESS == rv);
78 if ((rv != PR_SUCCESS) & (!debug_mode)) failed_already=1;
80 rv = PRP_TryLock(ml);
81 PR_ASSERT(PR_FAILURE == rv);
82 if ((rv != PR_FAILURE) & (!debug_mode)) failed_already=1;
84 rv = PRP_NakedNotify(cv);
85 PR_ASSERT(PR_SUCCESS == rv);
86 if ((rv !
[all...]
H A Dprftest.c59 int i, rv = 0; local
79 rv = 1;
93 rv = 1;
96 return rv;
H A Dsigpipe.c82 int rv; local
95 rv = write(pipefd[1], &c, 1);
96 if (rv != -1) {
97 fprintf(stderr, "write to broken pipe should have failed with EPIPE but returned %d\n", rv);
H A Dsystem.c62 PRStatus rv; local
69 rv = PR_GetSystemInfo(cmd, info, SYS_INFO_BUFFER_LENGTH);
70 if (PR_SUCCESS == rv) PR_fprintf(output, "%s: %s\n", tag[cmd], info);
/vbox/src/libs/xpcom18a4/nsprpub/lib/libc/src/
H A Dstrcpy.c52 char *rv; local
57 for( rv = dest; max && ((*dest = *src) != 0); dest++, src++, max-- )
66 return rv;
72 char *rv; local
78 for( rv = dest, max--; max && ((*dest = *src) != 0); dest++, src++, max-- )
83 return rv;
H A Dstrcat.c53 char *rv; local
58 for( rv = dest; *dest; dest++ )
62 return rv;
68 char *rv; local
74 for( rv = dest, dl = 0; *dest; dest++, dl++ )
77 if( max <= dl ) return rv;
80 return rv;
H A Dstrdup.c48 char *rv; local
57 rv = (char *)RTMemAlloc(n);
59 rv = (char *)malloc(n);
61 if( (char *)0 == rv ) return rv;
63 (void)memcpy(rv, s, n);
65 return rv;
81 char *rv; local
90 rv = (char *)RTMemAlloc(l+1);
92 rv
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/cplus/
H A Drclock.cpp65 PRStatus rv; local
67 rv = PR_Unlock(lock);
68 PR_ASSERT(PR_SUCCESS == rv);
H A Drccv.cpp62 PRStatus rv; local
67 rv = PR_FAILURE;
70 rv = PR_WaitCondVar(cv, timeout.interval);
71 return rv;
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/cplus/tests/
H A Dfileio.cpp49 PRStatus rv; local
52 rv = fd.Open("filio.dat", PR_CREATE_FILE, 0666);
53 PR_ASSERT(PR_SUCCESS == rv);
54 rv = fd.FileInfo(&info);
55 PR_ASSERT(PR_SUCCESS == rv);
56 rv = fd.Delete("filio.dat");
57 PR_ASSERT(PR_SUCCESS == rv);
59 PR_ASSERT(PR_SUCCESS == rv);
/vbox/src/libs/xpcom18a4/xpcom/io/
H A DnsDirectoryServiceUtils.h51 nsresult rv; local
53 nsCOMPtr<nsIProperties> serv(do_GetService(kDirectoryServiceCID, &rv));
54 if (NS_FAILED(rv))
55 return rv;
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/io/
H A Dprdir.c69 PRInt32 rv; local
72 rv = _PR_MD_CLOSE_DIR(&dir->md);
74 if (rv < 0) {
84 PRInt32 rv; local
86 rv = _PR_MD_MKDIR(name, mode);
87 if (rv < 0) {
95 PRInt32 rv; local
98 rv = _PR_MD_MAKE_DIR(name, mode);
99 if (rv < 0) {
107 PRInt32 rv; local
151 PRInt32 rv; local
[all...]
H A Dprstdio.c48 PRUint32 rv; local
51 rv = PR_vfprintf(fd, fmt, ap);
53 return rv;
59 PRUint32 rv, len; local
71 rv = 0;
76 rv += tmp;
91 rv += tmp;
96 rv = PR_Write(fd, msg, len);
99 rv = PR_Write(fd, msg, len);
102 return rv;
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/os2/
H A Dos2sem.c49 int rv; local
54 rv = DosCreateEventSem(NULL, &md->sem, 0, 0);
55 PR_ASSERT(rv == NO_ERROR);
61 int rv; local
62 rv = DosCloseEventSem(md->sem);
63 PR_ASSERT(rv == NO_ERROR);
70 int rv; local
71 rv = DosWaitEventSem(md->sem, PR_IntervalToMilliseconds(ticks));
73 if (rv == NO_ERROR)
88 int rv; local
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/
H A Dntsem.c62 int rv; local
64 rv = WaitForSingleObject(md->sem, PR_IntervalToMilliseconds(ticks));
66 if (rv == WAIT_OBJECT_0)
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/threads/
H A Dprsem.c162 PRUintn rv; local
165 rv = _PR_MD_GET_VALUE_SEM(&sem->md);
168 rv = sem->count;
172 return rv;
/vbox/src/libs/xpcom18a4/xpcom/sample/
H A DnsTestSample.cpp63 nsresult rv; local
71 rv = NS_InitXPCOM2(getter_AddRefs(servMan), nsnull, nsnull);
72 if (NS_FAILED(rv))
74 printf("ERROR: XPCOM intialization error [%x].\n", rv);
87 rv = manager->CreateInstanceByContractID(NS_SAMPLE_CONTRACTID,
91 if (NS_FAILED(rv))
99 rv);
104 rv = mysample->WriteValue("Inital print:");
105 if (NS_FAILED(rv))
107 printf("ERROR: Calling nsISample::WriteValue() [%x]\n", rv);
[all...]
/vbox/src/libs/xpcom18a4/xpcom/tests/
H A DTestShutdown.cpp45 nsresult rv; local
47 rv = NS_InitXPCOM2(&servMgr, NULL, NULL);
48 NS_ASSERTION(NS_SUCCEEDED(rv), "NS_InitXPCOM failed");
57 rv = nsComponentManager::CreateInstance(cid, nsnull,
63 rv = nsComponentManager::CreateInstance(cidStr, nsnull,
67 if (NS_SUCCEEDED(rv)) {
72 printf("Failed to create %s (%x)\n", cidStr, rv);
76 rv = NS_ShutdownXPCOM(servMgr);
77 NS_ASSERTION(NS_SUCCEEDED(rv), "NS_ShutdownXPCOM failed");
/vbox/src/libs/xpcom18a4/xpcom/threads/
H A DnsEventQueueUtils.h58 nsresult rv = NS_GetEventQueueService(getter_AddRefs(eqs)); local
59 if (NS_FAILED(rv)) return rv;
71 nsresult rv = NS_GetEventQueueService(getter_AddRefs(eqs)); local
72 if (NS_FAILED(rv)) return rv;
/vbox/src/VBox/Main/src-client/xpcom/
H A Dmodule.cpp76 int rv = NS_OK; local
81 rv = instance->FinalConstruct();
82 if (NS_FAILED(rv))
87 rv = NS_ERROR_OUT_OF_MEMORY;
93 return rv;
/vbox/src/libs/xpcom18a4/ipc/ipcd/extensions/transmngr/common/
H A DtmTransaction.cpp65 nsresult rv = NS_OK; local
80 rv = NS_ERROR_OUT_OF_MEMORY;
98 rv = NS_ERROR_OUT_OF_MEMORY;
101 if (NS_SUCCEEDED(rv)) {
106 return rv;

Completed in 221 milliseconds

1234567891011>>