system-calls
How do I know what is the sys error in pthread_mutex_destroy?
I\'m using the command \'pthread_mutex_destroy(&lock);\'. When I check the return value - it returns the number 16.[详细]
2023-02-22 03:02 分类:问答In Linux, on entry of a sys call, what is the value in %eax? (not orig_eax)
When a syscall returns, I get the syscall开发者_如何学编程 return value in %eax, however on entry I am getting -38, which is 0xFFFFFFDA in hex. This is for both write/read. What is this number? Can it[详细]
2023-02-21 19:13 分类:问答Where are all syscalls restored in linux?
pstrace can be used to trace all syscalls, but where are all syscall开发者_如何学Pythons restored??[详细]
2023-02-21 07:12 分类:问答Linux: Executing syscall via ptrace()
Hey :) I am currently developing a memoryhacking-library for x86/x64 Linux. The point I struggle is to implement some kind of remote syscall execution.[详细]
2023-02-20 19:55 分类:问答How does strace work?
It can trace all system calls used. But what开发者_如何学编程 differs a sys_call from a normal call??As Matthew said, strace uses the ptrace(2) system call to work its magic. ptrace is used to implem[详细]
2023-02-20 17:32 分类:问答c and LD_PRELOAD. open and open64 calls intercepted, but not stat64
I\'ve done a little shared library that tries to intercept open, open64, stat and stat64 sys calls. When I export LD_PRELOAD and run oracle\'s sqlplus, I can see the traces of the open and open64 call[详细]
2023-02-20 11:14 分类:问答in linux, is it normal that there is no null character at the end of file
in linux, is it normal that there is no null character 开发者_高级运维at the end of file? I made a empty file and open with mouse pad write az.[详细]
2023-02-20 08:42 分类:问答clone syscall and mutual exclusion
I\'m trying to practice with clone syscall and a little example of an incrementing counter shared by 2 threads. Code is as follows:[详细]
2023-02-19 06:53 分类:问答Is it true that there's no system call with more than 6 parameters in linux?
In unistd.h 开发者_运维百科there\'s _syscall0~_syscall6: _syscall6(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4,type5,arg5,type6,arg6)[详细]
2023-02-18 18:09 分类:问答How to know which function is calling system call?
I use strace to trace my app,and find it is blocked at a system call \"poll\",I want to figure out which function is calling开发者_运维问答 this system call.How?Did you compile your program with debu[详细]
2023-02-18 05:19 分类:问答