Questions tagged [systems-programming]

System programming is the activity of computer programming system software. The primary distinguishing characteristic of systems programming when compared to application programming is that application programming aims to produce software which provides services to the user, whereas systems programming aims to produce software which provides services to the computer hardware.

Wiki:

System programming is a kind of computer programming which is intended to design a system software. Systems programming is used to produce such softwares which provide services to the computer hardware. thus It requires a greater extent of hardware compatibility.

Implementing certain parts in operating system and networking requires systems programming, for example implementing Paging (Virtual Memory) or a device driver for an operating system. A System programming language like C, PL360, BLISS, D is usually used to for systems programming".

Usage:

The tag can be used for all system programming related problems. Stackoverflow is a question-answer website for programming related problems, for theoretical and other problems you can ask your system programming problems on https://www.superuser.com and https://programmers.stackexchange.com/

Read more:

408 questions
16
votes
1 answer

mmap on /proc/pid/mem

Has anybody succeeded in mmap'ing a /proc/pid/mem file with Linux kernel 2.6? I am getting an ENODEV (No such device) error. My call looks like this: char * map = mmap(NULL, PAGE_SIZE, PROT_READ, MAP_SHARED, mem_fd, offset); And I have verified…
Amittai Aviram
  • 2,270
  • 3
  • 25
  • 32
15
votes
3 answers

Learn about android internals(dive deep into the system)

Ok, guys, I think that's the right place to ask a question, because it's all about development(if I'm wrong or it's duplicate question, please tell me). So, I want to dive deep in Android, understand how system works down to the kernel(and also…
user468311
12
votes
4 answers

Fork implementation

How is fork system call code written . I want to know some details how a function can return two different values and that to two different processes . In short want to know how fork system call is implemented?
Utkarsh Srivastav
  • 3,105
  • 7
  • 34
  • 53
12
votes
2 answers

Call "main" function programmatically in Windows

I have a third-party console application. I need run it from my application but I cannot run it as a separate process (because I need to work with its dependencies: fill Import tables manually, setup hooks etc.). So probably I should call main…
11
votes
4 answers

working of fork in c language

Now I have a problem in understanding the working of fork() system call. I write a code which is following : #include int main() { int a, b; b=fork(); printf("\n the value of b = %d",b); } The output of this code is following…
Golu
  • 255
  • 1
  • 5
  • 11
11
votes
3 answers

Is it possible to uniquely identify dynamically imported functions by their name?

I used readelf --dyn-sym my_elf_binary | grep FUNC | grep UND to display the dynamically imported functions of my_elf_binary, from the dynamic symbol table in the .dynsym section to be precise. Example output would be: [...] 3: 00000000 0…
langlauf.io
  • 3,009
  • 2
  • 28
  • 45
11
votes
5 answers

how standard specify atomic write to regular file(not pipe or fifo)?

The posix standard specified that when write less than PIPE_BUF bytes to pipe or FIFO are granted atomic, that is, our write doesn't mix with other processes'. But I failed to find out how standard specify about regular file. I mean it's true that…
xudifsd
  • 770
  • 5
  • 26
11
votes
1 answer

(ORIG_EAX*4) in ptrace calls

I was going through an article here and was trying out the code snippet I have copied out below :- #include #include #include #include #include /* For constants …
user277465
10
votes
3 answers

Is it possible to implement a small Disk OS in C or C++?

I am not trying to do any such thing, but I was wondering out of curiosity whether one could implement an "entire OS" (not necessarily something big like Linux or Microsoft Windows, but more like a small DOS-like operating system) in C and/or C++…
ApprenticeHacker
  • 21,351
  • 27
  • 103
  • 153
9
votes
3 answers

How to programmatically really clean Delete files?

So you are about to pass your work-computer to some of your colleague. How do you make sure you really delete all your personal data? Re-formatting, Re-installing OS will not really solve the problem. I searched around and found some programs does…
prakash
  • 58,901
  • 25
  • 93
  • 115
9
votes
2 answers

How to take advantage of the VDSO object with your own programming language?

Recent Linux kernels (at least on amd64) provide a magic object file called linux-vdso.so.1 that abstracts away the syscall interface to the kernel, allowing the kernel to choose the optimal calling convention. If you write code in C, the glibc…
fuz
  • 88,405
  • 25
  • 200
  • 352
8
votes
1 answer

Using sigaction(), c

I was doing a little reading about sigaction() (sources are from my course notes) and I'm not sure I understand this text: The signal mask is calculated and installed only for the duration of the signal handler. By default, the signal “sig” is…
yotamoo
  • 5,334
  • 13
  • 49
  • 61
7
votes
2 answers

How to get information from device manager?

How can I, in my C# applictation, read specific information about a device? I have tried WMI and it does not provide the information that I need. The information that I want is stored in the Details tab of a device and the information I want there…
Afra
  • 2,502
  • 3
  • 24
  • 27
7
votes
2 answers

Cannot step into system call source code

I have compiled my freebsd libc source with -g option, so that now I can step in into libc functions. But I am having trouble stepping into system calls code. I have compiled the freebsd kernel source code with -g. On setting the breakpoint, gdb…
Sandeep Singh
  • 4,941
  • 8
  • 36
  • 56
7
votes
5 answers

Linux System Programming

I wanted to get into systems programming for linux and wanted to know how to approach that and where to begin. I come from a web development background (Python, PHP) but I also know some C and C++. Essentially, I would like to know: Which…
user201788
1
2
3
27 28