/haiku/src/tests/system/libroot/posix/ |
H A D | tst-wprintf2.c | 24 int res = 0; local 70 res = 1; 74 res |= strncmp(buf, "test start int 3", len) != 0; 83 res = 1; 87 res |= strncmp(buf, "1[ Som]", len) != 0; 96 res = 1; 100 res |= strncmp(buf, "hello.", len) != 0; 102 return res;
|
H A D | tst-swprintf.c | 49 ssize_t res = swprintf(buf, tests[n].n, L"%s", tests[n].str); local 51 if (tests[n].exp < 0 && res >= 0) { 55 } else if (tests[n].exp >= 0 && tests[n].exp != res) { 57 tests[n].n, tests[n].str, tests[n].exp, res);
|
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/fuse/ |
H A D | helper.c | 128 int res; local 142 res = fuse_opt_add_arg(args, subtype_opt); 144 return res; 150 int res; local 154 res = fuse_opt_parse(args, &hopts, fuse_helper_opts, 156 if (res == -1) 160 res = add_default_subtype(args->argv[0], args); 161 if (res == -1)
|
H A D | fuse_opt.c | 144 int res = ctx->proc(ctx->data, arg, key, &ctx->outargs); local 145 if (res == -1 || !res) 146 return res; 235 int res; local 249 res = process_opt(ctx, opt, sep, newarg, iso); 252 return res; 261 int res; local 263 res = process_opt_sep_arg(ctx, opt, sep, arg, 266 res 280 int res; local 295 int res; local 361 int res; local [all...] |
/haiku/src/add-ons/kernel/file_systems/websearchfs/ |
H A D | parse_duckduckgo_html.c | 45 struct duckduckgo_result *res = NULL, *nres = NULL, *prev = NULL; local 227 res = nres; 233 *results = res; 237 while (res) { 238 nres = res->next; 239 free(res); 240 res = nres; 249 struct duckduckgo_result *tag1 = (void*)0xaaaa5555, *res = NULL, *tag2 = (void*)0x5555aaaa; local 264 res = results; 265 while (res) { [all...] |
/haiku/src/add-ons/kernel/bus_managers/scsi/ |
H A D | scatter_gather.cpp | 28 status_t res; local 42 res = get_iovec_memory_map(&vec, 1, 0, ccb->data_length, temp_sg, max_sg_blocks, 45 if (res != B_OK) { 46 SHOW_ERROR(2, "cannot create temporary S/G list for IO request (%s)", strerror(res)); 107 status_t res; local 118 res = lock_memory(ccb->data, ccb->data_length, B_DMA_IO 121 if (res != B_OK) { 122 SHOW_ERROR(2, "cannot lock memory for IO request (%s)", strerror(res)); 153 status_t res; local 158 res [all...] |
H A D | busses.cpp | 90 int res; local 125 res = bus->scan_lun_lock; 131 res = bus->start_service; 138 res = scsi_init_ccb_alloc(bus); 139 if (res < B_OK) 146 res = bus->service_thread; 193 status_t res; local 227 res = B_ERROR; 234 res = B_ERROR; 241 res [all...] |
/haiku/headers/private/graphics/radeon/ |
H A D | dma_regs.h | 17 uint32 res; member in struct:DMA_descriptor
|
/haiku/src/kits/locale/ |
H A D | Catalog.cpp | 102 status_t res; 104 res = cat->GetData(name, msg); 105 if (res != B_NAME_NOT_FOUND && res != EOPNOTSUPP) 106 return res; // return B_OK if found, or specific error-code 123 status_t res; 125 res = cat->GetData(id, msg); 126 if (res != B_NAME_NOT_FOUND && res != EOPNOTSUPP) 127 return res; // retur [all...] |
/haiku/src/bin/network/traceroute/ |
H A D | as.c | 61 struct addrinfo hints, *res0, *res; local 84 for (res = res0; res; res = res->ai_next) { 85 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); 88 if (connect(s, res->ai_addr, res [all...] |
/haiku/src/add-ons/kernel/file_systems/nfs4/ |
H A D | ReplyInterpreter.cpp | 141 status_t res = _OperationError(OpAccess); local 142 if (res != B_OK) 143 return res; 162 status_t res = _OperationError(OpClose); local 163 if (res != B_OK) 164 return res; 180 status_t res = _OperationError(OpCommit); local 181 if (res != B_OK) 182 return res; 195 status_t res local 228 status_t res = _OperationError(OpGetAttr); local 241 status_t res = _OperationError(OpGetFH); local 266 status_t res = _OperationError(OpLink); local 283 status_t res = _OperationError(OpLock); local 301 status_t res = _OperationError(OpLockT); local 321 status_t res = _OperationError(OpLockU); local 340 status_t res = _OperationError(OpOpen); local 417 status_t res = _OperationError(OpOpenConfirm); local 435 status_t res = _OperationError(OpRead); local 453 status_t res = _OperationError(OpReadDir); local 518 status_t res = _OperationError(OpReadLink); local 534 status_t res = _OperationError(OpRemove); local 552 status_t res = _OperationError(OpRename); local 573 status_t res = _OperationError(OpSetAttr); local 590 status_t res = _OperationError(OpSetClientID); local 606 status_t res = _OperationError(OpWrite); local [all...] |
/haiku/src/add-ons/kernel/drivers/dvb/cx23882/ |
H A D | i2c_core.c | 161 status_t res; local 171 res = i2c_writebyte(bus, addr, &ack); 172 if (res == B_OK) { 175 res = B_ERROR; 177 if (res == B_TIMED_OUT) 183 // TRACE("i2c_start_address: %s, ack %d, i %d\n", strerror(res), ack, i); 184 return res; 347 status_t res; local 349 res = i2c_read_unlocked(bus, address, data, size); 351 return res; 358 status_t res; local 371 status_t res; local [all...] |
/haiku/src/libs/iconv/ |
H A D | loop_wchar.h | 83 size_t res = unicode_loop_convert(&plocals->l_wcd->parent, 86 if (res == (size_t)(-1)) { 203 size_t res = unicode_loop_convert(&wcd->parent, local 206 if (res == (size_t)(-1)) { 226 result += res; 255 size_t res = unicode_loop_convert(&wcd->parent, local 258 if (res == (size_t)(-1)) { 264 res = unicode_loop_reset(&wcd->parent,&outptr,&outleft); 265 if (res == (size_t)(-1)) 266 return res; 332 size_t res = unicode_loop_convert(&wcd->parent, local 417 size_t res = unicode_loop_reset(&wcd->parent,outbuf,outbytesleft); local [all...] |
/haiku/src/add-ons/kernel/busses/pci/ecam/ |
H A D | ECAMPCIControllerACPI.cpp | 80 ECAMPCIControllerACPI::AcpiCrsScanCallback(acpi_resource *res, void *context) argument 82 return static_cast<ECAMPCIControllerACPI*>(context)->AcpiCrsScanCallbackInt(res); 130 ECAMPCIControllerACPI::AcpiCrsScanCallbackInt(acpi_resource *res) argument 134 switch (res->type) { 136 const auto& address = res->data.address16; 142 const auto& address = res->data.address32; 149 const auto& address = res->data.address64; 160 switch (res->data.address.resource_type) { 163 if (res->data.address.info.mem.caching == 3 /*ACPI_PREFETCHABLE_MEMORY*/)
|
/haiku/src/bin/locale/ |
H A D | collectcatkeys.cpp | 178 status_t res; local 187 res = catalog->SetString(id, ""); 188 if (res != B_OK) { 190 "%s\n", id, strerror(res)); 198 res = catalog->SetString(str.String(), str.String(), 200 if (res != B_OK) { 203 strerror(res)); 273 status_t res = inFile.SetTo(inputFile, B_READ_ONLY); local 274 if (res != B_OK) { 276 strerror(res)); [all...] |
/haiku/src/tools/locale/ |
H A D | collectcatkeys.cpp | 184 status_t res; local 193 res = catalog->SetString(id, ""); 194 if (res != B_OK) { 196 "error: %s\n", id, strerror(res)); 204 res = catalog->SetString(str.String(), str.String(), 206 if (res != B_OK) { 209 strerror(res)); 277 status_t res = inFile.SetTo(inputFile, B_READ_ONLY); local 278 if (res != B_OK) { 280 strerror(res)); [all...] |
/haiku/src/add-ons/kernel/busses/i2c/pch/ |
H A D | pch_i2c_acpi.cpp | 37 pch_i2c_scan_parse_callback(ACPI_RESOURCE *res, void *context) argument 41 if (res->Type == ACPI_RESOURCE_TYPE_IRQ) { 42 crs->irq = res->Data.Irq.Interrupts[0]; 43 crs->irq_triggering = res->Data.Irq.Triggering; 44 crs->irq_polarity = res->Data.Irq.Polarity; 45 crs->irq_shareable = res->Data.Irq.Shareable; 46 } else if (res->Type == ACPI_RESOURCE_TYPE_EXTENDED_IRQ) { 47 crs->irq = res->Data.ExtendedIrq.Interrupts[0]; 48 crs->irq_triggering = res->Data.ExtendedIrq.Triggering; 49 crs->irq_polarity = res [all...] |
/haiku/src/bin/unzip/ |
H A D | zipgrep | 40 res=0 54 test "$r" -ne 0 && res="$r" 56 exit $res
|
/haiku/headers/private/kernel/arch/arm/ |
H A D | arch_cpu.h | 61 uint32 res; \ 62 asm volatile ("mrc " #cp ", " #opc1 ", %0, " #crn ", " #crm ", " #opc2 : "=r" (res)); \ 63 return res; \ 107 uint32 res; local 108 asm volatile ("mov %0, fp": "=r" (res)); 109 return res;
|
/haiku/src/add-ons/media/media-add-ons/radeon/ |
H A D | RadeonProducer.cpp | 92 status_t res; local 99 res = config->FindInt32( name, value ); 100 if( res == B_NAME_NOT_FOUND ) 103 if( res != B_OK ) 104 return res; 153 status_t res; local 156 if( (res = FindInt32( config, P_SOURCE, 0, C_VIDEO_IN_SOURCE_MAX, 159 (res = FindInt32( config, P_STANDARD, 0, C_VIDEO_IN_STANDARD_MAX, 161 (res = FindInt32( config, P_MODE, 0, C_VIDEO_IN_CAPTURE_MODE_MAX, 163 (res 419 status_t res; local 1338 status_t res = finalizeFormat( format ); local 1842 status_t res; local [all...] |
/haiku/src/libs/compat/openbsd_network/compat/dev/pci/ |
H A D | pcivar.h | 46 int res = pci_find_cap(dev, capability, offset); local 47 if (res != 0) 66 struct resource* res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, ®, RF_ACTIVE); local 67 if (res == NULL) 70 *tagp = rman_get_bustag(res); 71 *handlep = rman_get_bushandle(res); 73 *basep = rman_get_start(res); 75 *sizep = rman_get_size(res);
|
/haiku/src/add-ons/kernel/drivers/graphics/radeon/ |
H A D | vip.c | 82 bool res; local 87 res = do_VIPRead( di, channel, address, data ); 94 return res; 173 bool res; local 178 res = do_VIPFifoRead( di, channel, address, count, buffer ); 185 return res; 211 bool res; local 218 res = do_VIPWrite( di, channel, address, data ); 223 return res; 275 bool res; local 388 status_t res; local [all...] |
/haiku/src/system/libnetwork/netresolv/net/ |
H A D | gethnamaddr.c | 107 #define maybe_ok(res, nm, ok) (((res)->options & RES_NOCHECKNAME) != 0U || \ 109 #define maybe_hnok(res, hn) maybe_ok((res), (hn), res_hnok) 110 #define maybe_dnok(res, dn) maybe_ok((res), (dn), res_dnok) 182 debugprintf(const char *msg, res_state res, ...) argument 186 if (res->options & RES_DEBUG) { 190 va_start (ap, res); 198 # define debugprintf(msg, res, nu 215 getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, res_state res, struct hostent *hent, char *buf, size_t buflen, int *he) argument 527 res_state res = __res_get_state(); local 553 res_state res = __res_get_state(); local 565 gethostbyname_internal(const char *name, int af, res_state res, struct hostent *hp, char *buf, size_t buflen, int *he) argument 778 res_state res = __res_get_state(); local 895 addrsort(char **ap, int num, res_state res) argument 946 res_state res; local 1011 res_state res; local [all...] |
/haiku/src/kits/print/ |
H A D | BeUtilsTranslation.cpp | 53 BResources *res = BApplication::AppResources(); local 54 if (res != NULL) { 57 const void *bits = res->LoadResource(type_code, name, &length);
|
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | realpath.c | 50 char *res = NULL; local 60 res = strcpy(canonical, path); 63 return res;
|