Michael Kerrisk
acddbaea0c
Removed trailing white space at end of lines
2008-10-07 10:58:44 +02:00
Michael Kerrisk
9f6293c4ea
tstamp
2008-10-06 16:39:20 +02:00
Michael Kerrisk
7f546896f5
tstamp
2008-10-06 16:26:23 +02:00
Michael Kerrisk
e8f4a1c928
getcwd.3: wfix (remove duplicate word)
2008-10-05 06:50:51 +02:00
Michael Kerrisk
6a0f91ccfa
readdir.3: SEE ALSO: add getdents(2)
...
Because readdir() is implemented on top of getdents(2).
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-29 15:08:04 +02:00
Michael Kerrisk
efb92ba155
getdents.2, readdir.3: d_type is currently only supported on ext[234]
...
As at kernel 2.6.27, only ext[234] support d_type.
On other file systems, d_type is always set to DT_UNKNOWN (0).
Reported-by: Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-29 15:06:36 +02:00
Michael Kerrisk
c42ad30f8c
fma.3: Add some source code comments explaining two domain error cases.
...
Two of the "domain error" cases described on this page are treated in
the same way on Linux, but POSIX.1 specifies some optional differences
for the two cases. Make life easier for future page reviewers/editors
by adding some comments explaining that POSIX.1-2001 distinguishes
the two cases.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Nicolas François <nicolas.francois@centraliens.net>
2008-09-29 13:42:58 +02:00
Nicolas François
69cb728c2f
wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-29 13:24:36 +02:00
Nicolas François
11c87468b9
nextafter.3: Make description more precise: s/next/largest/
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-29 13:22:21 +02:00
Nicolas François
166f4f1630
floor.3: Fix error in description: s/smallest/largest/
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-29 13:21:55 +02:00
Nicolas François
f010f3a2ce
ffix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-29 13:05:56 +02:00
Nicolas François
4718ba1c3b
atan2.3: Fix error in description of range or return value
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
In recent changes to the man page, mtk accidentally cganged
the description of the return value range to -pi/2..pi/2;
the corect range is -pi..pi.
2008-09-29 13:01:44 +02:00
Marko Kreen
7d557e75c0
strcpy.3: Revert earlier change to example strncpy() calls
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
I browsed the changes there and found a buggy code snippet:
2008-09-29 12:01:26 +02:00
Nicolas François
553f115ece
cmsg.3: Add parentheses after macro names.
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-29 11:33:04 +02:00
Nicolas François
178d104e83
Minor wording fixes
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-29 11:09:52 +02:00
Nicolas François
44e5793157
Typo and wording fixes
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-29 11:00:36 +02:00
Michael Kerrisk
16d023bce2
grfix
2008-09-29 08:48:18 +02:00
Michael Kerrisk
247ac1d3da
mg_getattr.3: mq_getattr() and mq_setattr() are layered on mq_getsetattr(2)
...
mq_getattr() and mq_setattr() are library functions layered on
top of the mq_getsetattr(2) system call.
(This is useful info for users of strace(1).)
2008-09-29 05:51:25 +02:00
Michael Kerrisk
c89e428bcd
mq_receive.3: mq_send() is a library function layered on mq_timedreceive() syscall
...
This info is useful for users of strace(1).
2008-09-29 05:40:37 +02:00
Michael Kerrisk
5496c8c1d2
mq_send.3: mq_send() is a library function layered on mq_timedsend() syscall
...
This info is useful for users of strace(1).
2008-09-29 05:36:48 +02:00
Michael Kerrisk
bf0e2b8a8e
realpath.3: clarify that returned pathname is NULL terminated
...
Also clarify that null-byte is included in PATH_MAX limit.
2008-09-26 07:22:00 +02:00
Michael Kerrisk
d0cb7cc649
grfix: s/null terminated string/null-terminated string/
2008-09-26 07:13:25 +02:00
Michael Kerrisk
f9db4400fd
ctime.3: clarify mktime()'s use of tm_isdst
...
Describe use of tm_isdst for input to mktime();
explain how mktime() modifies this field.
(This field is left unchanged in case of error.)
Reported-by: Eugene V. Lyubimkin <jackyf.devel@gmail.com>
Debian bug 500178
2008-09-26 06:48:22 +02:00
Michael Kerrisk
ef38dda012
ctime.3 Minor rewording
...
Clarify wording for ctime_r() and asctime_r() to indicate that
the bffer must be at least 26 *bytes*.
2008-09-26 06:05:54 +02:00
Michael Kerrisk
9ef659a9a8
ctime.3: minor rewording of mktime() description.
2008-09-26 06:02:10 +02:00
Michael Kerrisk
8fe528b35b
ffix
2008-09-26 05:02:12 +02:00
Michael Kerrisk
63e3731b2c
tstamp
2008-09-25 11:11:08 +02:00
André Goddard Rosa
7b80ee9bff
strcpy.3: Avoid redundantly filling the position 'n - 1' two times in strncpy() example code
...
When we use 'strncpy(buf, str, n)', strncpy() will fill chars from 0..(n - 1).
As we force the character at position 'n - 1' to be '\0' anyway, don't fill
it in strncpy() before.
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-25 10:12:33 +02:00
André Goddard Rosa
ed7bbec7a5
hsearch.3: Call hdestroy() after using hash table created by hcreate(), for the sake of completeness
...
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-25 10:02:19 +02:00
Michael Kerrisk
3fe44d51dd
Tweak check of 'val' after tsearch() call.
2008-09-23 15:38:33 +02:00
George Spelvin
7134d7e62c
Clarify closedir()'s treatment of underlying file descriptor.
...
At the end of the paragraph in opendir(3) describing fdopendir(), I
think it's worth adding "The file descriptor will be closed when
closedir() is called." It's a bit ambiguous if the file descriptor
is closed or "given back" at closedir time.
(I've tested this and verified that it's true, BTW.)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-23 08:55:50 +02:00
Michael Kerrisk
6dea120e68
Fix 'dir' argument name: should be 'dirp'.
...
POSIX.1-2008 and glibc call this argument 'dirp' (consistent
with the fact that it is a *pointer* to a DIR structure).
2008-09-23 08:45:52 +02:00
Michael Kerrisk
2390bfe8fd
Add feature test macro to example program
...
tdestroy() needs _GNU_SOURCE.
2008-09-23 08:22:22 +02:00
André Goddard Rosa
6fa5dff6b4
tsearch.3: dispose properly of allocated resources in example code
...
As there are many users who base their own code on these examples,
we should avoid leaking memory when using functions of tsearch() family.
In the provided example, tsearch() leaks memory whenever it tries to
insert a number which was already inserted before.
Also: include use of tdestroy() in example program.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-23 08:20:29 +02:00
Michael Kerrisk
3e7a52936d
Fix 'dir' argument name: should be 'dirp'.
...
The page formerly used both 'dir' and 'dirp'(!).
POSIX.1-2008 and glibc call this argument 'dirp' (consistent
with the fact that it is a *pointer* to a DIR structure).
2008-09-23 04:25:35 +02:00
Michael Kerrisk
d4e9903bb7
Removed trailing white space at end of lines
2008-09-10 12:39:34 +00:00
Michael Kerrisk
da1eef3d9d
tstamp
2008-09-10 10:35:15 +00:00
Michael Kerrisk
30da961413
tstamp
2008-09-10 10:19:15 +00:00
Michael Kerrisk
19eee0a623
s/stat(2)/lstat(2)/ when discussin d_type (since we
...
are talking about a case where we might be interested to
whether the file itself is a symbolic link).
2008-09-10 10:18:53 +00:00
Michael Kerrisk
9da1822fd8
tfix
2008-09-10 09:18:38 +00:00
Michael Kerrisk
d6a591bc7f
tfix
2008-09-10 09:05:33 +00:00
Michael Kerrisk
eeeffe2d3b
grfix
2008-09-10 03:41:35 +00:00
Michael Kerrisk
6dec79368a
tstamp
2008-09-09 05:48:35 +00:00
Michael Kerrisk
79bf8cdcf3
Document fopencookie(3), a library function that allows
...
custom implementation of a stdio stream.
2008-09-09 05:48:00 +00:00
Michael Kerrisk
037273a620
Describe "shift sequence" input.
2008-09-08 13:50:13 +00:00
Michael Kerrisk
5b0dc1baed
s/time zone/timezone/ for consistency across pages and with POSIX.1.
2008-09-07 04:17:25 +00:00
Michael Kerrisk
e957764019
Rewrite description of getdate_r() and integrate into main text
...
(rather than describing in NOTES).
Other parts rewritten for greater clarity.
Make it clearer in the main text that glibc does not implement %Z;
remove discussion of that point from NOTES.
Added an example program.
2008-09-07 04:11:07 +00:00
Michael Kerrisk
b905d225d2
Add "Link with -lrt" to SYNOPSIS; remove now redundant
...
sentence mentioning librt from NOTES.
2008-09-05 10:04:06 +00:00
Michael Kerrisk
0927f4c5cf
tweaks
2008-09-03 10:32:22 +00:00
Michael Kerrisk
74f7e82aa9
Updated changelog
2008-09-03 08:09:40 +00:00