aboutsummaryrefslogtreecommitdiff
path: root/string/envz.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-10-09 21:56:43 +0000
committerUlrich Drepper <drepper@redhat.com>1999-10-09 21:56:43 +0000
commitc1422e5b7cdb4400f934c91bcefa3a1a96d789fb (patch)
tree7f8981b86c4ce4b5bb899f690eeb03d6645826a5 /string/envz.h
parenta4a1492eb94de4f5c5ec84a5898e994fca5f317b (diff)
downloadglibc-c1422e5b7cdb4400f934c91bcefa3a1a96d789fb.zip
glibc-c1422e5b7cdb4400f934c91bcefa3a1a96d789fb.tar.gz
glibc-c1422e5b7cdb4400f934c91bcefa3a1a96d789fb.tar.bz2
Update.
Patch by khendricks@ivey.uwo.ca [libc/1382].
Diffstat (limited to 'string/envz.h')
-rw-r--r--string/envz.h38
1 files changed, 18 insertions, 20 deletions
diff --git a/string/envz.h b/string/envz.h
index f9a8e69..1595a95 100644
--- a/string/envz.h
+++ b/string/envz.h
@@ -1,6 +1,5 @@
/* Routines for dealing with '\0' separated environment vectors
- Copyright (C) 1995, 1996, 1998 Free Software Foundation, Inc.
- Written by Miles Bader <miles@gnu.ai.mit.edu>
+ Copyright (C) 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
@@ -31,14 +30,13 @@
__BEGIN_DECLS
/* Returns a pointer to the entry in ENVZ for NAME, or 0 if there is none. */
-extern char *envz_entry __P ((__const char *__restrict __envz,
- size_t __envz_len,
- __const char *__restrict __name));
+extern char *envz_entry (__const char *__restrict __envz, size_t __envz_len,
+ __const char *__restrict __name) __THROW;
/* Returns a pointer to the value portion of the entry in ENVZ for NAME, or 0
if there is none. */
-extern char *envz_get __P ((__const char *__restrict __envz, size_t __envz_len,
- __const char *__restrict __name));
+extern char *envz_get (__const char *__restrict __envz, size_t __envz_len,
+ __const char *__restrict __name) __THROW;
/* Adds an entry for NAME with value VALUE to ENVZ & ENVZ_LEN. If an entry
with the same name already exists in ENVZ, it is removed. If VALUE is
@@ -46,27 +44,27 @@ extern char *envz_get __P ((__const char *__restrict __envz, size_t __envz_len,
return NULL, although envz_entry will still return an entry; this is handy
because when merging with another envz, the null entry can override an
entry in the other one. Null entries can be removed with envz_strip (). */
-extern error_t envz_add __P ((char **__restrict __envz,
- size_t *__restrict __envz_len,
- __const char *__restrict __name,
- __const char *__restrict __value));
+extern error_t envz_add (char **__restrict __envz,
+ size_t *__restrict __envz_len,
+ __const char *__restrict __name,
+ __const char *__restrict __value) __THROW;
/* Adds each entry in ENVZ2 to ENVZ & ENVZ_LEN, as if with envz_add(). If
OVERRIDE is true, then values in ENVZ2 will supersede those with the same
name in ENV, otherwise not. */
-extern error_t envz_merge __P ((char **__restrict __envz,
- size_t *__restrict __envz_len,
- __const char *__restrict __envz2,
- size_t __envz2_len, int __override));
+extern error_t envz_merge (char **__restrict __envz,
+ size_t *__restrict __envz_len,
+ __const char *__restrict __envz2,
+ size_t __envz2_len, int __override) __THROW;
/* Remove the entry for NAME from ENVZ & ENVZ_LEN, if any. */
-extern void envz_remove __P ((char **__restrict __envz,
- size_t *__restrict __envz_len,
- __const char *__restrict __name));
+extern void envz_remove (char **__restrict __envz,
+ size_t *__restrict __envz_len,
+ __const char *__restrict __name) __THROW;
/* Remove null entries. */
-extern void envz_strip __P ((char **__restrict __envz,
- size_t *__restrict __envz_len));
+extern void envz_strip (char **__restrict __envz,
+ size_t *__restrict __envz_len) __THROW;
__END_DECLS