From 34c6518ab6cdb0b402cca01ac045561cba9bd009 Mon Sep 17 00:00:00 2001 From: mquinson Date: Wed, 4 Jun 2008 15:16:26 +0000 Subject: [PATCH] Make sure all the source files have an reference of the copyright and of the licence git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5526 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/xbt/mallocator_private.h | 13 ++++++++++--- src/xbt/xbt_context.c | 3 +-- src/xbt/xbt_context_java.c | 8 ++++++++ src/xbt/xbt_context_private.h | 8 ++++++++ src/xbt/xbt_context_sysv.c | 10 ++++++++++ src/xbt/xbt_context_thread.c | 8 ++++++++ src/xbt/xbt_queue.c | 1 - src/xbt/xbt_sha.c | 11 +++++++---- src/xbt/xbt_str.c | 1 + 9 files changed, 53 insertions(+), 10 deletions(-) diff --git a/src/xbt/mallocator_private.h b/src/xbt/mallocator_private.h index 35b96d46d1..42a6d94bcf 100644 --- a/src/xbt/mallocator_private.h +++ b/src/xbt/mallocator_private.h @@ -1,5 +1,12 @@ -#ifndef _XBT_DICT_PRIVATE_H__ -#define _XBT_DICT_PRIVATE_H__ +/* mallocator - recycle objects to avoid malloc() / free() */ + +/* Copyright (c) 2006 Christophe Thiery. All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + +#ifndef _XBT_MALLOCATOR_PRIVATE_H__ +#define _XBT_MALLOCATOR_PRIVATE_H__ typedef struct s_xbt_mallocator { int current_size; /* number of objects currently stored */ @@ -10,4 +17,4 @@ typedef struct s_xbt_mallocator { void_f_pvoid_t reset_f; /* function to call when an object is released by the user */ } s_xbt_mallocator_t; -#endif +#endif /* _XBT_MALLOCATOR_PRIVATE_H__ */ diff --git a/src/xbt/xbt_context.c b/src/xbt/xbt_context.c index a1b719ee91..03ff6d12c8 100644 --- a/src/xbt/xbt_context.c +++ b/src/xbt/xbt_context.c @@ -1,7 +1,6 @@ /* a fast and simple context switching library */ -/* Copyright (c) 2004 Arnaud Legrand. */ -/* Copyright (c) 2004, 2005 Martin Quinson. */ +/* Copyright (c) 2004-2008 the SimGrid team. */ /* All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it diff --git a/src/xbt/xbt_context_java.c b/src/xbt/xbt_context_java.c index 7089548102..bc5d92bce2 100644 --- a/src/xbt/xbt_context_java.c +++ b/src/xbt/xbt_context_java.c @@ -1,3 +1,11 @@ +/* $Id$ */ + +/* context_java - implementation of context switching for java threads */ + +/* Copyright (c) 2007-2008 the SimGrid team. All right reserved */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ #include "xbt/function_types.h" diff --git a/src/xbt/xbt_context_private.h b/src/xbt/xbt_context_private.h index d6ba31ad50..d0f35cf7aa 100644 --- a/src/xbt/xbt_context_private.h +++ b/src/xbt/xbt_context_private.h @@ -1,3 +1,11 @@ +/* a fast and simple context switching library */ + +/* Copyright (c) 2004-2008 the SimGrid team. */ +/* All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + #ifndef _XBT_CONTEXT_PRIVATE_H #define _XBT_CONTEXT_PRIVATE_H diff --git a/src/xbt/xbt_context_sysv.c b/src/xbt/xbt_context_sysv.c index c3dfdd0a46..7a1bbbdc83 100644 --- a/src/xbt/xbt_context_sysv.c +++ b/src/xbt/xbt_context_sysv.c @@ -1,3 +1,11 @@ +/* $Id$ */ + +/* context_sysv - implementation of context switching with ucontextes from Sys V */ + +/* Copyright (c) 2004-2008 the SimGrid team. All right reserved */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ #include "xbt/ex_interface.h" #include "xbt/xbt_context_private.h" @@ -10,6 +18,8 @@ # include #endif /* HAVE_VALGRIND_VALGRIND_H */ + + typedef struct s_xbt_ctx_sysv { XBT_CTX_BASE_T; ucontext_t uc; /* the thread that execute the code */ diff --git a/src/xbt/xbt_context_thread.c b/src/xbt/xbt_context_thread.c index b4a2e8bac5..8e54725e3b 100644 --- a/src/xbt/xbt_context_thread.c +++ b/src/xbt/xbt_context_thread.c @@ -1,3 +1,11 @@ +/* $Id$ */ + +/* context_thread - implementation of context switching with native threads */ + +/* Copyright (c) 2004-2008 the SimGrid team. All right reserved */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ #include "xbt/function_types.h" #include "xbt/xbt_context_private.h" diff --git a/src/xbt/xbt_queue.c b/src/xbt/xbt_queue.c index e7358c8793..39643f41c3 100644 --- a/src/xbt/xbt_queue.c +++ b/src/xbt/xbt_queue.c @@ -11,7 +11,6 @@ #include "xbt/misc.h" #include "xbt/sysdep.h" #include "xbt/log.h" -//#include "xbt/ex.h" #include "xbt/dynar.h" #include "xbt/synchro.h" diff --git a/src/xbt/xbt_sha.c b/src/xbt/xbt_sha.c index 20baf37467..898c86abc9 100644 --- a/src/xbt/xbt_sha.c +++ b/src/xbt/xbt_sha.c @@ -2,10 +2,13 @@ /* xbt_sha.c - SHA1 hash function */ /* Initial version part of iksemel (XML parser for Jabber) - * Copyright (C) 2000-2003 Gurer Ozen - * This code is free software; you can redistribute it and/or - * modify it under the terms of GNU Lesser General Public License. */ -/* Adapted to fit into SimGrid by Martin Quinson. */ + * Copyright (C) 2000-2003 Gurer Ozen . All right reserved. */ + +/* Adapted to fit into SimGrid by Martin Quinson. + Copyright (c) 2008 Martin Quinson. All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ #include "xbt/sysdep.h" #include "xbt/hash.h" diff --git a/src/xbt/xbt_str.c b/src/xbt/xbt_str.c index 221f7f4b16..16a45ce754 100644 --- a/src/xbt/xbt_str.c +++ b/src/xbt/xbt_str.c @@ -1,3 +1,4 @@ +/* $Id$ */ /* xbt_str.c - various helping functions to deal with strings */ -- 2.20.1