The NetBSD Project

CVS log for src/lib/libc/stdlib/setenv.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libc / stdlib

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.44 / (download) - annotate - [select for diffs], Tue Jan 20 18:31:25 2015 UTC (4 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9, netbsd-8-base, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, HEAD
Changes since 1.43: +2 -3 lines
Diff to previous 1.43 (colored)

Fix non _REENTRANT build.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Nov 14 18:11:43 2010 UTC (9 years ago) by tron
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Changes since 1.42: +33 -35 lines
Diff to previous 1.42 (colored)

Improve and simplify implementation of *env(3) functions:
- Use RB tree to keep track of memory allocated via setenv(3) as
  suggested by Enami Tsugutomo in private e-mail.
  This simplifies the code a lot as we no longer need to keep the size
  of "environ" in sync with an array of allocated environment variables.
  It also makes it possible to free environment variables in unsetenv(3)
  if something has changed the order of the "environ" array.
- Fix a bug in getenv(3) and getenv_r(3) which would return bogus
  results e.g. for " getenv("A=B") " if an environment variable "A"
  with value "B=C" exists.
- Clean up the internal functions:
  - Don't expose the read/write lock for the environment to other parts
    of "libc". Provide locking functions instead.
  - Use "bool" to report success or failure.
  - Use "ssize_t" or "size_t" instead of "int" for indexes.
  - Provide internal functions with simpler interfaces e.g. don't
    combine return values and reference arguments.
  - Don't copy "environ" into an allocated block unless we really need
    to grow it.

Code reviewed by Joerg Sonnenberger and Christos Zoulas, tested by
Joerg Sonnenberger and me. These changes also fix problems in
zsh 4.3.* and pam_ssh according to Joerg.

Revision 1.42 / (download) - annotate - [select for diffs], Wed Nov 3 15:01:07 2010 UTC (9 years ago) by christos
Branch: MAIN
Changes since 1.41: +11 -6 lines
Diff to previous 1.41 (colored)

Handle the case where a program attempted to cleanup the environment by
setting *environ = NULL;

Revision 1.41 / (download) - annotate - [select for diffs], Sat Oct 16 11:23:41 2010 UTC (9 years, 1 month ago) by njoly
Branch: MAIN
Changes since 1.40: +13 -8 lines
Diff to previous 1.40 (colored)

Make setenv(3) follow the standard, by rejecting invalid strings. It
now fails with EINVAL errno when variable is NULL, empty or contains
an `=' character; or value is NULL.

Adjust the man page accordingly, and exercize them in the existing
environment testcase.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Oct 2 16:56:03 2010 UTC (9 years, 1 month ago) by tron
Branch: MAIN
Changes since 1.39: +10 -3 lines
Diff to previous 1.39 (colored)

Restore binary compatibility with applications which use putenv(3)
on constant strings (e.g. postdrop(1)):
- Don't write to the environment string passed to putenv(3).
- Don't overwrite the value of an existing environment string
  unless the memory was actually allocated by setenv(3).

Revision 1.39 / (download) - annotate - [select for diffs], Fri Oct 1 20:11:32 2010 UTC (9 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.38: +3 -22 lines
Diff to previous 1.38 (colored)

make putenv POSIX compliant.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Sep 30 12:41:33 2010 UTC (9 years, 1 month ago) by tron
Branch: MAIN
Changes since 1.37: +6 -5 lines
Diff to previous 1.37 (colored)

Be slightly more careful about freeing memory allocated for environment
variables: only free memory if the current value points to the same
memory area as the allocated block. This will prevent crashes if an
application changes the order of the environment array.

Unfortunately this is still not enough to stop zsh 4.2.* from crashing.
zsh 4.3.* works fine before and after this change.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Sep 25 19:10:37 2010 UTC (9 years, 1 month ago) by tron
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

Remember the correct pointer which we will free later.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Sep 25 18:11:40 2010 UTC (9 years, 1 month ago) by tron
Branch: MAIN
Changes since 1.35: +10 -10 lines
Diff to previous 1.35 (colored)

Remember memory used by allocated environment variables instead of
using a bitmap. This deals with the case where a variable is first
set via setenv(3) or putenv(3), then overwritten by changing
"environ" directory and afterwards overwritten with setenv(3) again.

This stops "zsh" from crashing under NetBSD-current.

Code reviewed by Christos Zoulas.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Sep 24 14:31:15 2010 UTC (9 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.34: +6 -4 lines
Diff to previous 1.34 (colored)

Fix memory leaks; thanks Enami!

Revision 1.34 / (download) - annotate - [select for diffs], Thu Sep 23 17:30:49 2010 UTC (9 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.33: +15 -6 lines
Diff to previous 1.33 (colored)

Use a bit array to keep track of malloced environment entries so we can
free them.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Sep 23 16:02:41 2010 UTC (9 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

PR/43899: Nicolas Joly: setenv(3)/unsetenv(3) memory leak.
Partial fix: Don't allocate a new string if the length is equal to the
old length, because presumably the old string was also nul terminated
so it has the extra byte needed.
The real fix is to keep an adjunct array of bits, one for each environment
variable and keep track if the entry was allocated or not so that we can
free it in unsetenv.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Dec 2 09:34:51 2009 UTC (9 years, 11 months ago) by enami
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored)

Retain old variables when failed to allocate memory.

Revision 1.31.2.2 / (download) - annotate - [select for diffs], Sat Nov 1 00:54:48 2008 UTC (11 years ago) by christos
Branch: christos-time_t
Changes since 1.31.2.1: +120 -0 lines
Diff to previous 1.31.2.1 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

use the right variable in memcpy.

Revision 1.31.2.1, Sat Nov 1 00:54:47 2008 UTC (11 years ago) by christos
Branch: christos-time_t
Changes since 1.31: +0 -120 lines
FILE REMOVED

file setenv.c was added on branch christos-time_t on 2008-11-01 00:54:48 +0000

Revision 1.31 / (download) - annotate - [select for diffs], Sat Nov 1 00:54:47 2008 UTC (11 years ago) by christos
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, christos-time_t-nbase, christos-time_t-base
Branch point for: christos-time_t
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

use the right variable in memcpy.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Oct 31 17:46:04 2008 UTC (11 years ago) by christos
Branch: MAIN
Changes since 1.29: +6 -14 lines
Diff to previous 1.29 (colored)

make __findenv return the offset for the new entry to be inserted when
the string is not found, to avoid an additional scan of the environ array
in setenv.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Feb 17 21:22:25 2005 UTC (14 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, mjf-devfs2-base, mjf-devfs2, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

remove extraneous `*' that caused a core-dump.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Feb 17 19:58:21 2005 UTC (14 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.27: +13 -12 lines
Diff to previous 1.27 (colored)

do some manual CSE.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Feb 17 19:15:38 2005 UTC (14 years, 9 months ago) by tron
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Fix lint warning caused by last change.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Feb 17 04:30:23 2005 UTC (14 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.25: +5 -6 lines
Diff to previous 1.25 (colored)

Jump to just before the copy instead of after it.  Saves 8 byte on i386.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Feb 17 04:16:09 2005 UTC (14 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.24: +13 -12 lines
Diff to previous 1.24 (colored)

Simplify, KNF and plug leaks.  Compile test only.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Feb 17 02:17:43 2005 UTC (14 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.23: +32 -37 lines
Diff to previous 1.23 (colored)

Simplify and KNF. Instead of keeping track if the pointer was allocated,
keep a copy of the pointer itself and only re-use it if the current
environment is equal to the saved pointer. Idea from OpenBSD. Avoids
problem of re-allocing a non-allocated pointer if a program resets the
environment after it has been grown.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Aug 7 16:43:44 2003 UTC (16 years, 3 months ago) by agc
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.22: +3 -7 lines
Diff to previous 1.22 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Apr 7 13:41:14 2003 UTC (16 years, 7 months ago) by kleink
Branch: MAIN
Changes since 1.21: +2 -24 lines
Diff to previous 1.21 (colored)

1003.1-2001 has introduced unsetenv() which differs from the current
implementation in not permitting a "name=value" argument.
* Add a conforming __unsetenv13() and do function renaming for
  unsetenv(); preserve old symbol with old behavior.
* Make visible setenv() and unsetenv() for 1003.1-2001 feature selection
  macros; resolves PR standards/20479.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Jan 18 11:32:04 2003 UTC (16 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Merge the nathanw_sa branch.

Revision 1.19.2.2 / (download) - annotate - [select for diffs], Tue Dec 10 06:25:54 2002 UTC (16 years, 11 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.19.2.1: +4 -3 lines
Diff to previous 1.19.2.1 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

Sync with HEAD.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Nov 11 20:39:12 2002 UTC (17 years ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.19: +4 -3 lines
Diff to previous 1.19 (colored)

Fix signed/unsigned comparison warnings.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Wed Aug 8 16:27:44 2001 UTC (18 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

_REENT -> _REENTRANT

Revision 1.19 / (download) - annotate - [select for diffs], Wed Dec 20 18:38:30 2000 UTC (18 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Branch point for: nathanw_sa
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored)

avoid nested extern declaration

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jan 22 22:19:20 2000 UTC (19 years, 10 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored)

Delint.
Remove trailing ; from uses of __weak_alias().  The macro inserts this if
needed.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Sep 20 04:39:42 1999 UTC (20 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.16: +2 -12 lines
Diff to previous 1.16 (colored)

back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Sep 16 11:45:36 1999 UTC (20 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.15: +20 -2 lines
Diff to previous 1.15 (colored)

* use _DIAGASSERT() to check pointer arguments against NULL and file
  descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
  and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

		_DIAGASSERT(path != NULL)
	#ifdef _DIAGNOSTIC
		if (path == NULL) {
			errno = EFAULT;
			return (-1);
		}
	#endif

Revision 1.15 / (download) - annotate - [select for diffs], Sun Nov 15 17:13:51 1998 UTC (21 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Changes since 1.14: +9 -6 lines
Diff to previous 1.14 (colored)

delint

Revision 1.14 / (download) - annotate - [select for diffs], Fri Sep 11 21:03:18 1998 UTC (21 years, 2 months ago) by kleink
Branch: MAIN
Changes since 1.13: +24 -6 lines
Diff to previous 1.13 (colored)

Add a multiple-reader/single-writer lock to protect environ.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Aug 10 02:43:10 1998 UTC (21 years, 3 months ago) by perry
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

bzero->memset, bcopy->memcpy, bcmp->memcmp

Revision 1.12 / (download) - annotate - [select for diffs], Tue Feb 3 18:44:20 1998 UTC (21 years, 9 months ago) by perry
Branch: MAIN
Changes since 1.11: +8 -8 lines
Diff to previous 1.11 (colored)

remove obsolete register declarations

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jan 30 23:38:05 1998 UTC (21 years, 9 months ago) by perry
Branch: MAIN
Changes since 1.10: +24 -27 lines
Diff to previous 1.10 (colored)

update to lite-2

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Fri Jan 30 21:42:01 1998 UTC (21 years, 9 months ago) by perry
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +25 -27 lines
Diff to previous 1.1.1.1 (colored)

import lite-2

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jul 21 14:09:04 1997 UTC (22 years, 4 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.9: +8 -2 lines
Diff to previous 1.9 (colored)

If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jul 13 20:16:56 1997 UTC (22 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.8: +7 -7 lines
Diff to previous 1.8 (colored)

Add local.h for local prototypes.
Fix namespace issues for strtoq and strtouq
Fix gcc warnings.
Fix RCSID's

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Wed Sep 18 02:43:00 1996 UTC (23 years, 2 months ago) by jtc
Branch: ivory_soap2
Changes since 1.8: +8 -2 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

snapshot namespace cleanup: stdlib

Revision 1.8 / (download) - annotate - [select for diffs], Thu Dec 28 08:52:49 1995 UTC (23 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: nsswitch, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Branch point for: ivory_soap2
Changes since 1.7: +7 -2 lines
Diff to previous 1.7 (colored)

New-style RCS ids.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jun 14 05:19:57 1995 UTC (24 years, 5 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

add explicit return type

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Tue May 2 19:36:43 1995 UTC (24 years, 6 months ago) by jtc
Branch: ivory_soap
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

#include "namespace.h"

Revision 1.6 / (download) - annotate - [select for diffs], Tue Feb 28 01:46:53 1995 UTC (24 years, 8 months ago) by jtc
Branch: MAIN
Changes since 1.5: +1 -2 lines
Diff to previous 1.5 (colored)

remove unneeded "#include <stddef.h>"

Revision 1.5 / (download) - annotate - [select for diffs], Fri Oct 15 01:26:44 1993 UTC (26 years, 1 month ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Branch point for: ivory_soap
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

Rename _findenv() to __findenv(), as _findenv is in the user's namespace.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Aug 26 00:48:11 1993 UTC (26 years, 3 months ago) by jtc
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Declare rcsid strings so they are stored in text segment.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Aug 1 18:36:56 1993 UTC (26 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Add RCS identifiers.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Apr 18 09:22:35 1993 UTC (26 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

Eliminate GCC 2 warning due to prototype not being in scope.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (26 years, 8 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (26 years, 8 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>