Lines Matching defs:status
35 zx_status_t status = _zx_thread_legacy_yield(0u);
36 CHECK_EQ(status, ZX_OK);
41 zx_status_t status = _zx_nanosleep(_zx_deadline_after(ZX_USEC(useconds)));
42 CHECK_EQ(status, ZX_OK);
49 zx_status_t status = _zx_clock_read(utc_clock, &time);
50 CHECK_EQ(status, ZX_OK);
58 zx_status_t status =
61 CHECK_EQ(status, ZX_OK);
103 zx_status_t status = _zx_futex_wait(reinterpret_cast<zx_futex_t *>(p), cmp,
105 if (status != ZX_ERR_BAD_STATE) // Normal race.
106 CHECK_EQ(status, ZX_OK);
110 zx_status_t status = _zx_futex_wake(reinterpret_cast<zx_futex_t *>(p), count);
111 CHECK_EQ(status, ZX_OK);
145 zx_status_t status = ZX_OK;
149 status = _zx_vmar_allocate(
155 if (status == ZX_OK)
157 return status;
165 zx_status_t status = GetSanitizerHeapVmar(&vmar);
166 if (status != ZX_OK)
167 return status;
169 status = _zx_vmar_map(gSanitizerHeapVmar, options, vmar_offset, vmo,
173 if (status == ZX_ERR_NO_RESOURCES || status == ZX_ERR_INVALID_ARGS) {
176 status = _zx_vmar_map(_zx_vmar_root_self(), options, vmar_offset, vmo,
182 return status;
190 zx_status_t status = _zx_vmo_create(size, 0, &vmo);
191 if (status != ZX_OK) {
192 if (status != ZX_ERR_NO_MEMORY || die_for_nomem)
193 ReportMmapFailureAndDie(size, mem_type, "zx_vmo_create", status,
201 status = TryVmoMapSanitizerVmar(ZX_VM_PERM_READ | ZX_VM_PERM_WRITE,
205 if (status != ZX_OK) {
206 if (status != ZX_ERR_NO_MEMORY || die_for_nomem)
207 ReportMmapFailureAndDie(size, mem_type, "zx_vmar_map", status,
235 zx_status_t status = _zx_vmar_allocate(
239 if (status != ZX_OK)
240 ReportMmapFailureAndDie(init_size, name, "zx_vmar_allocate", status);
254 zx_status_t status = _zx_vmo_create(map_size, 0, &vmo);
255 if (status != ZX_OK) {
256 if (status != ZX_ERR_NO_MEMORY || die_for_nomem)
257 ReportMmapFailureAndDie(map_size, name, "zx_vmo_create", status);
264 status =
268 if (status != ZX_OK) {
269 if (status != ZX_ERR_NO_MEMORY || die_for_nomem) {
270 ReportMmapFailureAndDie(map_size, name, "zx_vmar_map", status);
296 zx_status_t status =
298 if (status == ZX_ERR_INVALID_ARGS && target_vmar == gSanitizerHeapVmar) {
301 status = _zx_vmar_unmap(_zx_vmar_root_self(),
304 if (status != ZX_OK)
305 ReportMunmapFailureAndDie(addr, size, status, raw_report);
358 zx_status_t status = _zx_vmo_create(size, 0, &vmo);
359 if (status != ZX_OK) {
360 if (status != ZX_ERR_NO_MEMORY)
361 ReportMmapFailureAndDie(size, mem_type, "zx_vmo_create", status, false);
374 status = TryVmoMapSanitizerVmar(ZX_VM_PERM_READ | ZX_VM_PERM_WRITE,
377 if (status == ZX_OK) {
384 status = _zx_object_get_info(vmar_used, ZX_INFO_VMAR, &info, sizeof(info),
386 if (status == ZX_OK) {
388 status = _zx_vmar_map(
392 if (status == ZX_OK)
396 if (status == ZX_OK && addr != map_addr)
397 status = _zx_vmar_unmap(vmar_used, map_addr, addr - map_addr);
398 if (status == ZX_OK && end != map_end)
399 status = _zx_vmar_unmap(vmar_used, end, map_end - end);
403 if (status != ZX_OK) {
404 if (status != ZX_ERR_NO_MEMORY)
405 ReportMmapFailureAndDie(size, mem_type, "zx_vmar_map", status, false);
424 zx_status_t status =
427 CHECK_EQ(status, ZX_OK);
439 zx_status_t status = _zx_vmo_create(size, 0, &vmo);
440 if (status == ZX_OK) {
441 status = _zx_vmo_write(vmo, reinterpret_cast<const void *>(beg), 0, size);
444 return status == ZX_OK;