Skip to main content

Questions tagged [linux]

Use this tag for code that specifically targets the Linux operating system (consider [unix] for more portable code that should run on other Unix-like systems).

11 votes
4 answers
1k views

I am reading "The Linux Programming Interface" by Michael Kerrisk. I'm studying about sockets, and I made a simple application using sockets on the unix domain. I want to know if I'm using ...
Super Tux's user avatar
  • 313
8 votes
1 answer
619 views

Recently I am working on implementing a shared-memory based IPC message queue in C programming language on Linux system. A few design choices I've made include The queue will have only 1 producer, ...
Yukun Jiang's user avatar
3 votes
0 answers
61 views

I wrote some PoC for load library with best optimization version during application startup. The goal for it check in the _init function code checking by cpuid ...
Jakub Juszczakiewicz's user avatar
8 votes
2 answers
478 views

We’re enforcing Azure Entra authentication across all Linux VMs, so we’ll disable all local accounts via a custom script. The script will also create a single “break-glass” user with a randomly ...
Dev's user avatar
  • 81
2 votes
1 answer
237 views

I've developed a coroutine library for C++ that is contained within a single header file. It is compatible with both Windows and Linux platforms. This library is not multi-threaded; instead, it is ...
Pangi's user avatar
  • 370
2 votes
1 answer
70 views

I am writing a discord bot that can start and stop my minecraft server. It currently works, but I am still learning NodeJS and I could use some tips on how to optimize my code. Calling a command will ...
LitWaffle's user avatar
4 votes
3 answers
296 views

I've created a script that executes arbitrary user code in Python, written in a .py file, and returns execution result (contents of stdout, stderr, exec code) + ...
MaxiMaxi's user avatar
  • 177
7 votes
3 answers
1k views

Late important updates (unified) I found, that on my Pi's Debian 12 Bookworm (arm64), there is just an older g++-12 available. ...
Vlastimil Burián's user avatar
3 votes
1 answer
195 views

Goals: Create a function char *get_next_line(int fd) such as: Repeated calls (e.g., using a loop) to your get_next_line() ...
ismbks's user avatar
  • 75
5 votes
2 answers
154 views

I’ve been working on a bash script to clean up old Docker images while keeping the latest tag for each repository and skipping images currently in use. I’m sharing the script below and would ...
Ilgar's user avatar
  • 51
3 votes
0 answers
116 views

I am working on a small MIDI router application for the Jack audio connection kit in Rust. The goal of the application is to route MIDI signals from an instrument to one or multiple applications in ...
Green 绿色's user avatar
5 votes
1 answer
109 views

I'm pretty new to x64 programming and tried to recreate parts of head for study (targeting linux). Are there any stylistic issues? The head function uses a buffer ...
Knogger's user avatar
  • 359
0 votes
1 answer
104 views

I'm new to Rust, and this is my first successful significant Rust code. It prints a prompt(which is technically a string) to the console. I'm struggling with concepts like ...
candifloss__'s user avatar
6 votes
1 answer
201 views

The function's prototype is: int processes_using(const char *name, pid_t pidlist[], int size) It searches through all processes it can to find any that have an ...
jenkins's user avatar
  • 63

15 30 50 per page
1
2 3 4 5
39