syscall_emul.hh (13570:b6484720c6a9) | syscall_emul.hh (13571:a320800ceccf) |
---|---|
1/* 2 * Copyright (c) 2012-2013, 2015 ARM Limited 3 * Copyright (c) 2015 Advanced Micro Devices, Inc. 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 288 unchanged lines hidden (view full) --- 297/// Internal pipe() handler. 298SyscallReturn pipeImpl(SyscallDesc *desc, int num, Process *p, 299 ThreadContext *tc, bool pseudoPipe); 300 301/// Target getpid() handler. 302SyscallReturn getpidFunc(SyscallDesc *desc, int num, 303 Process *p, ThreadContext *tc); 304 | 1/* 2 * Copyright (c) 2012-2013, 2015 ARM Limited 3 * Copyright (c) 2015 Advanced Micro Devices, Inc. 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 288 unchanged lines hidden (view full) --- 297/// Internal pipe() handler. 298SyscallReturn pipeImpl(SyscallDesc *desc, int num, Process *p, 299 ThreadContext *tc, bool pseudoPipe); 300 301/// Target getpid() handler. 302SyscallReturn getpidFunc(SyscallDesc *desc, int num, 303 Process *p, ThreadContext *tc); 304 |
305// Target getpeername() handler. 306SyscallReturn getpeernameFunc(SyscallDesc *desc, int num, 307 Process *p, ThreadContext *tc); 308 |
|
305// Target bind() handler. 306SyscallReturn bindFunc(SyscallDesc *desc, int num, 307 Process *p, ThreadContext *tc); 308 309// Target listen() handler. 310SyscallReturn listenFunc(SyscallDesc *desc, int num, 311 Process *p, ThreadContext *tc); 312 --- 51 unchanged lines hidden (view full) --- 364 365/// Target access() handler 366SyscallReturn accessFunc(SyscallDesc *desc, int num, 367 Process *p, ThreadContext *tc); 368SyscallReturn accessFunc(SyscallDesc *desc, int num, 369 Process *p, ThreadContext *tc, 370 int index); 371 | 309// Target bind() handler. 310SyscallReturn bindFunc(SyscallDesc *desc, int num, 311 Process *p, ThreadContext *tc); 312 313// Target listen() handler. 314SyscallReturn listenFunc(SyscallDesc *desc, int num, 315 Process *p, ThreadContext *tc); 316 --- 51 unchanged lines hidden (view full) --- 368 369/// Target access() handler 370SyscallReturn accessFunc(SyscallDesc *desc, int num, 371 Process *p, ThreadContext *tc); 372SyscallReturn accessFunc(SyscallDesc *desc, int num, 373 Process *p, ThreadContext *tc, 374 int index); 375 |
376// Target getsockopt() handler. 377SyscallReturn getsockoptFunc(SyscallDesc *desc, int num, 378 Process *p, ThreadContext *tc); 379 380// Target setsockopt() handler. 381SyscallReturn setsockoptFunc(SyscallDesc *desc, int num, 382 Process *p, ThreadContext *tc); 383 384// Target getsockname() handler. 385SyscallReturn getsocknameFunc(SyscallDesc *desc, int num, 386 Process *p, ThreadContext *tc); 387 |
|
372/// Futex system call 373/// Implemented by Daniel Sanchez 374/// Used by printf's in multi-threaded apps 375template <class OS> 376SyscallReturn 377futexFunc(SyscallDesc *desc, int callnum, Process *process, 378 ThreadContext *tc) 379{ --- 2246 unchanged lines hidden --- | 388/// Futex system call 389/// Implemented by Daniel Sanchez 390/// Used by printf's in multi-threaded apps 391template <class OS> 392SyscallReturn 393futexFunc(SyscallDesc *desc, int callnum, Process *process, 394 ThreadContext *tc) 395{ --- 2246 unchanged lines hidden --- |