summaryrefslogtreecommitdiff
path: root/gnulib/doc/posix-functions/gettimeofday.texi
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib/doc/posix-functions/gettimeofday.texi')
m---------gnulib0
-rw-r--r--gnulib/doc/posix-functions/gettimeofday.texi37
2 files changed, 37 insertions, 0 deletions
diff --git a/gnulib b/gnulib
deleted file mode 160000
-Subproject 4fc10daa05477586fea99b6b3ca02a87d1102fa
diff --git a/gnulib/doc/posix-functions/gettimeofday.texi b/gnulib/doc/posix-functions/gettimeofday.texi
new file mode 100644
index 00000000..fda59a3e
--- /dev/null
+++ b/gnulib/doc/posix-functions/gettimeofday.texi
@@ -0,0 +1,37 @@
+@node gettimeofday
+@section @code{gettimeofday}
+@findex gettimeofday
+
+POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/gettimeofday.html}
+
+Gnulib module: gettimeofday
+
+Portability problems fixed by Gnulib:
+@itemize
+@item
+This function is missing on some platforms:
+mingw.
+@item
+This function is declared with a nonstandard function prototype (only one
+argument, or ``...'' after the first argument) on some platforms.
+@item
+On some platforms, the second argument has type @code{struct
+timezone*} rather than @code{void *}, making it an error to redeclare
+the function with the POSIX signature:
+glibc.
+However, rather than penalize these systems with a replacement
+function, gnulib defines @code{GETTIMEOFDAY_TIMEZONE} to the
+appropriate type for use in avoiding a compiler warning if assigning
+@code{gettimeofday} to a function pointer.
+@item
+On some platforms, @code{gettimeofday} clobbers the buffer in which
+@code{localtime} returns its result:
+MacOS X 10.0.
+@end itemize
+
+Portability problems not fixed by Gnulib:
+@itemize
+@item
+Behavior is non-portable if the second argument to @code{gettimeofday}
+is not @code{NULL}.
+@end itemize