Skip to main content

Questions tagged [system-programming]

All questions regarding programming, tweaking and configuring of Unix & Linux core system as a whole or a sub-set of it.

Filter by
Sorted by
Tagged with
0 votes
0 answers
32 views

I am building keyboard multiplexer. My current plan is to connect two devices through Bluetooth, and let my wired USB keyboard switch between these two devices. My first instinct is to build Two-...
MRINAL YADAV's user avatar
1 vote
2 answers
867 views

Good days. I have a little problem. I have this function in bash script function denyCheck(){ file=$(readlink -f $(which $(printf "%s\n" "$1"))) if [[ -x $file ]];then ...
cleanet's user avatar
  • 13
0 votes
0 answers
221 views

Does setting TCP_NODELAY turn off the auto corking behavior? Is there a way to disable it on a per connection basis?
Jason Nordwick's user avatar
0 votes
1 answer
529 views

I need to check filesystem type on a thumb drive in my C++ application. It must be done before mounting a new partition. I also prefer not to call system() function. I tried to use the following test ...
user6758's user avatar
2 votes
1 answer
2k views

there seems to be a common issue with Lenovo ThinkPad and the Intel CPUs being throttled to 400mhz per core: https://forums.lenovo.com/t5/ThinkPad-L-R-and-SL-series/L380-stuck-on-0-4-GHz-when-loading/...
Jannies - They do it for free's user avatar
1 vote
1 answer
1k views

I am trying my hand on Linux Signals. Where I have created a scenario mentioned below: Initially block all SIGINT signals using sigprocmask(). If sender send SIGUSR1 signal then unblock SIGINT for ...
MankPan's user avatar
  • 77
5 votes
4 answers
9k views

I have recently purchased myself an HP rack server for use as a personal fileserver. This server currently lives under my bed as I have nowhere else to put it. For those not aware (as I was not ...
James Stone's user avatar
1 vote
1 answer
119 views

Is there a good description of exactly what each of the flags you can pass to personality(2) does? I'm particularly interested in STICKY_TIMEOUTS, but a general detailed description of all of them ...
Omnifarious's user avatar
  • 1,412
-2 votes
1 answer
883 views

I wrote a c++ program using some libraries called linbox, givaro, gmp. Now because my computer is to slow I want to run my program on a supercomputer. I am not very familiar with networks and my ...
Valentin's user avatar
1 vote
1 answer
211 views

I know about xdg-mime which can query the mapping from MIME filetype to associated desktop application. But this can return mappings to non-existent applications, e.g. $ xdg-mime default non-...
Adam Spiers's user avatar
1 vote
1 answer
3k views

On linux I can create a new tun/tap device in C using something like: int fd = open("/dev/net/tun", O_RDWR); ioctl(fd, TUNSETIFF, (void *)&ifr); This will create a new network interface in the ...
michas's user avatar
  • 21.9k
-1 votes
2 answers
133 views

`clear echo "testing calc" date echo -e "======================================" yc1=0 yc2=0 yc3=0 lol=0 tnd=0 lno=0 c1=0 c1b=0 c2=0 c2b=0 c3=0 c3b=0 bb=12 wt=100 con=768 rip=0 sw=0 echo "" echo "" ...
Mudassir Mubin Baig's user avatar
0 votes
1 answer
649 views

Say I'm implementing a programming language which has an interactive mode, and that interactive mode reads some ~/.foo_rc file in the user's home directory. The file contains code in that language ...
Kaz's user avatar
  • 8,897
1 vote
0 answers
458 views

I have usb bluetooth device which is using btusb 0.6 module (driver). The thing is I am interested to know is: how is the systemctl start bluetooth.service event invoked? I was looking info about ...
user390525's user avatar
0 votes
2 answers
8k views

While comparing between linking loader and linkage editor I came across a point that in case of linking loader linking and relocation takes place for each execution of the program( and happens at time ...
Kir's user avatar
  • 1
2 votes
2 answers
2k views

C provides library functions such as write(),read().. for system calls.How to make a system call without using any library in linux in C ?
saurav1405's user avatar
2 votes
1 answer
244 views

Generally, systems provide a library or API that sits between normal programs and the operating system. On Unix-like systems, that API is usually part of an implementation of the C library (libc), ...
saurav1405's user avatar
3 votes
5 answers
3k views

How can i setup monitoring to my system services? Either using automated script which scan every moment, if httpd, mysqld, and my custom daemon is running or not, if not running it will automatically ...
user avatar
-1 votes
3 answers
4k views

The program in general is I want to implement telnet program. On the client side user send its logging name and password, and if it is correct he starts to send commands to the server On the Server ...
MUE's user avatar
  • 317
0 votes
2 answers
717 views

I am a student of Instrumentation and Control. Considering the versatility and stability of Linux, I was wondering if Linux can be configured to act as a Distributed Control System? Also if yes, ...
VedVals's user avatar
  • 115
2 votes
1 answer
888 views

I am running Archlinux in a chroot alongside Chrome OS on a chromebook. The original project is there, my fork of it is here (mostly similar). The issue is that the display power management of Chrome ...
agravier's user avatar
  • 121
7 votes
2 answers
15k views

Is there an easy way to find out which header file a C function declaration is in? cding into /usr/include and running (grep -E 'system.*\(' *.h -R) works with some trial and error, but isn't there an ...
Khaja Minhajuddin's user avatar
5 votes
3 answers
3k views

I'm trying to wrap my head how shells move the screen cursor around (Moving around input the arrow keys and such). I've been doing a lot of testing, and I haven't found any system call that allows ...
Champo's user avatar
  • 153
7 votes
2 answers
8k views

I have only a very basic idea about linux system programming. I have not done any real projects using linux system programming. In my current company I do system admin type work, but I am more ...
LinuxPenseur's user avatar
3 votes
4 answers
196 views

Is there any SDK for developers under Linux? I mean more than man pages, it would be more like MSDN Library or Windows SDK under windows, where all documentation about programming and developer guide ...
uray's user avatar
  • 3,998