/haiku/src/libs/compat/openbsd_wlan/crypto/ |
H A D | sha2.c | 257 SHA256Init(SHA2_CTX *context) argument 259 memcpy(context->state.st32, sha256_initial_hash_value, 261 memset(context->buffer, 0, SHA256_BLOCK_LENGTH); 262 context->bitcount[0] = 0; 426 SHA256Update(SHA2_CTX *context, const void *dataptr, size_t len) argument 435 usedspace = (context->bitcount[0] >> 3) % SHA256_BLOCK_LENGTH; 442 memcpy(&context->buffer[usedspace], data, freespace); 443 context->bitcount[0] += freespace << 3; 446 SHA256Transform(context->state.st32, context 473 SHA256Final(u_int8_t digest[], SHA2_CTX *context) argument 533 SHA512Init(SHA2_CTX *context) argument 706 SHA512Update(SHA2_CTX *context, const void *dataptr, size_t len) argument 753 SHA512Last(SHA2_CTX *context) argument 798 SHA512Final(u_int8_t digest[], SHA2_CTX *context) argument 822 SHA384Init(SHA2_CTX *context) argument 831 SHA384Update(SHA2_CTX *context, const void *data, size_t len) argument 837 SHA384Final(u_int8_t digest[], SHA2_CTX *context) argument [all...] |
/haiku/src/system/kernel/arch/x86/64/ |
H A D | thread.cpp | 271 /*! Sets up initial thread context and enters user space 327 - \c context.uc_stack: The stack currently used by the thread. 328 - \c context.uc_mcontext: The current userland state of the registers. 352 signalFrameData->context.uc_mcontext.rax = frame->ax; 353 signalFrameData->context.uc_mcontext.rbx = frame->bx; 354 signalFrameData->context.uc_mcontext.rcx = frame->cx; 355 signalFrameData->context.uc_mcontext.rdx = frame->dx; 356 signalFrameData->context.uc_mcontext.rdi = frame->di; 357 signalFrameData->context.uc_mcontext.rsi = frame->si; 358 signalFrameData->context [all...] |
/haiku/src/tests/system/kernel/unit/lock/ |
H A D | RWLockTests.cpp | 25 virtual status_t Setup(TestContext& context) argument 31 virtual void Cleanup(TestContext& context, bool setupOK) argument 37 bool TestSimple(TestContext& context) argument 50 bool TestNestedWrite(TestContext& context) argument 61 bool TestNestedWriteRead(TestContext& context) argument 76 bool TestDegrade(TestContext& context) argument 86 bool TestConcurrentWriteRead(TestContext& context) argument 88 return _RunConcurrentTest(context, 92 bool TestConcurrentWriteNestedRead(TestContext& context) argument 94 return _RunConcurrentTest(context, 98 TestConcurrentDegrade(TestContext& context) argument 107 TestConcurrentWriteReadThread(TestContext& context, void* _index) argument 113 TestConcurrentWriteNestedReadThread(TestContext& context, void* _index) argument 119 TestConcurrentDegradeThread(TestContext& context, void* _index) argument 126 _RunConcurrentTest(TestContext& context, void (RWLockTest::*method)(TestContext&, void*)) argument 162 _TestConcurrentWriteReadThread(TestContext& context, int32 threadIndex) argument 201 _TestConcurrentWriteNestedReadThread(TestContext& context, int32 threadIndex) argument 243 _TestConcurrentDegradeThread(TestContext& context, int32 threadIndex) argument [all...] |
/haiku/src/tests/system/kernel/unit/ |
H A D | TestSuite.cpp | 98 TestSuite::Run(TestContext& context) argument 101 bool result = _Run(context, test, NULL); 102 if (!result && context.Options().quitAfterFailure) 111 TestSuite::Run(TestContext& context, const char* name) argument 116 context.Print("No such test: \"%.*s\"\n", 118 return !context.Options().quitAfterFailure; 121 return _Run(context, test, separator != NULL ? separator + 2 : NULL) 122 || !context.Options().quitAfterFailure; 142 TestSuite::_Run(TestContext& context, Test* test, const char* name) argument 144 TestContext subContext(context, tes [all...] |
/haiku/src/kits/package/hpkg/ |
H A D | PackageReaderImpl.cpp | 73 virtual status_t HandleAttribute(AttributeHandlerContext* context, argument 86 return AttributeHandler::HandleAttribute(context, id, value, _handler); 89 virtual status_t Delete(AttributeHandlerContext* context) argument 91 status_t error = context->packageContentHandler->HandleEntryAttribute( 108 EntryAttributeHandler(AttributeHandlerContext* context, argument 114 _SetFileType(context, B_HPKG_DEFAULT_FILE_TYPE); 117 static status_t Create(AttributeHandlerContext* context, argument 124 context->errorOutput->PrintError("Error: Invalid package: Invalid " 131 EntryAttributeHandler(context, parentEntry, name); 139 virtual status_t HandleAttribute(AttributeHandlerContext* context, argument 224 Delete(AttributeHandlerContext* context) argument 240 _Notify(AttributeHandlerContext* context) argument 249 _SetFileType(AttributeHandlerContext* context, uint64 fileType) argument 287 HandleAttribute(AttributeHandlerContext* context, uint8 id, const AttributeValue& value, AttributeHandler** _handler) argument 445 _ParseTOC(AttributeHandlerContext* context, AttributeHandler* rootAttributeHandler) argument [all...] |
/haiku/src/system/kernel/fs/ |
H A D | vfs_tracing.h | 42 NewFD(io_context* context, int fd, file_descriptor* descriptor) argument 45 fContext(context), 53 out.Print("fd new: descriptor: %p (%" B_PRId32 "), context: %p, " 82 GetFD(io_context* context, int fd, file_descriptor* descriptor) argument 85 fContext(context), 93 out.Print("fd get: descriptor: %p (%" B_PRId32 "), context: %p, " 105 RemoveFD(io_context* context, int fd, file_descriptor* descriptor) argument 108 fContext(context), 116 out.Print("fd remove: descriptor: %p (%" B_PRId32 "), context: %p, " 128 Dup2FD(io_context* context, in argument 160 InheritFD(io_context* context, int fd, file_descriptor* descriptor, io_context* parentContext) argument 205 IOContextTraceEntry(io_context* context) argument 232 NewIOContext(io_context* context, io_context* parentContext) argument 253 FreeIOContext(io_context* context) argument 269 ResizeIOContext(io_context* context, uint32 newTableSize) argument [all...] |
H A D | fd.cpp | 46 static struct file_descriptor* get_fd_locked(struct io_context* context, 48 static struct file_descriptor* remove_fd(struct io_context* context, int fd); 94 fd_close_on_exec(struct io_context* context, int fd) argument 96 return CHECK_BIT(context->fds_close_on_exec[fd / 8], fd & 7) ? true : false; 101 fd_set_close_on_exec(struct io_context* context, int fd, bool closeFD) argument 104 context->fds_close_on_exec[fd / 8] |= (1 << (fd & 7)); 106 context->fds_close_on_exec[fd / 8] &= ~(1 << (fd & 7)); 110 /*! Searches a free slot in the FD table of the provided I/O context, and 114 new_fd_etc(struct io_context* context, struct file_descriptor* descriptor, argument 120 if (firstIndex < 0 || (uint32)firstIndex >= context 150 new_fd(struct io_context* context, struct file_descriptor* descriptor) argument 202 close_fd(struct io_context* context, struct file_descriptor* descriptor) argument 218 close_fd_index(struct io_context* context, int fd) argument 254 get_fd_locked(struct io_context* context, int fd) argument 275 get_fd(struct io_context* context, int fd) argument 284 get_open_fd(struct io_context* context, int fd) argument 301 remove_fd(struct io_context* context, int fd) argument 342 struct io_context* context = get_current_io_context(kernel); local 377 struct io_context* context; local 528 io_context* context = get_current_io_context(kernel); local 607 io_context* context = get_current_io_context(kernel); local [all...] |
/haiku/src/system/kernel/arch/arm/ |
H A D | arch_thread.cpp | 101 // context switch (lr/r14 register) 256 // store the register state in signalFrameData->context.uc_mcontext 257 signalFrameData->context.uc_mcontext.r0 = frame->r0; 258 signalFrameData->context.uc_mcontext.r1 = frame->r1; 259 signalFrameData->context.uc_mcontext.r2 = frame->r2; 260 signalFrameData->context.uc_mcontext.r3 = frame->r3; 261 signalFrameData->context.uc_mcontext.r4 = frame->r4; 262 signalFrameData->context.uc_mcontext.r5 = frame->r5; 263 signalFrameData->context.uc_mcontext.r6 = frame->r6; 264 signalFrameData->context [all...] |
/haiku/src/libs/compat/freebsd_network/compat/sys/ |
H A D | taskqueue.h | 60 typedef void (*taskqueue_callback_fn)(void *context); 64 * taskqueue_enqueue(). The context argument is given in the call to 69 typedef void (*taskqueue_enqueue_fn)(void *context); 73 void *context); 94 taskqueue_callback_fn callback, void *context); 100 void taskqueue_thread_enqueue(void *context); 111 void *context); 112 #define TIMEOUT_TASK_INIT(queue, timeout_task, priority, func, context) \ 113 _timeout_task_init(queue, timeout_task, priority, func, context); 124 #define TASKQUEUE_DEFINE(name, enqueue, context, ini [all...] |
/haiku/src/apps/cortex/RouteApp/ |
H A D | route_app_io.cpp | 82 ExportContext& context) { 84 context.beginElement(element); 85 context.beginContent(); 86 context.writeString(value); 87 context.endElement(); 92 ExportContext& context) { 95 _write_simple(_KIND_ELEMENT, "B_BUFFER_PRODUCER", context); 97 _write_simple(_KIND_ELEMENT, "B_BUFFER_CONSUMER", context); 99 _write_simple(_KIND_ELEMENT, "B_TIME_SOURCE", context); 101 _write_simple(_KIND_ELEMENT, "B_CONTROLLABLE", context); 79 _write_simple( const char* element, const char* value, ExportContext& context) argument 90 _write_node_kinds( int64 kinds, ExportContext& context) argument 114 _read_node_kind( int64& ioKind, const char* data, ImportContext& context) argument 148 _get_node_signature( const NodeManager* manager, const NodeSetIOContext* context, media_node_id node, BString& outKey, BString& outName, int64& outKind) argument [all...] |
H A D | RouteApp.cpp | 237 ExportContext& context) const { 238 context.beginElement(s_rootElement); 242 ExportContext& context) const {} //nyi: write version info +++++ 246 ExportContext& context) const { 248 context.beginContent(); 255 status_t err __attribute__((unused)) = context.writeObject(&io); 261 context.beginElement(s_routeWindowElement); 262 context.beginContent(); 269 context.writeObject(&io); 270 context 290 xmlImportBegin( ImportContext& context) argument 296 xmlImportAttribute( const char* key, const char* value, ImportContext& context) argument 301 xmlImportContent( const char* data, uint32 length, ImportContext& context) argument 306 xmlImportChild( IPersistent* child, ImportContext& context) argument 339 xmlImportComplete( ImportContext& context) argument 342 xmlImportChildBegin( const char* name, ImportContext& context) argument 362 xmlImportChildComplete( const char* name, ImportContext& context) argument [all...] |
/haiku/src/apps/debugger/user_interface/cli/commands/ |
H A D | CliStackTraceCommand.cpp | 30 CliContext& context) 33 Team* team = context.GetTeam(); 35 Thread* thread = context.CurrentThread(); 49 context.WaitForEvent(CliContext::MSG_THREAD_STACK_TRACE_CHANGED); 50 if (context.IsTerminating()) 29 Execute(int argc, const char* const* argv, CliContext& context) argument
|
H A D | CliDumpStringCommand.cpp | 50 CliContext& context) 63 if (context.EvaluateExpression(argv[1], fLanguage, address) != B_OK) 67 if (context.GetMemoryBlock(address, block) != B_OK) 49 Execute(int argc, const char* const* argv, CliContext& context) argument
|
H A D | CliVariablesCommand.cpp | 32 CliContext& context) 39 ValueNodeManager* manager = context.GetValueNodeManager(); 31 Execute(int argc, const char* const* argv, CliContext& context) argument
|
/haiku/src/kits/package/hpkg/v1/ |
H A D | PackageReaderImplV1.cpp | 61 static status_t InitData(AttributeHandlerContext* context, argument 74 static status_t Create(AttributeHandlerContext* context, argument 83 InitData(context, data, value); 89 virtual status_t HandleAttribute(AttributeHandlerContext* context, argument 104 context->errorOutput->PrintError("Error: Invalid " 119 return AttributeHandler::HandleAttribute(context, id, value, _handler); 138 virtual status_t HandleAttribute(AttributeHandlerContext* context, argument 144 return DataAttributeHandler::Create(context, 147 return DataAttributeHandler::InitData(context, 155 return AttributeHandler::HandleAttribute(context, i 158 Delete(AttributeHandlerContext* context) argument 177 EntryAttributeHandler(AttributeHandlerContext* context, BPackageEntry* parentEntry, const char* name) argument 186 Create(AttributeHandlerContext* context, BPackageEntry* parentEntry, const char* name, AttributeHandler*& _handler) argument 208 HandleAttribute(AttributeHandlerContext* context, uint8 id, const AttributeValue& value, AttributeHandler** _handler) argument 297 Delete(AttributeHandlerContext* context) argument 313 _Notify(AttributeHandlerContext* context) argument 322 _SetFileType(AttributeHandlerContext* context, uint64 fileType) argument 360 HandleAttribute(AttributeHandlerContext* context, uint8 id, const AttributeValue& value, AttributeHandler** _handler) argument 626 _ParseTOC(AttributeHandlerContext* context, AttributeHandler* rootAttributeHandler) argument [all...] |
/haiku/src/apps/cortex/Persistence/Wrappers/ |
H A D | MessageIO.cpp | 121 ExportContext& context) const { 124 context.reportError("No message data to export.\n"); 127 context.beginElement(s_element); 131 ExportContext& context) const { 134 context.writeAttr("what", m_message->what); 136 context.writeAttr("name", m_name.String()); 140 ExportContext& context) const { 169 context.beginContent(); 191 context, 201 context 218 xmlImportBegin( ImportContext& context) argument 230 xmlImportAttribute( const char* key, const char* value, ImportContext& context) argument 243 xmlImportContent( const char* data, uint32 length, ImportContext& context) argument 248 xmlImportChild( IPersistent* child, ImportContext& context) argument 267 xmlImportComplete( ImportContext& context) argument 270 xmlImportChildBegin( const char* name, ImportContext& context) argument 291 xmlImportChildAttribute( const char* key, const char* value, ImportContext& context) argument 302 xmlImportChildContent( const char* data, uint32 length, ImportContext& context) argument 310 xmlImportChildComplete( const char* name, ImportContext& context) argument 447 _exportField( ExportContext& context, BMessage* message, type_code type, const char* name, int32 index) const argument [all...] |
/haiku/src/apps/haikudepot/edits_generic/ |
H A D | UndoableEdit.h | 21 virtual status_t Perform(EditContext& context); 22 virtual status_t Undo(EditContext& context); 23 virtual status_t Redo(EditContext& context);
|
/haiku/src/tools/fs_shell/ |
H A D | fd.cpp | 74 fd_close_on_exec(struct io_context *context, int fd) argument 76 return CHECK_BIT(context->fds_close_on_exec[fd / 8], fd & 7) ? true : false; 81 fd_set_close_on_exec(struct io_context *context, int fd, bool closeFD) argument 84 context->fds_close_on_exec[fd / 8] |= (1 << (fd & 7)); 86 context->fds_close_on_exec[fd / 8] &= ~(1 << (fd & 7)); 90 /** Searches a free slot in the FD table of the provided I/O context, and inserts 95 new_fd_etc(struct io_context *context, struct file_descriptor *descriptor, argument 101 fssh_mutex_lock(&context->io_mutex); 103 for (i = firstIndex; i < context->table_size; i++) { 104 if (!context 126 new_fd(struct io_context *context, struct file_descriptor *descriptor) argument 213 get_fd(struct io_context *context, int fd) argument 243 remove_fd(struct io_context *context, int fd) argument 274 struct io_context *context = get_current_io_context(kernel); local 310 struct io_context *context; local [all...] |
/haiku/src/system/kernel/arch/x86/32/ |
H A D | thread.cpp | 195 // context switch 219 /*! Sets up initial thread context and enters user space 249 // frame.fs not used, we call x86_set_tls_context() on context switch 278 - \c context.uc_stack: The stack currently used by the thread. 279 - \c context.uc_mcontext: The current userland state of the registers. 309 // store the register state in signalFrameData->context.uc_mcontext 310 signalFrameData->context.uc_mcontext.eip = frame->ip; 311 signalFrameData->context.uc_mcontext.eflags = frame->flags; 312 signalFrameData->context.uc_mcontext.eax = frame->ax; 313 signalFrameData->context [all...] |
/haiku/src/kits/package/ |
H A D | ActivateRepositoryCacheJob.cpp | 22 ActivateRepositoryCacheJob::ActivateRepositoryCacheJob(const BContext& context, argument 26 inherited(context, title),
|
H A D | DropRepositoryRequest.cpp | 25 DropRepositoryRequest::DropRepositoryRequest(const BContext& context, argument 28 inherited(context),
|
/haiku/src/bin/network/ftpd/ |
H A D | md5c.c | 130 /* MD5 initialization. Begins an MD5 operation, writing a new context. */ 133 MD5Init (context) 134 MD5_CTX *context; 137 context->count[0] = context->count[1] = 0; 140 context->state[0] = 0x67452301; 141 context->state[1] = 0xefcdab89; 142 context->state[2] = 0x98badcfe; 143 context->state[3] = 0x10325476; 149 * context [all...] |
/haiku/src/tests/kits/net/service/ |
H A D | HttpTest.cpp | 123 BUrlContext &context, 132 &context)); 215 BUrlContext* context = new BUrlContext(); local 216 context->AcquireReference(); 230 context)); 252 CPPUNIT_ASSERT(!context->GetCookieJar().GetIterator().HasNext()); 255 context->ReleaseReference(); 263 BUrlContext* context = new BUrlContext(); local 264 context->AcquireReference(); 275 context)); 122 SendAuthenticatedRequest( BUrlContext &context, BUrl &testUrl, const std::string& expectedResponseBody, const HttpHeaderMap &expectedResponseHeaders) argument 312 BUrlContext* context = new BUrlContext(); local 428 BUrlContext context; local 464 BUrlContext context; local 500 BUrlContext context; local 604 BUrlContext* context = new BUrlContext(); local [all...] |
/haiku/headers/os/locale/ |
H A D | Catalog.h | 33 const char* context = NULL, 83 // Specifying the context explicitly with each string allows the person 85 // same string and tell which strings appears in what context of the 88 // programmer needs to define B_TRANSLATION_CONTEXT with the context he'd 112 #define B_TRANSLATE_CONTEXT(string, context) \ 113 B_CATALOG->GetString((string), (context)) 121 #define B_TRANSLATE_ALL(string, context, comment) \ 122 B_CATALOG->GetString((string), (context), \ 164 #define B_TRANSLATE_MARK_CONTEXT(string, context) (string) 170 #define B_TRANSLATE_MARK_ALL(string, context, commen [all...] |
/haiku/src/libs/compat/freebsd_iflib/ |
H A D | md5c.c | 131 /* MD5 initialization. Begins an MD5 operation, writing a new context. */ 134 MD5Init (context) 135 MD5_CTX *context; 138 context->count[0] = context->count[1] = 0; 141 context->state[0] = 0x67452301; 142 context->state[1] = 0xefcdab89; 143 context->state[2] = 0x98badcfe; 144 context->state[3] = 0x10325476; 150 * context 197 MD5Pad(MD5_CTX *context) argument 220 MD5Final(unsigned char digest[MD5_DIGEST_LENGTH], MD5_CTX *context) argument [all...] |