mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Remove pre-ISO C support
No more __const.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/* Routines for dealing with '\0' separated environment vectors
|
||||
Copyright (C) 1995, 96, 98, 99, 2000 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995,1996,1998, 1999,2000,2012 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -31,14 +31,14 @@
|
||||
__BEGIN_DECLS
|
||||
|
||||
/* Returns a pointer to the entry in ENVZ for NAME, or 0 if there is none. */
|
||||
extern char *envz_entry (__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 __attribute_pure__;
|
||||
|
||||
/* Returns a pointer to the value portion of the entry in ENVZ for NAME, or 0
|
||||
if there is none. */
|
||||
extern char *envz_get (__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 __attribute_pure__;
|
||||
|
||||
/* Adds an entry for NAME with value VALUE to ENVZ & ENVZ_LEN. If an entry
|
||||
@ -49,21 +49,21 @@ extern char *envz_get (__const char *__restrict __envz, size_t __envz_len,
|
||||
entry in the other one. Null entries can be removed with envz_strip (). */
|
||||
extern error_t envz_add (char **__restrict __envz,
|
||||
size_t *__restrict __envz_len,
|
||||
__const char *__restrict __name,
|
||||
__const char *__restrict __value) __THROW;
|
||||
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 (char **__restrict __envz,
|
||||
size_t *__restrict __envz_len,
|
||||
__const char *__restrict __envz2,
|
||||
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 (char **__restrict __envz,
|
||||
size_t *__restrict __envz_len,
|
||||
__const char *__restrict __name) __THROW;
|
||||
const char *__restrict __name) __THROW;
|
||||
|
||||
/* Remove null entries. */
|
||||
extern void envz_strip (char **__restrict __envz,
|
||||
|
Reference in New Issue
Block a user