]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use doxygen headers for src/util files
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 25 Nov 2016 22:40:25 +0000 (17:40 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 26 Nov 2016 15:22:06 +0000 (10:22 -0500)
Add a copyright attribution for Alister Winfield to src/util/atomic_queue.c
as he wrote the original implementation of the atomic_queue algorithm that
was adapted for use with FreeRADIUS.

src/util/atomic_queue.c
src/util/channel.c
src/util/message.c
src/util/queue.c
src/util/ring_buffer.c
src/util/time.c
src/util/track.c
src/util/worker.c

index f3f9a4a2f1607e623d054e23d0dff0df4cd33e7f..b01218b1c3685b21bf129174a02f7dbb13304ba0 100644 (file)
@@ -1,8 +1,4 @@
 /*
- * atomic_queue.c      Thread-safe queues.
- *
- * Version:    $Id$
- *
  *   This program is free software; you can redistribute it and/or modify
  *   it under the terms of the GNU General Public License as published by
  *   the Free Software Foundation; either version 2 of the License, or
  *   You should have received a copy of the GNU General Public License
  *   along with this program; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/**
+ * $Id$
  *
- * Copyright 2016  Alan DeKok <aland@freeradius.org>
+ * @brief Thread-safe queues.
+ * @file util/atomic_queue.c
+ *
+ * @copyright 2016 Alan DeKok <aland@freeradius.org>
+ * @copyright 2016 Alister Winfield
  */
 RCSID("$Id$")
 
@@ -99,7 +103,7 @@ fr_atomic_queue_t *fr_atomic_queue_create(TALLOC_CTX *ctx, int size)
        }
 
        aq->size = size;
-       
+
        /*
         *      Set the head / tail indexes, and force other CPUs to
         *      see the writes.
@@ -257,7 +261,7 @@ void fr_atomic_queue_debug(fr_atomic_queue_t *aq, FILE *fp)
                fr_atomic_queue_entry_t *entry;
 
                entry = &aq->entry[i];
-               
+
                fprintf(fp, "\t[%d] = { %p, %zd }\n",
                        i, entry->data, load(entry->seq));
        }
index 5a136c5cc82794f31505d27dfd7ccde9e7f306d7..df0415c2ad96e19fc321d4947df8b5830ba540a4 100644 (file)
@@ -1,8 +1,4 @@
 /*
- * channel.c   Two-way thread-safe channels
- *
- * Version:    $Id$
- *
  *   This program is free software; you can redistribute it and/or modify
  *   it under the terms of the GNU General Public License as published by
  *   the Free Software Foundation; either version 2 of the License, or
  *   You should have received a copy of the GNU General Public License
  *   along with this program; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/**
+ * $Id$
+ *
+ * @brief Two-way thread-safe channels
+ * @file util/channel.c
  *
- * Copyright 2016  Alan DeKok <aland@freeradius.org>
+ * @copyright 2016 Alan DeKok <aland@freeradius.org>
  */
 RCSID("$Id$")
 
