head	1.4;
access;
symbols
	perseant-exfatfs-base-20250801:1.4
	perseant-exfatfs-base-20240630:1.4
	perseant-exfatfs:1.4.0.44
	perseant-exfatfs-base:1.4
	cjep_sun2x:1.4.0.42
	cjep_sun2x-base:1.4
	cjep_staticlib_x-base1:1.4
	cjep_staticlib_x:1.4.0.40
	cjep_staticlib_x-base:1.4
	phil-wifi-20200421:1.4
	phil-wifi-20200411:1.4
	phil-wifi-20200406:1.4
	pgoyette-compat-merge-20190127:1.4
	pgoyette-compat-20190127:1.4
	pgoyette-compat-20190118:1.4
	pgoyette-compat-1226:1.4
	pgoyette-compat-1126:1.4
	pgoyette-compat-1020:1.4
	pgoyette-compat-0930:1.4
	pgoyette-compat-0906:1.4
	pgoyette-compat-0728:1.4
	pgoyette-compat-0625:1.4
	pgoyette-compat-0521:1.4
	pgoyette-compat-0502:1.4
	pgoyette-compat-0422:1.4
	pgoyette-compat-0415:1.4
	pgoyette-compat-0407:1.4
	pgoyette-compat-0330:1.4
	pgoyette-compat-0322:1.4
	pgoyette-compat-0315:1.4
	pgoyette-compat:1.4.0.38
	pgoyette-compat-base:1.4
	prg-localcount2-base3:1.4
	prg-localcount2-base2:1.4
	prg-localcount2-base1:1.4
	prg-localcount2:1.4.0.36
	prg-localcount2-base:1.4
	pgoyette-localcount-20170426:1.4
	bouyer-socketcan-base1:1.4
	pgoyette-localcount-20170320:1.4
	bouyer-socketcan:1.4.0.34
	bouyer-socketcan-base:1.4
	pgoyette-localcount-20170107:1.4
	pgoyette-localcount-20161104:1.4
	localcount-20160914:1.4
	pgoyette-localcount-20160806:1.4
	pgoyette-localcount-20160726:1.4
	pgoyette-localcount:1.4.0.32
	pgoyette-localcount-base:1.4
	netbsd-5-2-3-RELEASE:1.4
	netbsd-5-1-5-RELEASE:1.4
	yamt-pagecache-base9:1.4
	yamt-pagecache-tag8:1.4
	tls-earlyentropy:1.4.0.28
	tls-earlyentropy-base:1.4
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.4
	riastradh-drm2-base3:1.4
	netbsd-5-2-2-RELEASE:1.4
	netbsd-5-1-4-RELEASE:1.4
	netbsd-5-2-1-RELEASE:1.4
	netbsd-5-1-3-RELEASE:1.4
	agc-symver:1.4.0.30
	agc-symver-base:1.4
	tls-maxphys-base:1.4
	yamt-pagecache-base8:1.4
	netbsd-5-2:1.4.0.26
	yamt-pagecache-base7:1.4
	netbsd-5-2-RELEASE:1.4
	netbsd-5-2-RC1:1.4
	yamt-pagecache-base6:1.4
	yamt-pagecache-base5:1.4
	yamt-pagecache-base4:1.4
	netbsd-5-1-2-RELEASE:1.4
	netbsd-5-1-1-RELEASE:1.4
	yamt-pagecache-base3:1.4
	yamt-pagecache-base2:1.4
	yamt-pagecache:1.4.0.24
	yamt-pagecache-base:1.4
	bouyer-quota2-nbase:1.4
	bouyer-quota2:1.4.0.22
	bouyer-quota2-base:1.4
	matt-nb5-pq3:1.4.0.20
	matt-nb5-pq3-base:1.4
	netbsd-5-1:1.4.0.18
	netbsd-5-1-RELEASE:1.4
	netbsd-5-1-RC4:1.4
	netbsd-5-1-RC3:1.4
	netbsd-5-1-RC2:1.4
	netbsd-5-1-RC1:1.4
	netbsd-5-0-2-RELEASE:1.4
	netbsd-5-0-1-RELEASE:1.4
	jym-xensuspend-nbase:1.4
	netbsd-5-0:1.4.0.16
	netbsd-5-0-RELEASE:1.4
	netbsd-5-0-RC4:1.4
	netbsd-5-0-RC3:1.4
	netbsd-5-0-RC2:1.4
	jym-xensuspend:1.4.0.14
	jym-xensuspend-base:1.4
	netbsd-5-0-RC1:1.4
	netbsd-5:1.4.0.12
	netbsd-5-base:1.4
	mjf-devfs2:1.4.0.10
	mjf-devfs2-base:1.4
	netbsd-4-0-1-RELEASE:1.1.2.1
	yamt-pf42-base4:1.4
	yamt-pf42-base3:1.4
	hpcarm-cleanup-nbase:1.4
	yamt-pf42-base2:1.4
	yamt-pf42:1.4.0.8
	yamt-pf42-base:1.4
	keiichi-mipv6:1.4.0.6
	keiichi-mipv6-base:1.4
	wrstuden-fixsa-base-1:1.1.2.1
	netbsd-4-0:1.1.2.1.0.2
	netbsd-4-0-RELEASE:1.1.2.1
	cube-autoconf:1.4.0.4
	cube-autoconf-base:1.4
	netbsd-4-0-RC5:1.1.2.1
	netbsd-4-0-RC4:1.1.2.1
	netbsd-4-0-RC3:1.1.2.1
	netbsd-4-0-RC2:1.1.2.1
	netbsd-4-0-RC1:1.1.2.1
	hpcarm-cleanup:1.4.0.2
	hpcarm-cleanup-base:1.4
	wrstuden-fixsa:1.1.0.4
	wrstuden-fixsa-base:1.1.2.1
	netbsd-4:1.1.0.2
	netbsd-4-base:1.1;
