mkerrisk / man-pages Goto Github PK
View Code? Open in Web Editor NEWLinux man-pages
Home Page: http://man7.org/linux/man-pages/index.html
Linux man-pages
Home Page: http://man7.org/linux/man-pages/index.html
Can you clarify that when using ADJ_TAI that you need to fill in TAI-UTC, so currently +37, and not UTC-TAI as published by BIPM and currently -37?
It would also be useful to describe what happens to the clocks. I assume that CLOCK_REALTIME doesn't change, and that CLOCK_TAI will be CLOCK_REALTIME + buf.constant. I also assume that buf.tai will be set to buf.constant on return.
As per the man page, I have defined _GNU_SOURCE
before the inclusion of <fcntl.h>
:
#include <stdio.h>
#define _GNU_SOURCE /* For Linux's fallocate(). */
#define HAVE_FALLOCATE 1
#include <fcntl.h>
int main(void)
{
printf("%d\n", FALLOC_FL_KEEP_SIZE);
}
which I compiled with:
gcc-13 -std=gnu2x c.c
But this fails with:
error: `FALLOC_FL_KEEP_SIZE` undeclared (first use in this function)
Some stats about the environment:
OS: Linux Mint 21.2 x86_64
Kernel: 5.15.0-112-generic
GLIBC Version: GNU C Library (Ubuntu GLIBC 2.35-0ubuntu3.8) stable release 2.35
Compiler: gcc version 13.1.0 (Ubuntu 13.1.0-8ubuntu1~22.04)
Running grep -r FALLOC_FL_KEEP_SIZE /usr/include
returned:
/usr/include/linux/falloc.h:#define FALLOC_FL_KEEP_SIZE 0x01 /* default is extend size */
/usr/include/linux/falloc.h: * with fallocate. Flag FALLOC_FL_KEEP_SIZE should cause the inode
So they are present in <linux/falloc.h>
. StackOverflow says that the error is in the man page. And that <fcntl.h>
doesn't provide any of the FALLOC_...
constants.
man2/pciconfig_{write,read,iobase}.2
man3/{db,btree,dbopen,hash,mpool,recno}.3
deprecated by libxcrypt
man3/crypt{,_r}.3
sccs is no longer used: ( from the posix man pages )
/man1p/{admin,delta,get,prs,rmdel,sact,sccs,unget,val,what}.1p
Why is there no entry for the X windowing system?
In the example program on the man page, we are doing semget()
call but checking for the shmget() failure
.
Of the nameserver
keyword, the man page states,
If there are multiple servers, the resolver library queries them in the order listed.
and,
(The algorithm used is to try a name server, and if the query times out, try the next, until out of name servers, then repeat trying all the name servers until a maximum number of retries are made.)
These are implementation details of glibc and relying on this behaviour introduces a number of subtle problems that commonly trip people up.
I think glibc's behaviour should be documented in glibc's documentation, and the text of the man page should be change to something like:
If there are multiple servers, they must all provide the same "view" of the DNS.
and
(Behaviour varies between different resolvers regarding how multiple servers are interpreted.)
Or perhaps the parenthetical remark should be removed altogether.
Can we have some basic commands available to read here in this repo's README.md?
Not really an issue, just a question. The stdarg functions man pages point to the man page for stdarg.h. There's a man page for stdio.h too but the stdio functions also have their own man pages. Why are these two the only header files with man pages?
man 7 signal, the below part has an error:
"Input" socket interfaces, when a timeout (SO_RCVTIMEO) has been set on the socket using setsockopt(2): accept(2), recv(2), recvfrom(2), recvmmsg(2) (also with a non-NULL timeout argument), and recvmsg(2).
"Output" socket interfaces, when a timeout (SO_RCVTIMEO) has been set on the socket using setsockopt(2): connect(2), send(2), sendto(2), and sendmsg(2).
I suppose that for Output socket interfaces, the option should be SO_SNDTIMEO not SO_RCVTIMEO.
Please fix it.
The man page for the command "date" needs updated to clarify a "+" is needed before the format arguments.
For example it lists: date [OPTION]... [+FORMAT]
But no example later on that specifies "+" needs included before the listed format options. Moving the "+" outside the brackets and providing an example could further clarify.
I believe this is the correct location but I can't seem to locate the man page for this command to push corrections.
The 't' flag is text mode versus binary mode 'b'.
It is possible for mkdir(2) to return EINVAL in certain circumstances. However, the man page mkdir(2) doesn't mention that.
I am hitting it on overlayfs. Other instances reported:
http://stackoverflow.com/questions/10015377/mkdir-pathname-with-symbol
http://lists.opensuse.org/opensuse-bugs/2009-05/msg01771.html
(and many others)
So, it needs to be documented in man page for mkdir(2).
In the section Ranges
, the last example given states that:
... and "[--0]" matches the three characters '-', '.', '0', since '/' cannot be matched.)
Upon trial,
ls -a | grep [--0]
does not return anything containing a .
.
I would change it myself, but I have very little experience with GitHub (and maybe too much experience with semantics).
Yesterday I had to timestamp messages received from a TCP socket. I found that there is SO_TIMESTAMP
, but it uses struct timeval
which AFAIK is obsolete.
Then I found in the web some pages that talk about SO_TIMESTAMPNS
, but I couldn't find clear documentation about it, and there is absolutely nothing in the man
pages.
So I had to try. I tried SO_TIEMSTAMPNS
, and it does work, so I think it should be documented.
EDIT: I've found there is a 4-years old FIXME:
Line 29 in a48d191
In the example provided in the Description section, #include <xys.h> should be #include <xyz.h> to agree with the description.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.