From 3cd4f1d15146c08f05206d6328ecbc1c7fdc8dfa Mon Sep 17 00:00:00 2001 From: Charles Forsyth Date: Mon, 30 Jun 2014 10:57:08 +0100 Subject: update to match lib9 --- libkern/fmtdef.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'libkern/fmtdef.h') diff --git a/libkern/fmtdef.h b/libkern/fmtdef.h index d8f3680f..9b0e9782 100644 --- a/libkern/fmtdef.h +++ b/libkern/fmtdef.h @@ -1,3 +1,16 @@ +/* + * The authors of this software are Rob Pike and Ken Thompson. + * Copyright (c) 2002 by Lucent Technologies. + * Permission to use, copy, modify, and distribute this software for any + * purpose without fee is hereby granted, provided that this entire notice + * is included in all copies of any software which is or includes a copy + * or modification of this software and in all copies of the supporting + * documentation for such software. + * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED + * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE ANY + * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY + * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. + */ /* * dofmt -- format to a buffer * the number of characters formatted is returned, @@ -83,3 +96,7 @@ void _fmtunlock(void); t += runetochar(t, &_rune);\ }\ }while(0) + +#ifndef va_copy +#define va_copy(a, b) ((a) = (b)) +#endif -- cgit v1.2.3