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

1234567891011>>

/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/
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 Dxnotify.c73 static void LogNow(const char *msg, PRStatus rv) argument
78 if (PR_FAILURE == rv) PL_FPrintError(err, " ");
95 PRStatus rv; local
100 rv = PR_CWait(&shared->o1, PR_SecondsToInterval(5));
101 if (PR_SUCCESS == rv) LogNow("T2 resuming on o1", rv);
102 else LogNow("T2 wait failed on o1", rv);
104 rv = PR_CNotify(&shared->o1);
105 if (PR_SUCCESS == rv) LogNow("T2 notified o1", rv);
113 PRStatus rv; local
131 PRStatus rv; local
171 PRStatus rv; local
189 PRStatus rv; local
206 PRStatus rv; local
252 PRStatus rv; local
270 PRStatus rv; local
291 PRStatus rv; local
383 PRIntn rv; local
[all...]
H A Dlayer.c79 PRStatus rv = PR_PushIOLayer(stack, PR_GetLayersIdentity(stack), layer); local
82 PR_ASSERT(PR_SUCCESS == rv);
90 PRStatus rv; local
95 rv = PR_PushIOLayer(stack, PR_GetLayersIdentity(stack), layer);
99 PR_ASSERT(PR_SUCCESS == rv);
103 rv = PR_PushIOLayer(stack, PR_GetLayersIdentity(stack), layer);
107 PR_ASSERT(PR_SUCCESS == rv);
112 rv = PR_PushIOLayer(stack, PR_GetLayersIdentity(stack), layer);
116 PR_ASSERT(PR_SUCCESS == rv);
134 PRStatus rv; local
167 PRStatus rv; local
210 PRInt32 rv, readin = 0, request = 0; local
245 PRInt32 rv, wroteout = 0, request; local
283 PRStatus rv; local
[all...]
H A Dselintr.c68 int rv; local
76 rv = select(1, NULL, NULL, NULL, &timeout);
77 printf("select returned %d\n", 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);
/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/ipc/ipcd/extensions/dconnect/test/
H A DTestDConnect.cpp58 #define RETURN_IF_FAILED(rv, step) \
60 if (NS_FAILED(rv)) { \
61 printf("*** %s failed: rv=%x\n", step, rv); \
62 return rv;\
74 nsresult rv; local
76 nsCOMPtr<ipcIDConnectService> dcon = do_GetService("@mozilla.org/ipc/dconnect-service;1", &rv);
77 RETURN_IF_FAILED(rv, "getting dconnect service");
82 rv = dcon->CreateInstanceByContractID(remoteClientID,
86 NS_ENSURE_SUCCESS(rv, r
198 nsresult rv; local
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/lib/libc/src/
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...]
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;
/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/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/obsolete/component/
H A DregExport.cpp69 nsresult rv; local
73 rv = NS_InitXPCOM2(&servMgr, NULL, NULL);
74 if (NS_FAILED(rv))
77 printf("Cannot initialize XPCOM. Exit. [rv=0x%08X]\n", (int)rv);
83 nsCOMPtr<nsIComponentManager> compMgr = do_GetService(kComponentManagerCID, &rv);
84 if (NS_FAILED(rv))
87 printf("Cannot get component manager from service manager.. Exit. [rv=0x%08X]\n", (int)rv);
95 rv
175 nsresult rv = reg->EnumerateSubtrees( root, &keys ); local
247 nsresult rv = reg->EnumerateValues( root, &values ); local
[all...]
/vbox/src/libs/xpcom18a4/xpcom/tests/
H A DnsIFileTest.cpp23 void VerifyResult(nsresult rv) argument
25 if (NS_FAILED(rv))
27 Failed("rv failed");
28 printf("rv = %d\n", rv);
64 nsresult rv; local
69 rv = file->GetNativePath(pathName);
70 VerifyResult(rv);
78 nsresult rv = CallCreateInstance(NS_LOCAL_FILE_CONTRACTID, &file); local
81 if (NS_FAILED(rv) || (!fil
127 nsresult rv; local
176 nsresult rv; local
228 nsresult rv; local
262 nsresult rv; local
313 nsresult rv; local
352 nsresult rv; local
[all...]
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");
H A DTestPipes.cpp67 nsresult rv = os->Write(p, bufLen, &n); local
68 if (NS_FAILED(rv)) return rv;
81 nsresult rv; local
86 rv = mIn->Read(buf, 100, &count);
87 if (NS_FAILED(rv)) {
107 return rv;
131 nsresult rv; local
137 rv = NS_NewThread(&thread, receiver, 0, PR_JOINABLE_THREAD);
138 if (NS_FAILED(rv)) retur
182 nsresult rv; local
244 nsresult rv; local
414 nsresult rv; local
457 nsresult rv; local
522 nsresult rv; local
607 nsresult rv; local
[all...]
/vbox/src/libs/xpcom18a4/xpcom/components/
H A DnsComponentManagerObsolete.cpp57 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
58 if (NS_FAILED(rv)) return rv;
67 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
68 if (NS_FAILED(rv)) return rv;
77 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
78 if (NS_FAILED(rv)) return rv;
88 nsresult rv local
100 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
112 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
125 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
140 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
155 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
170 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
181 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
191 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
201 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
210 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
219 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
229 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
239 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
249 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
258 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
267 nsresult rv = NS_GetGlobalComponentManager((nsIComponentManager**)&cm); local
[all...]
/vbox/src/libs/xpcom18a4/java/tools/genifaces/
H A DGenerateJavaInterfaces.cpp56 nsresult rv; local
58 rv = in->Init(aFile, aIOFlags, aPerm, aBehaviorFlags);
59 if (NS_SUCCEEDED(rv))
62 return rv;
73 nsresult rv; local
75 rv = in->Init(aFile, aIOFlags, aPerm, aBehaviorFlags);
76 if (NS_SUCCEEDED(rv))
79 return rv;
106 nsresult rv = aIInfo->GetParent(getter_AddRefs(parent)); local
107 NS_ENSURE_SUCCESS(rv, r
133 nsresult rv = aIInfo->GetIIDForParam(aMethodIndex, aParamInfo, &iid); local
250 nsresult rv; local
294 nsresult rv; local
340 nsresult rv; local
387 nsresult rv = out->Write(kHeader1, sizeof(kHeader1) - 1, &count); local
413 nsresult rv = out->Write(kIfaceDecl1, sizeof(kIfaceDecl1) - 1, &count); local
467 nsresult rv = out->Write(kIIDDecl1, sizeof(kIIDDecl1) - 1, &count); local
492 nsresult rv = aIInfo->GetConstantCount(&constCount); local
596 nsresult rv = aIInfo->GetMethodCount(&methodCount); local
650 nsresult rv = out->Write(kMethodDecl1, sizeof(kMethodDecl1) - 1, &count); local
718 nsresult rv = WriteType(out, &type, aIInfo, aMethodIndex, aParamInfo); local
750 nsresult rv; local
871 nsresult rv = NS_OK; local
[all...]
/vbox/src/libs/xpcom18a4/xpcom/io/
H A DnsFastLoadService.cpp107 nsresult rv = fastLoadService->QueryInterface(aIID, aResult); local
109 return rv;
137 nsresult rv; local
140 rv = NS_GetSpecialDirectory(NS_APP_USER_PROFILE_50_DIR,
142 if (NS_FAILED(rv))
143 return rv;
148 rv = file->AppendNative(name);
149 if (NS_FAILED(rv))
150 return rv;
164 nsresult rv local
237 nsresult rv = NS_ERROR_NOT_AVAILABLE; local
262 nsresult rv = NS_ERROR_NOT_AVAILABLE; local
312 nsresult rv = NS_ERROR_NOT_AVAILABLE; local
342 nsresult rv = NS_ERROR_NOT_AVAILABLE; local
382 nsresult rv = aFile->GetNativePath(path); local
414 nsresult rv = control->GetChecksum(&checksum); local
[all...]
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/java/src/
H A DnsJavaInterfaces.cpp90 nsresult rv; local
95 rv = File_to_nsILocalFile(env, aLibXULDirectory, getter_AddRefs(libXULDir));
96 NS_ENSURE_SUCCESS(rv, rv);
100 rv = File_to_nsILocalFile(env, aAppDirectory, getter_AddRefs(appDir));
101 NS_ENSURE_SUCCESS(rv, rv);
107 rv = NS_NewAppFileLocProviderProxy(aAppDirProvider,
109 NS_ENSURE_SUCCESS(rv, rv);
124 nsresult rv = InitEmbedding_Impl(env, aLibXULDirectory, aAppDirectory, local
194 nsresult rv; local
225 nsresult rv = InitXPCOMVBox_Impl(env, aMozBinDirectory); local
300 nsresult rv = NS_NewLocalFile(path_str, aFollowLinks, getter_AddRefs(file)); local
323 nsresult rv = NS_GetComponentManager(getter_AddRefs(cm)); local
342 nsresult rv = NS_GetComponentRegistrar(getter_AddRefs(cr)); local
390 nsresult rv = NS_GetServiceManager(getter_AddRefs(sm)); local
407 nsresult rv = NS_ERROR_FAILURE; local
493 nsresult rv; local
527 nsresult rv; local
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/
H A Dw16io.c141 PRInt32 rv; local
147 rv = (*_pr_md_read_stdin)( buf, len);
151 rv = read( fd->secret->md.osfd, buf, len );
154 if ( rv == -1)
160 return rv;
176 PRInt32 rv; local
184 rv = (*_pr_md_write_stdout)( (void *)buf, len);
186 rv = len; /* fake success */
191 rv = (*_pr_md_write_stderr)( (void *)buf, len);
193 rv
229 PRInt32 rv; local
249 PRInt32 rv, off; local
273 PRInt32 rv; local
294 PRInt32 rv; local
388 PRInt32 rv; local
413 PRInt32 rv; local
435 PRInt32 rv; local
457 PRInt32 rv; local
485 PRInt32 rv = _PR_MD_GETFILEINFO(fn, &info32); local
507 PRInt32 rv = PR_SUCCESS; local
536 PRInt32 rv = _PR_MD_GETOPENFILEINFO(fd, &info32); local
557 PRInt32 rv; local
578 PRInt32 rv; local
605 PRInt32 rv; local
631 PRInt32 rv; local
658 PRInt32 rv = PR_SUCCESS; /* What we return to our caller */ local
727 PRInt32 rv = PR_SUCCESS; /* What we return */ local
778 PRInt32 rv = PR_SUCCESS; /* What we return */ local
828 PRInt32 rv; local
[all...]
H A Dw95sock.c91 PRInt32 rv; local
93 rv = closesocket((SOCKET) osfd );
94 if (rv < 0)
97 return rv;
119 PRInt32 rv, err; local
121 while ((rv = accept(osfd, (struct sockaddr *) raddr, rlen)) == -1)
126 if ((rv = socket_io_wait(osfd, READ_FD, timeout)) < 0)
137 return(rv);
145 PRInt32 rv; local
148 if ((rv
173 PRInt32 rv; local
188 PRInt32 rv; local
205 PRInt32 rv, err; local
239 PRInt32 rv, err; local
283 PRInt32 rv, err; local
328 PRInt32 rv, err; local
356 int rv; local
389 PRInt32 rv; local
400 PRInt32 rv; local
414 PRInt32 rv; local
428 PRInt32 rv; local
442 PRInt32 rv; local
476 PRInt32 rv = -1; local
[all...]
/vbox/src/libs/xpcom18a4/xpcom/ds/
H A DnsCheapSets.cpp65 nsresult rv = InitHash(&set); local
66 NS_ENSURE_SUCCESS(rv, rv);
68 rv = set->Put(*oldStr);
70 NS_ENSURE_SUCCESS(rv, rv);
105 nsresult rv = newSet->Init(10); local
106 NS_ENSURE_SUCCESS(rv, rv);
132 nsresult rv local
144 nsresult rv = InitHash(&set); local
174 nsresult rv = newSet->Init(10); local
[all...]
H A DnsSupportsArrayEnumerator.cpp60 nsresult rv = mArray->Count(&cnt); local
61 if (NS_FAILED(rv)) return rv;
73 nsresult rv = mArray->Count(&cnt); local
74 if (NS_FAILED(rv)) return rv;
89 nsresult rv = mArray->Count(&cnt); local
90 if (NS_FAILED(rv)) return rv;
102 nsresult rv local
114 nsresult rv = mArray->Count(&cnt); local
[all...]

Completed in 91 milliseconds

1234567891011>>