system-calls
With the x86 chips, are there any INT instructions other than with 0x80?
I know Linux provide int 0x80 fo开发者_开发技巧r trapping into a system call but are there any others and what are their uses?That\'s a pretty broad question but yes, the x86 chip allows a wide variet[详细]
2023-02-06 02:22 分类:问答How to use lseek to read the last character of a file
I\'m trying to read the char开发者_如何学Goacters from a file in reverse order using lseek. So far, I have:[详细]
2023-02-05 05:12 分类:问答When starting a system call, how are user-mode ss and esp saved, e.g. in linux?
I know user-mode ss/esp should be saved into the kernel-mode stack for later restore. The question is that to locate kernel-mode stack, ss/esp have to be loaded with the corresponding kernel-mode val[详细]
2023-02-04 20:16 分类:问答source code for execve() and fork() [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.[详细]
2023-02-04 00:17 分类:问答Meaning of address' in System.map file
What does this address specify? 开发者_运维知识库Address of where these are loaded in memory?The kernel starts at a fixed location in the virtual address space of a process. The linux kernel usually [[详细]
2023-02-03 15:27 分类:问答Interrupt Descriptor Table (IDT)modification
In the flow of control in linux kernel, found that control moves to IDT which has the location of interrupts(ex: 0x80 system call). And then control moves to the appropriate System call. Also read tha[详细]
2023-02-03 08:12 分类:问答How can I embed inline assembly to call sys_unlink?
I am try to make a call to sys_unlink using inline assembly, like this: int sys_unlink(const char *filename) {[详细]
2023-02-02 03:48 分类:问答Is there any remotely cross platform way to execute an external process?
I was looking for advice on how to execute a process that is somewhat cross platform. I have written Java and Ruby implementations of my app, but its less of a language specific problem and more of a[详细]
2023-02-01 00:41 分类:问答Linux system call getifaddr c++
in my c++ application I\'ve wrriten t开发者_如何学运维his code: struct ifaddrs *ifap; if (0 != getifaddrs(&ifap)) {[详细]
2023-01-31 00:48 分类:问答linux system call getpeername c++
In my c++ application I\'m using getpeername system call and it return 0.0.0.0 in the var sa. there is no error in errno, and the return code is 0.[详细]
2023-01-30 13:28 分类:问答