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
2
votes
2 answers

Remote File Memory Mapping

I was given this task to implement an API with these definitions below which allow processes to memory map sections of a file located on a remote server. I am also required to implement a client/server example. // Type definition for remote file…
buh
  • 375
  • 5
  • 18
2
votes
2 answers

NACHOS(JAVA verrsion) tutorials [setup and simple sample]

I need to setup NACHOS java version in Linux and run some simple sample . How to setup and run simple sample? need some tutorials and some computer assignment with solution with NACHOS
Sajad Bahmani
  • 17,325
  • 27
  • 86
  • 108
2
votes
3 answers

Debugging signal handlers on Linux

I've set a signal handler for SIGCHLD. Out of curiosity, I'd like to try and debug the signal handler from within gdb. Is there any way I could do that? I tried setting a breakpoint on the handler and running the binary from within gdb; however I…
user277465
2
votes
1 answer

Find all files matching a given pattern AND excluding a given pattern?

I want to find all files in a directory that match a given pattern say A and don't match a given pattern say B What I've tried: Doing "ls -I B" gives me all files which match the pattern B. But I'm not getting any leads on how to do what I want to.
dotgc
  • 500
  • 1
  • 7
  • 21
2
votes
2 answers

File permissions aren't being set correctly using the open system call

I'm currently working through "The Linux programming interface" and in chapter 4 there is an exercise where we have to rewrite the "tee" command. I've done this, but no matter what I do my file permissions (held in variable of type mode_t) aren't…
LainIwakura
  • 2,871
  • 2
  • 19
  • 22
2
votes
1 answer

is it possible a simultaneous run of main thread and its child thread in c

I have to read some file (logs) from a server using thread program in c. The program should remain simultaneous means on one hand this child thread should be executing and on same time main thread should be informing time of its child tread. So in…
Akaks
  • 461
  • 3
  • 21
2
votes
2 answers

How I can assign alternate stack for SIGSEGV?

I'm registering SIGSEGV (for Segmentation fault) Using sigaction() function. It working in all cases but except one case i.e. when stack is overflowing.I searched to resolve this problem. Then I get the answer, we have to assign alternate Stack. But…
gangadhars
  • 2,584
  • 7
  • 41
  • 68
2
votes
1 answer

How to use watchdog on Windows 7

I have a single board computer with Intel i5 CPU and Windows 7 32-bit installed. My application runs on Windows 7 and is the only application on the system (application does computer vision stuff; based on a video stream). So I'm interested in using…
Malik Çelik
  • 302
  • 1
  • 13
2
votes
1 answer

How to start/stop printer?

How do you pause/unpause a print queue using the CUPS API? Using CUPS API I can check the printer-state using cupsGetOption(). If this returns a value of 5, I know the printer is stopped or paused. I'd like to unpause the printer in this case, is…
trueinViso
  • 1,354
  • 3
  • 18
  • 30
2
votes
1 answer

Hide removable drive in the MS Windows explorer?

How can I hide the removable drive e.g. flash memory from the user in the MS Windows explorer ? I want to hide the removable drive from the user and then do some operation on that e.g. delete some files or read some files from that and then show the…
user31587
  • 145
  • 1
  • 9
2
votes
4 answers

contiguously space on hard disk - NTFS

My question is about file allocation methods on NTFS Fs. I have two main questions - When i create a file on NTFS, is it stored contiguously on the physical hard disk? if not - is there a way to create a file such that when i write to it the data…
2
votes
2 answers

Conserve /proc/PID/ after process exists

I want the /proc/PID/ directory of a process to be conserved for some time even after the exit of the program ,so that its "grand parent" can check out the resource usage from /proc/PID/stat. I can't use wait4() since I am concerned about the…
PaulDaviesC
  • 1,161
  • 3
  • 16
  • 31
2
votes
1 answer

select works only once

/* Wait up to 1 min */ tv.tv_sec = 60; tv.tv_usec = 0; FD_ZERO(&readfd); FD_ZERO(&writefd); for(i=0;i<3;i++) { FD_SET(my_rdfd[i], &readfd); FD_SET(my_wrfd[i], &writefd); } for(int i=0;i<10;i++) { retval…
2
votes
1 answer

why is a buffer local to main( ), and then fail to explicitly close the streams a bug?

I was learning linux system programming, O'reilly. It says "A common mistake is to declare the buffer as an automatic variable in a scope that ends before the stream is closed. Particularly, be careful not to provide a buffer local to main(),and…
shanwu
  • 1,493
  • 6
  • 35
  • 45
2
votes
1 answer

An exported aliases symbol doesn't exist in PDB file (RegisterClipboardFormat has RegisterWindowMessage internal name)

I'm trying to set a breakpoint in user32!RegisterClipboardFormat Evidently, this function is exported (link /dump /exports - it is right there). Before downloading the PDB file from the Microsoft symbol server, I'm able to find this function: 0:001>…