502 questions
18
votes
2
answers
1k
views
Weird syntax in system call declarations in Linux man pages: `void buf[count]` (array of void)
Some versions of documentation declare certain functions like parameters declared in the signature and, e.g., Arch Linux:
ssize_t read(size_t count;
int fd, void buf[count], size_t count);...
0
votes
1
answer
62
views
How would you generate a copy of a Yocto project's man pages for offline references?
Often in embedded systems, storage is a bit limited. Hence, you rather not bundle in all the man pages onboard. Later on, I still want to access the manual pages for the specific package versions ...
0
votes
1
answer
106
views
´Opening local text files like they were x-man-page:// URLs
MacOS has a set of defined URLs for manpages under x-man-page://command.
You can open these from a web browser or directly from Terminal with the command open x-man-page://command, which opens a nice ...
0
votes
0
answers
47
views
`man` in package.json does not work for scoped npm package
having a npm package where added man in the package.json and also generate the man file with .1
below is the folder structure
.
├── bin
│ └── health-check.js
├── CHANGELOG.md
├── docs
│ └── gh-...
2
votes
1
answer
226
views
Why is GNU GLIBC strsignal() considered thread unsafe on modern operating systems?
Background
First of all, I know the general reason strsignal() is not threading safe is the standard says it may not be.
The strsignal() GNU C standard library function is defined in the POSIX.1-2008 ...
1
vote
0
answers
333
views
Including a man page when installing project with cargo
I'm creating a CLI tool in Rust. I have written a man page for it (i.e., a file for use with Linux's man command). I want to include it with my project, such that people can cargo install my-project ...
-1
votes
1
answer
58
views
Conflicting instructions between manpages and running help on the command
I was recently trying to understand why running pip install --upgrade wasn't upgrading some packages in my virtualenv.
Being on Ubuntu 22.04, I turned to the manpages for help.
There I found the ...
0
votes
1
answer
143
views
man no longer works in Cygwin
I have cygwin version 3.4.10-1.x86_64 installed on my windows 7 machine. Until recently I could call man on any topic, e.g. $ man man; $man ls, etc. and the relevant man page would be displayed. I ...
0
votes
0
answers
437
views
Why ENODEV is not documented for setsockopt call?
setsockopt call may fail with ENODEV error, see Error "No such device" in call setsockopt when joining multicast group and what is the cause of ENODEV error from setsockopt for example. ...
0
votes
0
answers
34
views
Is there any reason why threads are not executed completely while a C program is running? [duplicate]
I'm practicing with threads in Linux and I'm wondering why the code was written like this:
#include <pthread.h>
#include <stdio.h>
pthread_attr_t attr;
struct thread_info {
pthread_t ...
1
vote
2
answers
66
views
Cygwin: man column contains unexpected characters instead of - (minus sign, hyphen), is it expected?
Cygwin: man column contains unexpected characters instead of - (minus sign, hyphen):
# cygwin
$ man column | grep -P 'table.*truncate' | od -c
0000000 - T , - ...
-1
votes
1
answer
93
views
Unfamiliar notation in manpage mmap(2): void addr[.length]
What does the notation void addr[.length] in mmap(2) mean? I could interpret void *addr or size_t length, but what is the semantics of this "mixed" notation?
0
votes
0
answers
25
views
Is there a direct way to know the dispatch order of errnos from manpage?
Background
I am implementing syscall wrappers for libc. As a natural requirement, I will need to add unit tests to the wrappers. I rely heavily on https://man7.org/linux/man-pages/dir_all_alphabetic....
4
votes
1
answer
247
views
Linux man page terminology: `[.n]`?
In some man pages, e.g. https://man7.org/linux/man-pages/man3/memchr.3.html, I see the following:
void *memchr(const void s[.n], int c, size_t n);
What is the significance or interpretation of ...
2
votes
1
answer
210
views
What is the purpose of the 3type man page section in the online man-pages project, and how can I install them locally?
man getaddrinfo shows me documentation for the getaddrinfo() function without my having to search online.
The various structs defined in libc are equally useful to learn about but don't appear in my ...
0
votes
0
answers
50
views
man pages convention: (square)bracket annotation in C function prototypes [duplicate]
The [.len] annotation to the first argument — is that documented somewhere?
I could not find it here: https://man7.org/linux/man-pages/man7/man-pages.7.html
I guess it is supposed to add clarity to ...
0
votes
2
answers
68
views
man is using system installtion of less, ignoring PATH
On my machine, I have the latest version of less installed through homebrew.
Around the time me updating to macOS 14, I noticed my man stopped loading less in the latest version. If I run man man and ...
3
votes
1
answer
3k
views
What exactly does curl --connect-to flag do? [closed]
I feel like this is a new flag, there's not much about it online.
The man pages explains it, but it doesn't make a lot of sense to me. I found a command that uses it as a DNS resolver i.e:
curl host1 -...
2
votes
1
answer
397
views
How to get C11 threads (and other) man pages on linux system
I can't find manual pages for any of the functions declared in threads.h added in C11.
There is good documentation for them in https://en.cppreference.com/w/c/11
and in the glibc docs, however I would ...
0
votes
1
answer
274
views
"man docker" displays No manual entry for docker. OS relesse is CentOS Linux release 7.6.1810
I install docker from a binary file which is at https://download.docker.com/linux/static/stable/x86_64/docker-20.10.0.tgz.
I execute this command in the shell:
man docker
It displays:
[root@localhost ...
1
vote
2
answers
864
views
Install C standard library man pages on macOS
I recently updated the 2020 M1 Macbook pro I use for school to macOS Ventura, 13.4.1. Since then, I haven't been able to access C standard library man pages from the terminal. Any idea how I can ...
0
votes
0
answers
35
views
How to list available options of git sub command
I know that there is git stash show -p to show the diff of the stash. But When I do git stash show -h it does not show the available options. Where can I find the available options for git stash show ...
0
votes
2
answers
252
views
How do I specify troff man page generation & installation using CMake?
I'm trying to switch a Makefile-based build to using CMake. I'm ok with specifying the build of the app itself, but - there's also a man (manual) page, in TROFF format.
How do I tell CMake to process ...
3
votes
2
answers
15k
views
What is the purpose of strlcpy and what was in the first version of its manual page?
By reading the man of strlcpy I met example:
Since it is known how many characters were copied the first time,
things can be sped up a bit by using a copy instead of an append:
char *dir, *file, ...
1
vote
1
answer
139
views
Writing a ELisp function to make man open in another window
So I know that Man-notify-method controls this, but I like to have the option to open it in the same window. By default, I have it to pushy. Currently, I have:
(global-set-key (kbd "H-m s") '...
5
votes
0
answers
1k
views
Manual pages for Linux kernel development? [closed]
I am taking an operating system course that requires making modifications to the Linux kernel. I would like to be able to view concise information on functions like proc_create, macros like __init , ...
-2
votes
1
answer
213
views
Man page NAME (and the line under it) and DESCRIPTION (and lines under) in grep or
I am trying to condense a list of man pages for various tools to just:
NAME
ls – list directory contents
DESCRIPTION
For each operand that names a file of a type other than directory, ls ...
0
votes
2
answers
193
views
How to get meaningful help pages for aws CLI subcommands like `aws s3 cp`?
I'm trying to figure out what options there are for the aws s3 cp CLI command but neither of the following work.
When I use --help or -h I get the following useless CLI output that doesn't say ...
4
votes
1
answer
85
views
Git Index has files without using `add`
The git index allows us to specify the files that go into a new tree object - such a tree object is what any newly created commit object will point to.
I'm aware that using git add <filename> ...
2
votes
1
answer
1k
views
In the linux_dirent64 structs written in the Linux syscall getdents64, why is d_off not the sum of the d_reclens of all earlier entries?
According the man page of getdents:
d_off is the distance from the start
of the directory to the start of the next linux_dirent. d_reclen
is the size of this entire linux_dirent.
So I would expect ...
0
votes
1
answer
824
views
How to page up or down in `man` of powershell
With command help or its alias man, we can display the docs of a command in shell. But how to browse it? I found we can go to next line by pressing <Enter> or jump by <p>, but how to page ...
0
votes
1
answer
159
views
MacOS man utility seems to be broken
My "man" utility on MacOS Ventura 13.1 seems to be broken. When I try running "man ls" from the command line I get:
/usr/bin/man: eval: line 413: unexpected EOF while looking for ...
-1
votes
1
answer
29
views
How can I best use a manpage tar ball? (untar + search + read) [closed]
During an offiline C programming exam, we only have access to a tarball of the latest man pages (https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/).
The man pages installed on the system ...
2
votes
1
answer
104
views
How to set all arguments of the Title line in manpage written in reStructuredText, converted to groff with pandoc
How can I get pandoc to properly set all of the arguments in the "Title line" (.TH) when converting from a .rst file to a man file?
According to the documentation man man-pages, the "...
1
vote
1
answer
140
views
Missing ".TH" section when converting .rst file to groff format in pandoc (reStructuredText, manpage)
What should I put in a source reStructuredText file to populate the "Title Heading" (.TH) line in the destination file when using pandoc to convert it to groff-format?
I have a python ...
2
votes
1
answer
208
views
how can I install section 0p of man pages?
On my pc with debian 11 installed, I only have sections 1 to 9 of the manual. However on the online linux manual there's also a section 0p containing the C header files, in which I am interested: is ...
-1
votes
1
answer
200
views
Is this a pbcopy command garbled bug?
Is this a pbcopy command garbled bug?
If so, is there a way to fix it?
I've tried a few ways but still can't found why this is happened.
error / bug
Steps to reproduce
# 1. copy output
$ man grep | ...
0
votes
1
answer
134
views
Is there a syntax change in manpage for zsh vs bash?
I've recently wrote a manpage, which display properly in bash shell. However, in zsh the man return an error message: /bin/zsh: can't open input file: man. Is there a difference in man syntax between ...
2
votes
0
answers
558
views
I cannot find the man page for malloc on my Ubuntu WSL
So far I have tried man malloc and man 3 malloc
additionally, I have updated my system with sudo apt update, sudo apt upgrade, sudo apt install man-db and sudo apt install manpages-posix
I can search ...
1
vote
0
answers
33
views
How to understand "not just in arguments where it is alone" in find -exec command {} man page ;
I don't fully understand this sentence "not just in arguments where it is alone, as in some versions of find" when I read the mannual page in man find(1)
I know the Shell will expand '{}' ...
0
votes
2
answers
444
views
How to run gittutorial?
From the git man page:
"See gittutorial(7) to get started, then see giteveryday(7) for a useful minimum set of commands. The Git User’s Manual[1] has a more in-depth introduction."
I am ...
0
votes
1
answer
113
views
Export the man page in text form
If I output in a small window, man will automatically do a line break for the text.
How do I get the man to not automatically change lines on output?
Picture
0
votes
1
answer
211
views
Man page in C application
I'm currently working on a little project to test my knowledge in writing C applications.
I try to create a man page which shall open, once app --help is typed. How do I change the path, so when I ...
1
vote
2
answers
391
views
How to find the man page for makefiles?
I'm looking for the man pages of the makefile, and not the man pages of the make program.
The latter, I can find and read its man pages easily by running man make. But for the former, I cannot find ...
3
votes
1
answer
574
views
What is unlocked_stdio in C?
So, I was looking for random linux manual pages, when I encountered this weird one, you can see it by executing "man unlocked_stdio", or you can view it in your browser by going to this page
...
1
vote
1
answer
423
views
Need an explanation on wording of `kevent` filter
I have following lines for kevent in the man:
EVFILT_TIMER Establishes an arbitrary timer identified by ident.
When adding a timer, data specifies the moment to
...
0
votes
1
answer
90
views
Conflicting Man pages on a struct in C
I am trying to use the function inet_aton() defined as such:
inet_aton(const char *cp, struct in_addr *inp);
I don't want to explain what the function does, but I am getting conflicting Man pages ...
0
votes
0
answers
17
views
Man pages not being installed in python docker image [duplicate]
I am trying to extend a python docker image by installing some apt packages. However, I'm running into problems related to missing manual pages. Man pages don't seem to be getting installed (even ...
1
vote
3
answers
271
views
"man" command returning duplicated results in mac terminal
When I
man -k "^printf"
in terminal,
it returns duplicated results below:
printf(1) - formatted output
printf(1) - formatted output
printf(3), fprintf(3), ...
0
votes
1
answer
228
views
groff for Windows: man pages bad formatted when output in windows command prompt
From Windows command prompt I am using groff for Windows to display some man pages.
I can see that some characters are not being correctly outputted and in some case depending on the device being ...