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
60 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
224 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
331 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
141 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
436 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
242 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
205 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 ...