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

Determining addressibility, instruction size, opcode size. (LC-3)

So in this class we are dealing a lot with the LC-3 assembly language. For the problems on one of our homework assignments we are given this: "Suppose we have 16 general-purpose registers, 60 opcodes, an instruction size of 20 bits, and 64K bytes of…
GenericUser01
  • 337
  • 3
  • 11
  • 27
0
votes
2 answers

Virtual/Logical Memory and Program relocation

Virtual memory along with logical memory helps to make sure programs do not corrupt each others data. Program relocation does an almost similar thing of making sure that multiple programs does not corrupt each other.Relocation modifies object…
0
votes
2 answers

"Invalid argument" on the use of fcntl in C

I have been trying to understand the reason and cannot find a valid reason for Invalid Argument error given on the use of perror. Can anyone suggest the reason for this error? #include #include #include #include…
0
votes
1 answer

How can I programmatically get the connection status of OSX network services?

In the OS X System Preferences, when I click on 'Network' I see a green dot by 'Ethernet', and red dots by 'AirPort' and 'FireWire'. This is because I turned off AirPort and FireWire, as I access networks and the Internet via Ethernet. I need to…
BigBrainz
  • 43
  • 1
  • 4
0
votes
2 answers

How can i output string using Int 65H?

I need to output some string using interrupt Int 65 but its giving me error i am using Turbo C++ 4.0 Windows 7 Windows 8 64Bit Version #include #include #include #include #include void interrupt (*oldint65)(…
Bilal Maqsood
  • 1,163
  • 3
  • 15
  • 43
0
votes
4 answers

Do C and C++ standards imply that a special value in the address space must exist solely to represent the value of null pointers?

Following discussion from this question about null pointers in C and C++, I'd like to have the ending question separated here. If it can be inferred from C and C++ standards (answers can target both standards) that dereferencing a pointer variable…
oblitum
  • 11,380
  • 6
  • 54
  • 120
0
votes
2 answers

How to call UNIX sort command on data in pipe

I am creating a C program and with it I am setting up a pipe between separately forked process for interprocess communication. The first process has written the data I need into the pipe. However, with the second process reading from the pipe, I…
pleaver
  • 53
  • 1
  • 2
  • 4
0
votes
0 answers

commands in while loop not executing until after process exits

I'm trying to make a very basic Server that uses sockets to connect two different processes. When attempting to connect to the server from the client nothing happens until I end the the process, then the amount of clients I have connected to the…
TemporaryFix
  • 2,008
  • 3
  • 30
  • 54
0
votes
1 answer

Can I install a signal handler in a seperate function

I realize this is kind of a silly question that I'm pretty sure I will be able to. But, if I were to install a signal handler in a function other than main, is it safe to assume the signal handler will remain after returning from the method?
TemporaryFix
  • 2,008
  • 3
  • 30
  • 54
0
votes
1 answer

How do I share a semaphore through shared memory between child processes?

I'm trying to reproduce MapReduce with processes. I use shmget() to allocate shared memory in the parent process so each child should have access to it. The piece of memory is suppose to store a flag and a semaphore. The first child to finish sets…
whytheman
  • 129
  • 2
  • 6
0
votes
1 answer

How can we receive a volume attaching notification

When a volume is attached to file system, on Windows, the Window explorer detects the volume and refreshes automatically. I wonder the technique. How do an program(include device driver) get the notification? -Of course, it doesn’t mean a polling. I…
Benjamin
  • 10,085
  • 19
  • 80
  • 130
0
votes
1 answer

How to get Hidden Partitions in the Harddisk in VC++?

How to get Hidden Partitions in the Harddisk in VC++?
Hara
  • 1,467
  • 4
  • 18
  • 35
0
votes
1 answer

How does a portable Thread Specific Storage Mechanism's Naming Scheme Generate Thread Relative Unique Identifiers?

A portable thread specific storage reference/identity mechanism, of which boost/thread/tss.hpp is an instance, needs a way to generate a unique keys for itself. This key is unique in the scope of a thread, and is subsequently used to retrieve the…
0
votes
0 answers

Writing a process to disk

Is there a way in C/C++ to copy an entire process' runtime space into a data blob? Basically I want to be able to suspend a process sort of like what happens when a computer is hibernated. The registers, memory space (stack and heap) are all…
TheBat
  • 1,006
  • 7
  • 25
0
votes
3 answers

Checking status after wait()

After creating a child process and exiting it immediately (_exit()), I want to perform a wait and check the status. Now I wonder if in the 'else' branch of the if/else construct I also need to check for WIFSIGNALED. As far as I understand, if I…
helpermethod
  • 59,493
  • 71
  • 188
  • 276