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
-1
votes
1 answer

How to implement the c malloc/realloc functions properly?

I am writing my own OS and had to implement my own malloc realloc functions. However I think that what I have written may not be safe and may also cause a memory leak because the variable isn't really destroyed, its memory is set to zero, but the…
subado512
  • 115
  • 2
  • 7
-1
votes
2 answers

How to keep run chmod when system boot up

#! /bin/sh # Carry out specific functions when asked to by the system case "$1" in start) chmod a+rwx /var/www/html/Images/* echo "success" ;; stop) ;; *) echo "Usage: /etc/init.d/image {start|stop}" exit 1 ;; esac Im…
Alvin Wee
  • 195
  • 2
  • 4
  • 16
-1
votes
1 answer

Using scandir and sorting by size

Writing a program in C that is similar to ls. My program needs to implement the -S flag, meaning it sorts whatever directory is specified (or the current one if not) by the size of its contents in bytes. Obviously you can easily do an alphabetical…
Daniel Soutar
  • 827
  • 1
  • 10
  • 24
-1
votes
1 answer

Flat addresses for TEBs in another process?

Win32 system structures like TEB, PEB and so on are easy to find for the current process, by accessing the TIB relative to FS/GS like NtCurrentTeb() and the TLS functions do. Doing the same in another process would require code injection for…
DarthGizka
  • 4,347
  • 1
  • 24
  • 36
-1
votes
2 answers

How an actual system call is made?

I have a question about how an actual system call is made. I know that the magic of system call (like read etc.) is done in C library but don’t understand the exact mechanism. My main issues are The c library routine is in user address space; then…
Rohit
  • 371
  • 4
  • 18
-1
votes
3 answers

Can't we just write a program in machine level language?

Compiler convert human understandable language into machine level language. Can't we just write a program in machine level language so that it will be easy and quick for a program to execute.
Habi
  • 161
  • 1
  • 9
-1
votes
1 answer

How to implement ssh over XMPP, by C programming?

I write xmpp bot in linux that invoke remote shell for me. Any one could intoduce my which technologies should I know about them, to write this program?
Milad Khajavi
  • 2,769
  • 9
  • 41
  • 66
-1
votes
3 answers

Working of exec family functions

I am studying exec family of functions.Its man page says,it replaces the current process image with a new process image. If it replaces the binary,then after returning back,how does it get the previous parameters of the process which called exec?As…
Radha
  • 53
  • 1
  • 8
-1
votes
1 answer

Tcp connection reset by peer when sending large data

I am trying to send 212 KByte of Buffer over a tcp socket connection but in response i am receiving RST packet and connection reset by peer error. I have changed SO_RCVBUF and SO_SBNBUF properties to 256 KB, and have verified that max_buf system…
Yogesh
  • 565
  • 3
  • 21
-2
votes
1 answer

can we specify some instructions which only execute at compile time(g++ main.cpp) not at runtime ( ./a.out) ? in C/C++

#include using namespace std; { // only run when we press ./a.out // instruction 1 } { // only run when we press g++ main.cpp or gcc main.c // instruction 2 } int main() { // other part of code } actually I…
-2
votes
1 answer

How to learn linux system programming by reading man pages?

I read man creat, man open and man close & i find man pages the best source to learn linux. But i need a read map, i want to know a list of man pages that gives the high level overview and then subsections that dive into the details. Please advise.
amin
  • 3,672
  • 5
  • 33
  • 61
-2
votes
2 answers

Can I make my own OS using c programming language

With GUI or not ? Will I make my own apps? My own files Extension can I boot my OS in an android device Sory for my bad English
Ammar
  • 66
  • 4
-2
votes
1 answer

C/C++ - working with interrupts in visual studio c++

I am a computer science student and recently learned how to use interrupts in C. after a couple of search in web I came up with this code: #include #include #include #ifdef __cplusplus #define __CPPARGS ... #else …
-2
votes
1 answer

LC-3 code confusion

For this problem we are given a problem in LC-3 and told to describe what it does and state what is contained in RESULT. Unfortunately, I am struggling hardcore with this language and I am really confused by it. I just don't understand what these…
-2
votes
1 answer

Writing an API to Interact with my own custom hardware?

Suppose I've a custom made hardware which is connected to the computer. I've my drivers installed to communicate with the hardware.Then how can I write an API through which i can access my hardware programmatically(As an example consider accessing…
1 2 3
27
28