OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / lseek64.3
index 2c98935..7da2ac1 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright 2004 Andries Brouwer <aeb@cwi.nl>.
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
-.TH LSEEK64 3 2004-12-11 "Linux" "Linux Programmer's Manual"
+.TH LSEEK64 3 2014-08-19 "Linux" "Linux Programmer's Manual"
 .SH NAME
 lseek64 \- reposition 64-bit read/write file offset
 .SH SYNOPSIS
-.B #define _LARGEFILE64_SOURCE
+.BR "#define _LARGEFILE64_SOURCE" "     /* See feature_test_macros(7) */"
 .br
 .B #include <sys/types.h>
 .br
@@ -124,11 +126,8 @@ is a 64-bit signed type.
 The library routine
 .BR llseek ()
 .\" in libc 5.0.9, not in 4.7.6
-is available in libc5 and glibc and works without special defines.
-Its prototype was given in
-.I <unistd.h>
-with libc5, but glibc does not provide a prototype.
-This is bad, since a prototype is needed.
+is available in the glibc and works without special defines.
+However, the glibc headers do not provide a prototype.
 Users should add
 the above prototype, or something equivalent, to their own source.
 When users complained about data loss caused by a miscompilation of
@@ -154,7 +153,20 @@ The prototype is:
 .sp
 For more details, see
 .BR llseek (2).
-.SH "SEE ALSO"
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR lseek64 ()
+function is thread-safe.
+.SH SEE ALSO
 .BR llseek (2),
-.BR lseek (2),
-.BR feature_test_macros (7)
+.BR lseek (2)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.