Use __SCSSID() for SCCS IDs.

While here, fix $FreeBSD$ ID in ftime.c to use __FBSDID instead of a static
array.
This commit is contained in:
John Baldwin 2018-06-10 02:34:41 +00:00
parent a96081bb87
commit 6387091e9a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334911
5 changed files with 8 additions and 16 deletions

View File

@ -30,9 +30,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef lint
static char rcsid[] = "$FreeBSD$";
#endif /* not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/time.h>

View File

@ -34,6 +34,7 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
__SCCSID("@(#)regex.c 5.1 (Berkeley) 3/29/92");
/*
* Compatibility routines that implement the old re_comp/re_exec interface in
@ -42,10 +43,6 @@ __FBSDID("$FreeBSD$");
* but most programs should be fine.
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)regex.c 5.1 (Berkeley) 3/29/92";
#endif /* LIBC_SCCS and not lint */
#include <regex.h>
#include <stddef.h>
#include <unistd.h>

View File

@ -27,13 +27,11 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)rexec.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
__SCCSID("@(#)rexec.c 8.1 (Berkeley) 6/4/93");
#include <sys/types.h>
#include <sys/uio.h>

View File

@ -29,11 +29,9 @@
* SUCH DAMAGE.
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)cuserid.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
__SCCSID("@(#)cuserid.c 8.1 (Berkeley) 6/4/93");
#include <pwd.h>
#include <stdio.h>

View File

@ -3,7 +3,7 @@
PACKAGE=lib${LIB}
LIB= compat
CFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS -I${SRCTOP}/lib/libc/locale
CFLAGS+=-I${SRCTOP}/lib/libc/locale
NO_PIC=
WARNS?= 0