/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/ |
H A D | selintr.c | 68 int rv; local 76 rv = select(1, NULL, NULL, NULL, &timeout); 77 printf("select returned %d\n", rv);
|
H A D | getproto.c | 61 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 D | stdio.c | 58 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 D | atomic.c | 44 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 D | dceemu.c | 71 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 D | prftest.c | 59 int i, rv = 0; local 79 rv = 1; 93 rv = 1; 96 return rv;
|
H A D | sigpipe.c | 82 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 D | system.c | 62 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 D | strcpy.c | 52 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 D | strcat.c | 53 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 D | strdup.c | 48 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 D | rclock.cpp | 65 PRStatus rv; local 67 rv = PR_Unlock(lock); 68 PR_ASSERT(PR_SUCCESS == rv);
|
H A D | rccv.cpp | 62 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 D | fileio.cpp | 49 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 D | nsDirectoryServiceUtils.h | 51 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 D | prdir.c | 69 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 D | prstdio.c | 48 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 D | os2sem.c | 49 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 D | ntsem.c | 62 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 D | prsem.c | 162 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 D | nsTestSample.cpp | 63 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 D | TestShutdown.cpp | 45 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 D | nsEventQueueUtils.h | 58 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 D | module.cpp | 76 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 D | tmTransaction.cpp | 65 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;
|