locks; strict;
comment	@# @;


1.4
date	2007.05.30.01.13.15;	author tls;	state dead;
branches;
next	1.3;

1.3
date	2007.05.23.22.35.38;	author tls;	state Exp;
branches;
next	1.2;

1.2
date	2007.05.23.14.41.02;	author christos;	state Exp;
branches;
next	1.1;

1.1
date	2006.11.08.19.52.11;	author christos;	state Exp;
branches
	1.1.2.1
	1.1.4.1;
next	;

1.1.2.1
date	2007.07.22.18.44.49;	author liamjfoy;	state dead;
branches;
next	;

1.1.4.1
date	2007.09.03.07.02.21;	author wrstuden;	state dead;
branches;
next	;


desc
@@


1.4
log
@Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do.  Goodbye, libssp
dependency in libraries and executables.  Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.
@
text
@#	$NetBSD: Makefile,v 1.3 2007/05/23 22:35:38 tls Exp $

USE_SHLIBDIR=	yes
WARNS=4

CPPFLAGS+=-I${.CURDIR}/ssp
LIB=	ssp
SRCS=	gets_chk.c fgets_chk.c memcpy_chk.c memmove_chk.c memset_chk.c \
	snprintf_chk.c sprintf_chk.c strcat_chk.c strcpy_chk.c \
	strncat_chk.c strncpy_chk.c vsnprintf_chk.c vsprintf_chk.c

INCS=	ssp/ssp.h ssp/stdio.h ssp/string.h ssp/strings.h ssp/unistd.h
INCSDIR=/usr/include
MAN=	ssp.3 __builtin_object_size.3

.include <bsd.own.mk>
.include <bsd.shlib.mk>
.include <bsd.lib.mk>
@


1.3
log
@The b-functions (bcopy, bzero) should not be in string.h, and we were
missing strings.h.  Fix this so we mirror the organization of these
header files in /usr/include proper.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2007/05/23 14:41:02 christos Exp $
@


1.2
log
@add documentation for libssp
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2006/11/08 19:52:11 christos Exp $
d12 1
a12 1
INCS=	ssp/ssp.h ssp/stdio.h ssp/string.h ssp/unistd.h
@


1.1
log
@Add a BSD-licensed re-implementation of the gcc-4.1 libssp.
This adds bounds checking for the following functions:

    memset, fgets, gets, memcpy, memmove, memset, snprintf, sprintf, strcat,
    strcpy, strncat, strncpy, vsnprintf, vsprintf

This functionality is enabled by compiling with:

	gcc -I/usr/include/ssp -D_FORTIFY_SOURCE=<1|2> -lssp

Eventually gcc will provide -ffortify-source or something to automate this
[we hope :-)]
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2005/05/15 21:11:13 christos Exp $
d14 1
@


1.1.4.1
log
@Sync w/ NetBSD-4-RC_1
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2006/11/08 19:52:11 christos Exp $
@


1.1.2.1
log
@Pull up to netbsd-4 (requested by christos in ticket #773):

Move libssp to libc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2006/11/08 19:52:11 christos Exp $
@