@@ -203,7 +206,7 @@ int fr_channel_send_request(fr_channel_t *ch, fr_channel_data_t *cd, fr_channel_
 
        rad_assert(end->last_write <= when);
        end->last_write = when;
-       
+
        /*
         *      Increment the number of outstanding packets.  If we
         *      just sent a new one, wake up the other end.
@@ -343,7 +346,7 @@ int fr_channel_send_reply(fr_channel_t *ch, fr_channel_data_t *cd, fr_channel_da
                *p_request = fr_channel_recv_request(ch);
                return -1;
        }
-       
+
        rad_assert(end->num_outstanding > 0);
        end->num_outstanding--;
 
index 3905e499bf0b1125bb07968f4a300b1b07e01d80..6d2025fe19f8325e99e06e51cff87e27e43105ed 100644 (file)
@@ -1,8 +1,4 @@
 /*
- * message.c   Messages for inter-thread communication.
- *
- * Version:    $Id$
- *
  *   This program is free software; you can redistribute it and/or modify
  *   it under the terms of the GNU General Public License as published by
  *   the Free Software Foundation; either version 2 of the License, or
  *   You should have received a copy of the GNU General Public License
  *   along with this program; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/**
+ * $Id$
+ *
+ * @brief Messages for inter-thread communication
+ * @file util/message.c
  *
- * Copyright 2016  Alan DeKok <aland@freeradius.org>
+ * @copyright 2016 Alan DeKok <aland@freeradius.org>
  */
 RCSID("$Id$")
 
@@ -666,7 +669,7 @@ static void fr_message_gc(fr_message_set_t *ms, int max_to_clean)
  * The newly allocated message is zeroed.
  *
  * @param[in] ms the message set
- * @param[in] mr the message ring to allocate from 
+ * @param[in] mr the message ring to allocate from
  * @param[in] clean whether to clean the message ring
  * @return
  *     - NULL on failed allocation
@@ -1304,7 +1307,7 @@ fr_message_t *fr_message_alloc_aligned(fr_message_set_t *ms, fr_message_t *m, si
        uint8_t *p, *aligned_p;
        intptr_t addr;
        size_t aligned_size;
-       
+
 
 #ifndef NDEBUG
        (void) talloc_get_type_abort(ms, fr_message_set_t);
index 74daa9073a07ee4a69ece4ad07a77185865393d7..c7e7c8b976093f3b9c88733a4f1beaf8b34024ea 100644 (file)
@@ -1,8 +1,4 @@
 /*
- * queue.c     Thread-unsafe queues.
- *
- * Version:    $Id$
- *
  *   This program is free software; you can redistribute it and/or modify
  *   it under the terms of the GNU General Public License as published by
  *   the Free Software Foundation; either version 2 of the License, or
  *   You should have received a copy of the GNU General Public License
  *   along with this program; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/**
+ * $Id$
+ *
+ * @brief Thread-unsafe queues
+ * @file util/queue.c
  *
- * Copyright 2016  Alan DeKok <aland@freeradius.org>
+ * @copyright 2016 Alan DeKok <aland@freeradius.org>
  */
 RCSID("$Id$")
 
index db0ebf70822f33e87a181e75138dc12741b26181..0e30cf49d84af5d782af138f03eca6bf83f2d93d 100644 (file)
@@ -1,8 +1,4 @@
 /*
- * ring_buffer.c       Simple ring buffers for packet contents.
- *
- * Version:    $Id$
- *
  *   This program is free software; you can redistribute it and/or modify
  *   it under the terms of the GNU General Public License as published by
  *   the Free Software Foundation; either version 2 of the License, or
  *   You should have received a copy of the GNU General Public License
  *   along with this program; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/**
+ * $Id$
+ *
+ * @brief Simple ring buffers for packet contents
+ * @file util/ring_buffer.c
  *
- * Copyright 2016  Alan DeKok <aland@freeradius.org>
+ * @copyright 2016 Alan DeKok <aland@freeradius.org>
  */
 RCSID("$Id$")
 
index 24346521b94e6c8c3725ca05a16455fbc710cd9a..289dd6262b9ed470f51b6d1422fe9819520d0241 100644 (file)
@@ -1,8 +1,4 @@
 /*
- * time.c      Platform independent time functions
- *
- * Version:    $Id$
- *
  *   This program is free software; you can redistribute it and/or modify
  *   it under the terms of the GNU General Public License as published by
  *   the Free Software Foundation; either version 2 of the License, or
  *   You should have received a copy of the GNU General Public License
  *   along with this program; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/**
+ * $Id$
+ *
+ * @brief Platform independent time functions
+ * @file util/time.c
  *
- * Copyright 2016  Alan DeKok <aland@freeradius.org>
+ * @copyright 2016 Alan DeKok <aland@freeradius.org>
  */
 RCSID("$Id$")
 
index b5e403b53751db120c82ec660c2dcc9d02624883..b13c0ccf0cd7fd2d53cf5b1c59acb15164f0a6ee 100644 (file)
@@ -1,8 +1,4 @@
 /*
- * track.c     RADIUS packet tracking
- *
- * Version:    $Id$
- *
  *   This program is free software; you can redistribute it and/or modify
  *   it under the terms of the GNU General Public License as published by
  *   the Free Software Foundation; either version 2 of the License, or
  *   You should have received a copy of the GNU General Public License
  *   along with this program; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/**
+ * $Id$
+ *
+ * @brief RADIUS packet tracking
+ * @file util/track.c
  *
- * Copyright 2016  Alan DeKok <aland@freeradius.org>
+ * @copyright 2016 Alan DeKok <aland@freeradius.org>
  */
 RCSID("$Id$")
 
index 54da6f3ee8e092373cb93dc32037638bacc26767..641cb2effc0c1cc180254fcaad5e7fc1e4c46de4 100644 (file)
@@ -1,8 +1,4 @@
 /*
- * worker.c    Worker thread functiobns.
- *
- * Version:    $Id$
- *
  *   This program is free software; you can redistribute it and/or modify
  *   it under the terms of the GNU General Public License as published by
  *   the Free Software Foundation; either version 2 of the License, or
  *   You should have received a copy of the GNU General Public License
  *   along with this program; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+ /**
+ * $Id$
+ *
+ * @brief Worker thread functions.
+ * @file util/worker.c
  *
- * Copyright 2016  Alan DeKok <aland@freeradius.org>
+ * @copyright 2016 Alan DeKok <aland@freeradius.org>
  */
 RCSID("$Id$")