gnu Questions
2
sys_errlist is a handy array which allows getting static errno descriptions. The alternative to it is the strerror_r function, which is available in two confusing incompatible flavors. The GNU vers...
3
Solved
sort doesn't seem to like my key specification. Why?
~/tmp $ sort --version
sort (GNU coreutils) 8.25
Packaged by Cygwin (8.25-1)
~/tmp $ echo 'a;b;c;d;e;f;g'|sort --field-separator=';' --key=1,5,...
Advocation asked 6/7, 2016 at 10:5
9
I have an application that I am porting from the Keil IDE to build with the GNU toolchain due to license issues. I have successfully be able to set up, build, flash and run the application on the d...
3
Solved
I'm trying to follow XDG directory specification on my Java application. I have already used it for application data:
protected String getDefaultDataDir() {
String rootPath = System.getenv("XDG...
Weismannism asked 7/3, 2014 at 12:28
2
I'm trying to write a linker script to write one section content into two non-contiguous memory regions.
I have found an old thread in this mail list about this:
"ld linker script and non-contiguo...
6
Solved
What is the command to match brackets in Emacs (the equivalent of the % command in Vim)?
Swirly asked 4/11, 2008 at 10:59
10
Solved
I'm trying to use GNU find to find only the directories that contain no other directories, but may or may not contain regular files.
My best guess so far has been:
find dir -type d \( -not -exec...
3
Solved
I am trying to implement an order statistics tree with using __gnu__pbds. I followed this code TREE_ORDER_STATISTICS
But, I need this on a multiset. I was suggested to use a pair to implement this...
3
I've installed ca-certificates package by sudo yum install ca-certificates command, but I get an error when trying to run sudo update-ca-certificates command, becuase it can not be found. What can ...
Sumer asked 6/9, 2022 at 10:0
6
Solved
I was just reading the glibc sscanf man page (from the Linux man-pages package) and I found the following:
The following conversion specifiers are available:
(...)
d Deprecated. Matches an opti...
3
I would like to check multiple conditions in an if loop of GNU make file. Here's an example:
ifeq ($(TEST_FLAG),TRUE && ($(DEBUG_FLAG),FALSE))
true statement
else
false statement
endif
...
Geminate asked 23/6, 2011 at 8:46
8
Solved
I have a log file that looks somewhat like this after grep my_function $LOG_FILE:
[0] my_function took 96.78581194020808 ms
[1] my_function took 82.0779490750283 ms
[2] my_function took 187.7965379...
Blois asked 27/10, 2023 at 1:36
1
I am trying to install a project which was developed on Ubuntu, but now I am trying to make it run on Max OSX - version: 10.10.5 (Yosemite).
My current ld version that comes by default with OSX:
...
9
Solved
3
Solved
I recently found this article online, that explains how to setup a make help target that will automatically parse the Makefile for comments and display a nicely formatted help command.
It parses:
...
7
Solved
What is the command to make less display line numbers in the left column?
3
I have found out about __builtin_ctzll to count trailing zeros of a 64bit int really fast through the post Intrinsic to count trailing zero bits in 64-bit integers?.
I'm a beginner to C++ and don't...
11
Under Mac OS 10.10.3, I installed gnu-sed by typing:
brew install gnu-sed --default-names
When I type it again, I get the message:
gnu-sed-4.2.2 already installed
However, even after rebooting...
7
Solved
GNU diff doesn't seem to be smart enough to detect and handle UTF-16 files, which surprises me. Am I missing an obvious command-line option? Is there a good alternative?
2
I want to run makefile with input variable. What I want is that if I write down the project name, a folder with that name will be created.
So I write read command:
CC = gcc
CFLAGS = -W -Wall
FILE...
12
5
There is very little documentation on enabling ccache on GNU/Linux. Here is a response from launchpad.net:
At the moment, I think the best way to enable ccache is to add
"/usr/lib/ccache" to th...
5
Solved
I'm looking to format a Long Float as currency in C. I would like to place a dollar sign at the beginning, commas iterating every third digit before decimal, and a dot immediately before decimal. S...
Diazole asked 27/7, 2012 at 20:1
2
Solved
3
Solved
How to set key(legend) font size in gnuplot?
I read the gnuplot introduction file and find no related configuration about this property. I can set font type and size for labels, tics, but only ke...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.