/fuchsia/zircon/third_party/ulib/musl/src/internal/ |
H A D | locale_impl.h | 28 #define LCTRANS(msg, lc, loc) __lctrans(msg, (loc)->cat[(lc)]) 29 #define LCTRANS_CUR(msg) __lctrans_cur(msg)
|
/fuchsia/zircon/third_party/ulib/musl/src/ipc/ |
H A D | msgrcv.c | 3 #include <sys/msg.h>
|
/fuchsia/zircon/system/utest/vdso-base/ |
H A D | vdso-base.c | 21 char msg[128]; local 24 snprintf(msg, sizeof(msg), "dlopen(\"libzircon.so\") failed: %s", 26 EXPECT_NONNULL(lm, msg); 29 snprintf(msg, sizeof(msg), "dlclose failed: %s", dlerror()); 30 EXPECT_EQ(ok, 0, msg); 37 snprintf(msg, sizeof(msg), "zx_object_get_property failed: %d", status); 38 EXPECT_EQ(status, 0, msg); 59 char msg[128]; local [all...] |
/fuchsia/zircon/third_party/uapp/mkfs-msdosfs/ |
H A D | newfs_msdos.c | 43 #define argto1(arg, lo, msg) argtou(arg, lo, 0xff, msg) 44 #define argto2(arg, lo, msg) argtou(arg, lo, 0xffff, msg) 45 #define argto4(arg, lo, msg) argtou(arg, lo, 0xffffffff, msg) 46 #define argtox(arg, lo, msg) argtou(arg, lo, UINT_MAX, msg) 167 static unsigned int argtou(const char* arg, unsigned int lo, unsigned int hi, const char* msg) { argument 174 errx(1, "%s: bad %s", arg, msg); 181 argtooff(const char* arg, const char* msg) argument [all...] |
/fuchsia/zircon/system/host/bootserver/ |
H A D | netboot.c | 33 static int io_rcv(int s, nbmsg* msg, nbmsg* ack) { argument 58 if (msg) { 59 if (ack->cookie > msg->cookie) { 94 static int io_send(int s, nbmsg* msg, size_t len) { argument 100 int r = write(s, msg, len); 121 static int io(int s, nbmsg* msg, size_t len, nbmsg* ack, bool wait_reply) { argument 139 if (msg && len > 0) { 140 msg->magic = NB_MAGIC; 141 msg->cookie = cookie++; 162 r = io_rcv(s, msg, ac 238 nbmsg* msg = (void*)msgbuf; local [all...] |
/fuchsia/zircon/system/utest/thread-state/ |
H A D | thread-state.cpp | 110 static bool recv_msg(zx_handle_t channel, Message* msg) { argument 120 tu_channel_read(channel, 0, &data, &num_bytes, &msg->handles[0], &msg->num_handles); 127 msg->type = static_cast<MessageType>(data); 128 unittest_printf("received message %u\n", msg->type); 133 Message msg; local 134 ASSERT_TRUE(recv_msg(channel, &msg)); 135 ASSERT_EQ(msg.type, expected_type); 139 static void do_msg_thread_handle_request(zx_handle_t channel, const Message* msg) { argument 140 if (msg 149 do_msg_sleep_test(zx_handle_t channel, const Message* msg) argument 160 do_msg_futex_test(zx_handle_t channel, const Message* msg) argument 173 do_msg_port_test(zx_handle_t channel, const Message* msg) argument 203 do_msg_channel_test(zx_handle_t channel, const Message* msg) argument 241 do_msg_wait_one_test(zx_handle_t channel, const Message* msg) argument 273 do_msg_wait_many_test(zx_handle_t channel, const Message* msg) argument 319 do_msg_interrupt_test(zx_handle_t channel, const Message* msg) argument 350 Message msg; local 443 Message msg; local [all...] |
/fuchsia/zircon/system/ulib/syslog/include/syslog/ |
H A D | logger.h | 102 const char* tag, const char* msg, ...); 112 const char* tag, const char* msg, va_list args); 122 const char* tag, const char* msg);
|
/fuchsia/zircon/system/utest/core/handle-wait/ |
H A D | handle-wait.c | 138 static bool send_msg(zx_handle_t handle, enum message msg) { argument 139 uint64_t data = msg; 140 unittest_printf("sending message %d on handle %u\n", msg, handle); 147 static bool recv_msg(zx_handle_t handle, enum message* msg) { argument 159 *msg = MSG_READ_CANCELLED; 173 *msg = (enum message)data; 174 unittest_printf("received message %d\n", *msg); 181 enum message msg; local 183 ASSERT_TRUE(recv_msg(channel, &msg), "Error while receiving msg"); 250 enum message msg; local [all...] |
/fuchsia/zircon/system/ulib/fdio/ |
H A D | watcher.c | 67 // watcher process expects the msg buffer to be len + 1 in length 69 static zx_status_t fdio_watcher_process(fdio_watcher_t* w, uint8_t* msg, size_t len) { argument 72 unsigned event = *msg++; 73 unsigned namelen = *msg++; 95 uint8_t tmp = msg[namelen]; 96 msg[namelen] = 0; 99 if ((status = w->func(w->fd, event, (char*) msg, w->cookie)) != ZX_OK) { 102 msg[namelen] = tmp; 104 msg += namelen; 113 uint8_t msg[fuchsia_io_MAX_BU local [all...] |
/fuchsia/zircon/system/utest/core/object-info/ |
H A D | object-info.cpp | 257 char msg[32]; local 258 snprintf(msg, sizeof(msg), "zx_vmar_map: [%zd]", i); 259 EXPECT_EQ(s, ZX_OK, msg); 318 char msg[128]; local 319 snprintf(msg, sizeof(msg), 323 LTRACEF("%s\n", msg); 325 EXPECT_GT(entry->depth, 1u, msg); 328 msg); 390 char msg[128]; local 469 char msg[32]; local 671 char msg[128]; local 742 char msg[128]; local 781 char msg[64]; local 847 char msg[32]; local [all...] |
/fuchsia/zircon/system/ulib/fidl/include/lib/fidl/ |
H A D | bind.h | 15 // dispatch function that decodes the |msg| and calls through an |ops| table. 25 fidl_msg_t* msg, const void* ops);
|
H A D | coding.h | 22 zx_status_t fidl_encode_msg(const fidl_type_t* type, fidl_msg_t* msg, 29 zx_status_t fidl_decode_msg(const fidl_type_t* type, fidl_msg_t* msg, 37 zx_status_t fidl_validate_msg(const fidl_type_t* type, const fidl_msg_t* msg,
|
/fuchsia/zircon/system/utest/cleanup/ |
H A D | cleanup.c | 12 static const char* msg = "This is a test message, please discard."; variable 48 r = zx_channel_write(p1[0], 0, &msg, sizeof(msg), &event, 1); 72 r = zx_channel_write(p0[0], 0, &msg, sizeof(msg), &p1[1], 1);
|
/fuchsia/zircon/kernel/object/ |
H A D | message_packet.cpp | 39 // Creates a MessagePacket in |msg| sufficient to hold |data_size| bytes and |num_handles|. 47 fbl::unique_ptr<MessagePacket>* msg) { 68 msg->reset(new (packet) MessagePacket(chain, data_size, payload_offset, 70 // The MessagePacket now owns the BufferChain and msg owns the MessagePacket. 77 uint32_t num_handles, fbl::unique_ptr<MessagePacket>* msg) { 87 *msg = fbl::move(new_msg); 93 fbl::unique_ptr<MessagePacket>* msg) { 103 *msg = fbl::move(new_msg); 46 CreateCommon(uint32_t data_size, uint32_t num_handles, fbl::unique_ptr<MessagePacket>* msg) argument 76 Create(user_in_ptr<const void> data, uint32_t data_size, uint32_t num_handles, fbl::unique_ptr<MessagePacket>* msg) argument 92 Create(const void* data, uint32_t data_size, uint32_t num_handles, fbl::unique_ptr<MessagePacket>* msg) argument
|
/fuchsia/zircon/kernel/lib/fbl/ |
H A D | arena_tests.cpp | 81 char msg[32]; local 82 snprintf(msg, sizeof(msg), "[%d]", i); 84 EXPECT_NONNULL(objs[i], msg); 86 EXPECT_TRUE(arena.in_range(objs[i]), msg); 90 arena.in_range(reinterpret_cast<TestObj*>(objs[i]) + 1), msg); 93 EXPECT_EQ(static_cast<size_t>(i + 1), arena.DiagnosticCount(), msg); local 98 char msg[32]; local 99 snprintf(msg, sizeof(msg), "[ 112 EXPECT_EQ(static_cast<size_t>(i), arena.DiagnosticCount(), msg); local 130 char msg[32]; local 316 char msg[32]; local 361 char msg[32]; local 378 char msg[32]; local 430 char msg[32]; local [all...] |
/fuchsia/zircon/third_party/ulib/backtrace/ |
H A D | print.c | 69 error_callback (void *data, const char *msg, int errnum) argument 75 fprintf (stderr, "libbacktrace: %s", msg);
|
/fuchsia/zircon/kernel/include/ |
H A D | debug.h | 86 void _panic_no_format(const char *msg, size_t len) __NO_RETURN; 88 __NO_RETURN static inline void panic_no_format(const char* msg) { argument 89 _panic_no_format(msg, __builtin_strlen(msg));
|
/fuchsia/zircon/system/utest/fidl-simple/ |
H A D | client_tests.c | 24 char msg[1024]; local 28 status = zx_channel_read(server, 0, msg, handles, 29 sizeof(msg), ZX_CHANNEL_MAX_MSG_HANDLES, 35 fidl_message_header_t* req = (fidl_message_header_t*)msg;
|
/fuchsia/zircon/system/utest/runtests-utils/ |
H A D | log-exporter-test.cpp | 19 // the lenght of fidl message required to encode this msg object. 22 LogMessage(fbl::String msg, fbl::initializer_list<fbl::String> tags, argument 24 : msg_(msg), tags_(tags), pid_(pid), dropped_logs_(dropped_logs) {} 26 LogMessage(fbl::String msg, uint32_t dropped_logs = 0, uint64_t pid = 1024) argument 27 : LogMessage(msg, {}, dropped_logs, pid) {} 37 const fbl::String* msg() const { function in class:runtests::__anon1458::LogMessage 49 lm->msg.size = msg_.length(); 50 lm->msg.data = reinterpret_cast<char*>(FIDL_ALLOC_PRESENT); 85 // write msg 86 auto msg local 115 uint8_t msg[msg_len]; local [all...] |
/fuchsia/zircon/system/dev/block/block/ |
H A D | server.cpp | 57 void BlockComplete(BlockMsg* msg, zx_status_t status) { argument 58 auto extra = msg->extra(); 68 BlockMsg msg(static_cast<block_msg_t*>(bop->cookie)); 69 BlockComplete(&msg, status); 85 uint64_t dev_offset, block_msg_t* msg, BlockMsgQueue* queue) { 86 block_op_t* bop = &msg->op; 93 bop->cookie = msg; 94 queue->push_back(msg); 239 auto msg = in_queue_.begin(); 241 msg 84 InQueueAdd(zx_handle_t vmo, uint64_t length, uint64_t vmo_offset, uint64_t dev_offset, block_msg_t* msg, BlockMsgQueue* queue) argument 344 BlockMsg msg; local 429 BlockMsg msg; local [all...] |
/fuchsia/zircon/system/host/netprotocol/ |
H A D | netprotocol.h | 22 } msg; typedef in typeref:struct:__anon581 54 int netboot_txn(int s, msg* in, msg* out, int outlen);
|
/fuchsia/zircon/system/ulib/fs/ |
H A D | unmount.cpp | 19 uint8_t msg[FIDL_ALIGN(sizeof(fuchsia_io_DirectoryAdminUnmountRequest)) + FDIO_CHUNK_SIZE]; local 20 auto request = reinterpret_cast<fuchsia_io_DirectoryAdminUnmountRequest*>(msg); 21 auto response = reinterpret_cast<fuchsia_io_DirectoryAdminUnmountResponse*>(msg);
|
/fuchsia/zircon/system/ulib/pretty/ |
H A D | test.c | 105 char msg[128]; local 110 snprintf(msg, sizeof(msg), "format_size_fixed(bytes=%zd, unit=%c)", 112 EXPECT_STR_EQ(tc->expected_output, str, msg); 114 EXPECT_EQ(&(str[0]), ret, msg); 126 char msg[128]; local 132 snprintf(msg, sizeof(msg), 134 EXPECT_EQ(&(buf[0]), ret, msg); 137 (uint8_t*)expected_output, (uint8_t*)buf, str_size - 1, msg); [all...] |
/fuchsia/zircon/system/utest/fdio/ |
H A D | fdio_path_canonicalize.c | 21 char msg[PATH_MAX * 3 + 128]; \ 22 sprintf(msg, "[%s] --> [%s], expected [%s]", in, out, out_gold); \ 23 EXPECT_EQ(strcmp(out, out_gold), 0, msg); \
|
/fuchsia/zircon/third_party/ulib/musl/src/network/ |
H A D | ns_parse.c | 31 int ns_initparse(const unsigned char* msg, int msglen, ns_msg* handle) { argument 34 handle->_msg = msg; 35 handle->_eom = msg + msglen; 38 NS_GET16(handle->_id, msg); 39 NS_GET16(handle->_flags, msg); 41 NS_GET16(handle->_counts[i], msg); 44 handle->_sections[i] = msg; 45 r = ns_skiprr(msg, handle->_eom, i, handle->_counts[i]); 48 msg += r; 53 if (msg ! 157 ns_name_uncompress(const unsigned char* msg, const unsigned char* eom, const unsigned char* src, char* dst, size_t dstsiz) argument [all...] |