aboutsummaryrefslogtreecommitdiff
path: root/libiberty/functions.texi
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-03-25 04:57:08 +0000
committerDJ Delorie <dj@redhat.com>2005-03-25 04:57:08 +0000
commit0fad4bdb8e54f631e012ec382b6e337e7c897502 (patch)
tree09c164d706811e70ecc00f2008a702e5ce291396 /libiberty/functions.texi
parent51e32d644ad69408eacefacd21e015a6c9c519c2 (diff)
downloadgdb-0fad4bdb8e54f631e012ec382b6e337e7c897502.zip
gdb-0fad4bdb8e54f631e012ec382b6e337e7c897502.tar.gz
gdb-0fad4bdb8e54f631e012ec382b6e337e7c897502.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/functions.texi')
-rw-r--r--libiberty/functions.texi36
1 files changed, 36 insertions, 0 deletions
diff --git a/libiberty/functions.texi b/libiberty/functions.texi
index b6e8e7a..79c8a35 100644
--- a/libiberty/functions.texi
+++ b/libiberty/functions.texi
@@ -339,6 +339,14 @@ between calls to @code{getpwd}.
@end deftypefn
+@c gettimeofday.c:12
+@deftypefn int gettimeofday (struct timeval *@var{tp}, void *@var{tz})
+
+Writes the current time to @var{tp}. This implementation requires
+that @var{tz} be NULL. Returns 0 on success, -1 on failure.
+
+@end deftypefn
+
@c hex.c:30
@deftypefn Extension void hex_init (void)
@@ -893,6 +901,15 @@ Compares the first @var{n} bytes of two strings, returning a value as
@end deftypefn
+@c strndup.c:23
+@deftypefn Extension char* strndup (const char *@var{s}, size_t @var{n})
+
+Returns a pointer to a copy of @var{s} with at most @var{n} characters
+in memory obtained from @code{malloc}, or @code{NULL} if insufficient
+memory was available. The result is always NUL terminated.
+
+@end deftypefn
+
@c strrchr.c:6
@deftypefn Supplemental char* strrchr (const char *@var{s}, int @var{c})
@@ -1008,6 +1025,16 @@ not be used in new projects. Use @code{mkstemp} instead.
@end deftypefn
+@c unlink-if-ordinary.c:27
+@deftypefn Supplemental int unlink_if_ordinary (const char*)
+
+Unlinks the named file, unless it is special (e.g. a device file).
+Returns 0 when the file was unlinked, a negative value (and errno set) when
+there was an error deleting the file, and a positive value if no attempt
+was made to unlink the file because it is special.
+
+@end deftypefn
+
@c vasprintf.c:51
@deftypefn Extension int vasprintf (char **@var{resptr}, const char *@var{format}, va_list @var{args})
@@ -1153,4 +1180,13 @@ will never return a @code{NULL} pointer.
@end deftypefn
+@c xstrndup.c:23
+@deftypefn Replacement char* xstrndup (const char *@var{s}, size_t @var{n})
+
+Returns a pointer to a copy of @var{s} with at most @var{n} characters
+without fail, using @code{xmalloc} to obtain memory. The result is
+always NUL terminated.
+
+@end deftypefn
+