/haiku/src/system/libnetwork/netresolv/net/ |
H A D | getaddrinfo.c | 270 static void aisort(struct addrinfo *s, res_state res); 452 const struct addrinfo *hints, struct addrinfo **res) 468 _DIAGASSERT(res != NULL); 700 *res = sentinel.ai_next; 709 *res = NULL; 1176 const char *servname, struct addrinfo **res, struct servent_data *svd) 1191 _DIAGASSERT(res != NULL); 1224 *res = result; 1241 struct addrinfo **res, struct servent_data *svd) 1251 _DIAGASSERT(res ! 451 getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument 1175 explore_fqdn(const struct addrinfo *pai, const char *hostname, const char *servname, struct addrinfo **res, struct servent_data *svd) argument 1240 explore_null(const struct addrinfo *pai, const char *servname, struct addrinfo **res, struct servent_data *svd) argument 1306 explore_numeric(const struct addrinfo *pai, const char *hostname, const char *servname, struct addrinfo **res, const char *canonname, struct servent_data *svd) argument 1407 explore_numeric_scope(const struct addrinfo *pai, const char *hostname, const char *servname, struct addrinfo **res, struct servent_data *svd) argument 1726 getanswer(res_state res, const querybuf *answer, int anslen, const char *qname, int qtype, const struct addrinfo *pai) argument 2022 aisort(struct addrinfo *s, res_state res) argument 2050 _dns_query(struct res_target *q, const struct addrinfo *pai, res_state res, int dosearch) argument 2125 res_state res; local 2195 res_state res; local 2329 struct addrinfo hints, *res0, *res; local 2429 struct addrinfo hints, *res, *res0; local 2707 res_searchN(const char *name, struct res_target *target, res_state res) argument 2847 res_querydomainN(const char *name, const char *domain, struct res_target *target, res_state res) argument [all...] |
/haiku/src/system/libroot/posix/glibc/libio/ |
H A D | memstream.c | 135 int res; local 137 res = _IO_default_sync (fp); 138 if (res < 0) 139 return res; 182 int res; local 184 res = _IO_default_sync (fp); 185 if (res < 0) 186 return res;
|
H A D | iofwide.c | 261 size_t res; local 266 res = iconv (codecvt->__cd_out, &from_start_copy, &from_len, 269 if (res == 0 || from_len == 0) 325 size_t res; local 329 res = iconv (codecvt->__cd_out, NULL, NULL, &to_start_copy, &to_len); 331 if (res == 0) 389 size_t res; local 395 res = iconv (codecvt->__cd_in, &from_start_copy, &from_len, 398 if (res == 0) 471 size_t res; local [all...] |
/haiku/src/system/libroot/posix/musl/dirent/ |
H A D | scandir.c | 8 int scandir(const char *path, struct dirent ***res, argument 44 *res = names;
|
/haiku/src/add-ons/kernel/busses/mmc/ |
H A D | sdhci_acpi.cpp | 41 sdhci_acpi_scan_parse_callback(ACPI_RESOURCE *res, void *context) argument 45 if (res->Type == ACPI_RESOURCE_TYPE_FIXED_MEMORY32) { 46 crs->addr_bas = res->Data.FixedMemory32.Address; 47 crs->addr_len = res->Data.FixedMemory32.AddressLength; 48 } else if (res->Type == ACPI_RESOURCE_TYPE_IRQ) { 49 crs->irq = res->Data.Irq.Interrupt; 50 //crs->irq_triggering = res->Data.Irq.Triggering; 51 //crs->irq_polarity = res->Data.Irq.Polarity; 52 //crs->irq_shareable = res->Data.Irq.Shareable; 53 } else if (res [all...] |
/haiku/src/add-ons/media/media-add-ons/radeon/ |
H A D | VideoIn.cpp | 102 status_t res; local 106 if( (res = fRadeon.InitCheck()) != B_OK ) 107 return res; 109 if( (res = fCapture.InitCheck()) != B_OK ) 110 return res; 112 if( (res = fI2CPort.InitCheck()) != B_OK ) 113 return res; 130 res = fTheater->InitCheck(); 134 res = B_ERROR; 137 return res; [all...] |
H A D | Radeon.cpp | 227 status_t res; local 234 res = ioctl( fHandle, RADEON_VIPREAD, &vr, sizeof( vr )); 236 if( res == B_OK ) 259 status_t res; local 268 res = ioctl( fHandle, RADEON_VIPFIFOREAD, &vr, sizeof( vr )); 269 if( res == B_OK ) 279 status_t res; local 288 res = ioctl( fHandle, RADEON_VIPFIFOWRITE, &vw, sizeof( vw )); 290 if( res == B_OK ) 300 status_t res; local 537 status_t res; local 592 int res = clone_area( name, map, B_ANY_ADDRESS, local [all...] |
/haiku/src/add-ons/kernel/bus_managers/fdt/ |
H A D | fdt_module.cpp | 126 status_t res = gDeviceManager->register_node(parentDev, local 129 if (res < B_OK) 130 return res; 259 status_t res = gDeviceManager->publish_device(bus->node, "bus/fdt/blob", local 261 if (res < B_OK) 262 return res; 384 uint32 res = 2; local 388 return res; 392 return res; 394 res 402 uint32 res = 1; local 726 status_t res = user_memcpy(buffer, (uint8*)gFDT + pos, readSize); local [all...] |
/haiku/src/add-ons/kernel/file_systems/reiserfs/ |
H A D | hashes.cpp | 240 uint32 res; local 247 res = (*hash)((const signed char*)name, len); 250 res = GET_HASH_VALUE(res); 251 if (res == 0) 254 res = 128; 255 return res + MAX_GENERATION_NUMBER;
|
/haiku/src/add-ons/locale/catalogs/plaintext/ |
H A D | Catalog.cpp | 290 status_t res = catalogFile.SetTo(fPath.String(), local 292 if (res != B_OK) 293 return res; 301 res = catalogFile.Write(textContent.String(),textContent.Length()); 302 if (res != textContent.Length()) 303 return res; 326 res = catalogFile.Write(textContent.String(),textContent.Length()); 327 if (res != textContent.Length()) 328 return res;
|
/haiku/src/apps/resedit/ |
H A D | ResourceData.cpp | 68 ResourceData::SetFromResource(const int32 &index, BResources &res) argument 71 if (!res.GetResourceInfo(index, (type_code*)&fType, &fID, 81 char *data = (char *)res.LoadResource(fType, fID, &fLength);
|
/haiku/src/tests/system/libroot/posix/ |
H A D | tst-swscanf.c | 27 const char *res; member in struct:__anon6011 65 } else if (tests[n].retval != 0 && strcmp(buf, tests[n].res) != 0) { 68 tests[n].arg, tests[n].fmt, buf, tests[n].res);
|
/haiku/src/add-ons/kernel/bus_managers/pci/ |
H A D | pci_root.cpp | 107 status_t res = get_module(B_PCI_MODULE_NAME, &module); local 108 if (res < B_OK) 109 return res;
|
/haiku/src/add-ons/kernel/file_systems/websearchfs/ |
H A D | duckduckgo_request.cpp | 44 struct duckduckgo_result *res; local 110 while ((res = SLL_DEQUEUE(req->results, next))) { 111 res->next = NULL; 112 websearchfs_push_result_to_query(req, res);
|
/haiku/src/add-ons/media/media-add-ons/dvb/ |
H A D | DVBCard.cpp | 283 int res = 0; // silence stupid compiler warning local 286 res = ioctl(fDev, op, arg); 287 if (res >= 0) 291 return res;
|
/haiku/src/add-ons/kernel/bus_managers/scsi/ |
H A D | devices.cpp | 268 status_t res; local 323 res = B_NO_MEMORY; 330 res = B_NO_MEMORY; 349 return res; 390 status_t res; local 408 res = pnp->get_driver(node, &driver_interface, (void **)&device); 409 if (res != B_OK) 415 res = B_NO_MEMORY; 417 res = B_OK; 422 if (res ! [all...] |
H A D | emulation.cpp | 376 scsi_res_inquiry res; local 386 copy_sg_data(request, 0, transferSize, &res, sizeof(res), true); 389 res.ansi_version, res.response_data_format); 391 res.ansi_version = 2; 392 res.response_data_format = 2; 394 copy_sg_data(request, 0, transferSize, &res, sizeof(res), false);
|
/haiku/headers/private/system/arch/riscv64/ |
H A D | arch_cpu_defs.h | 182 uint64 res; \ 183 asm volatile("csrrs %0, " #value ", %1" : "=r" (res) : "r" (x)); \ 184 return res; \ 187 uint64 res; \ 188 asm volatile("csrrc %0, " #value ", %1" : "=r" (res) : "r" (x)); \ 189 return res; \
|
/haiku/src/bin/network/telnet/ |
H A D | commands.c | 2133 setpolicy(int lnet, struct addrinfo *res, char *policy) 2147 level = res->ai_family == AF_INET ? IPPROTO_IP : IPPROTO_IPV6; 2148 optname = res->ai_family == AF_INET ? IP_IPSEC_POLICY : IPV6_IPSEC_POLICY; 2193 struct addrinfo hints, *res, *res0 = NULL, *src_res, *src_res0 = NULL; 2326 error = getaddrinfo(hostname, portp, &hints, &res); 2329 error = getaddrinfo(hostname, portp, &hints, &res); 2343 gni_err = getnameinfo(res->ai_addr, res->ai_addr->sa_len, 2354 else if (res->ai_canonname != NULL) 2355 strcpy(_hostname, res 2125 setpolicy(int lnet, struct addrinfo *res, char *policy) argument 2185 struct addrinfo hints, *res, *res0 = NULL, *src_res, *src_res0 = NULL; local 2862 struct addrinfo hints, *res; local [all...] |
/haiku/src/add-ons/kernel/busses/i2c/pch/ |
H A D | pch_i2c.cpp | 258 pch_i2c_scan_parse_callback(ACPI_RESOURCE *res, void *context) argument 262 if (res->Type == ACPI_RESOURCE_TYPE_SERIAL_BUS && 263 res->Data.CommonSerialBus.Type == ACPI_RESOURCE_SERIAL_TYPE_I2C) { 265 res->Data.I2cSerialBus.SlaveAddress); 267 } else if (res->Type == ACPI_RESOURCE_TYPE_IRQ) { 268 crs->irq = res->Data.Irq.Interrupts[0]; 269 crs->irq_triggering = res->Data.Irq.Triggering; 270 crs->irq_polarity = res->Data.Irq.Polarity; 271 crs->irq_shareable = res->Data.Irq.Shareable; 272 } else if (res [all...] |
/haiku/src/tests/system/network/multicast/ |
H A D | multicat.c | 135 int res; local 142 res = select(sock + 1, &in, 0, 0, 0); 143 if (res < 0) 216 struct addrinfo hints, *res, *ai; local 225 if ((err = getaddrinfo(group, port, &hints, &res)) != 0) 227 for (ai = res; ai; ai = ai->ai_next) { 279 freeaddrinfo(res);
|
/haiku/src/add-ons/kernel/drivers/graphics/radeon/ |
H A D | CP_setup.c | 53 res = ioctl( ai->fd, RADEON_ALLOC_MEM, &am ); \ 54 if( res == B_OK ) \ 84 res = mem_alloc( di->memmgr[mem_type], asize, NULL, handle, offset ); 323 status_t res; local 340 if( res != B_OK ) { 342 return res; 396 status_t res; local 406 if( res != B_OK ) { 408 return res; 448 status_t res; local 492 status_t res; local [all...] |
/haiku/src/add-ons/kernel/busses/virtio/virtio_mmio/ |
H A D | virtio_mmio.cpp | 138 virtio_crs_find_address(acpi_resource *res, void *context) argument 142 if (res->type == ACPI_RESOURCE_TYPE_FIXED_MEMORY32) { 143 range.base = res->data.fixed_memory32.address; 144 range.length = res->data.fixed_memory32.address_length; 152 virtio_crs_find_interrupt(acpi_resource *res, void *context) argument 156 if (res->type == ACPI_RESOURCE_TYPE_EXTENDED_IRQ) 157 interrupt = res->data.extended_irq.interrupts[0]; 339 status_t res = dev->Init(regs, regsLen, interrupt, 1); 340 if (res < B_OK) 341 return res; [all...] |
/haiku/src/add-ons/kernel/drivers/disk/scsi/scsi_cd/ |
H A D | scsi_cd.cpp | 236 status_t res; local 268 res = sSCSIPeripheral->safe_exec(info->scsi_periph_device, ccb); 269 if (res != B_OK) 286 res = sSCSIPeripheral->safe_exec(info->scsi_periph_device, ccb); 291 return res; 341 status_t res; local 354 res = sSCSIPeripheral->simple_exec(info->scsi_periph_device, &cmd, 356 if (res != B_OK) 357 return res; 377 res 477 status_t res; local 561 status_t res = get_position(info, &curPos); local 607 status_t res; local [all...] |
/haiku/src/apps/haiku3d/mesh/ |
H A D | StaticMesh.cpp | 129 BResources res; local 130 if (res.SetTo(&file) != B_OK) { 136 const void* data = res.LoadResource(B_RAW_TYPE, resourceName, &size);
|