libcsupport: Doxygen enhancement task #2

http://www.google-melange.com/gci/task/view/google/gci2012/8017203
This commit is contained in:
Alex Ivanov
2012-12-09 17:55:17 -05:00
committed by Gedare Bloom
parent 7e731815e5
commit bcd0ea6409
24 changed files with 209 additions and 58 deletions

View File

@@ -32,6 +32,9 @@ typedef struct {
#define RTEMS_ASSOC_DEFAULT_NAME "(default)"
/**
* @brief RTEMS Associate Pointer by Name
*/
const rtems_assoc_t *rtems_assoc_ptr_by_name(
const rtems_assoc_t *,
const char *
@@ -52,6 +55,9 @@ uint32_t rtems_assoc_local_by_remote(
uint32_t
);
/**
* @brief RTEMS Associate Remote by Name
*/
uint32_t rtems_assoc_remote_by_name(
const rtems_assoc_t *,
const char *

View File

@@ -27,7 +27,17 @@
extern "C" {
#endif
/**
* @defgroup libcsupport Standard C Library Support
*
* @brief RTEMS Specific Support for the Standard C Library
*/
extern void malloc_dump(void);
/**
* @brief Malloc Walk
*/
extern bool malloc_walk(int source, bool printf_enabled);
void malloc_set_heap_pointer(Heap_Control *new_heap);
Heap_Control *malloc_get_heap_pointer( void );

View File

@@ -399,6 +399,9 @@ typedef struct {
rtems_filesystem_eval_path_eval_token eval_token;
} rtems_filesystem_eval_path_generic_config;
/**
* @brief RTEMS File System Eval Generic Path
*/
void rtems_filesystem_eval_path_generic(
rtems_filesystem_eval_path_context_t *ctx,
void *arg,
@@ -535,7 +538,9 @@ static inline void rtems_filesystem_location_error(
errno = eno;
}
}
/**
* @brief RTEMS File System Mknod
*/
int rtems_filesystem_mknod(
const rtems_filesystem_location_info_t *parentloc,
const char *name,

View File

@@ -26,6 +26,14 @@
extern "C" {
#endif
/**
* @defgroup TermiostypesSupport RTEMS Termios Device Support
*
* @ingroup libcsupport
*
* @brief RTEMS Termios Device Support Internal Data Structures
*/
/*
* Wakeup callback data structure
*/
@@ -186,11 +194,11 @@ typedef uint32_t rtems_termios_baud_t;
extern const rtems_assoc_t rtems_termios_baud_table [];
/**
* @brief Converts the integral baud value @a baud to the Termios control flag
* representation.
* @brief Converts the Integral Baud value @a baud to the Termios Control Flag
* Representation
*
* @retval B0 Invalid baud value or a baud value of 0.
* @retval other Baud constant according to @a baud.
* @retval B0 Invalid baud value or a baud value of 0.
* @retval other Baud constant according to @a baud.
*/
tcflag_t rtems_termios_number_to_baud(rtems_termios_baud_t baud);
@@ -205,7 +213,9 @@ tcflag_t rtems_termios_number_to_baud(rtems_termios_baud_t baud);
*/
rtems_termios_baud_t rtems_termios_baud_to_number(tcflag_t c_cflag);
/* convert Bxxx constant to index */
/**
* @brief Convert Bxxx Constant to Index
*/
int rtems_termios_baud_to_index(rtems_termios_baud_t termios_baud);
/**

View File

@@ -1,6 +1,8 @@
/*
* assoc.c
* rtems assoc routines
/**
* @file
*
* @brief RTEMS Associate Pointer by Name
* @ingroup Associativity
*/
#if HAVE_CONFIG_H

View File

@@ -1,6 +1,8 @@
/*
* assoc.c
* rtems assoc routines
/**
* @file
*
* @brief RTEMS Associate Remote by Name
* @ingroup Associativity
*/
#if HAVE_CONFIG_H

View File

@@ -1,6 +1,11 @@
/*
* dup2() - POSIX 1003.1b 6.2.1 Duplicate an Open File Descriptor
/**
* @file
*
* @brief Duplicate an Open File Descriptor
* @ingroup libcsupport
*/
/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -18,6 +23,9 @@
#include <rtems/libio_.h>
/**
* POSIX 1003.1b 6.2.1 Duplicate an Open File Descriptor
*/
int dup2(
int fildes,
int fildes2

View File

@@ -1,6 +1,11 @@
/*
* fchown() - POSIX 1003.1b 5.6.5 - Change Owner and Group of a File
/**
* @file
*
* @brief Change Owner and Group of a File
* @ingroup libcsupport
*/
/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -17,6 +22,9 @@
#include <rtems/libio_.h>
/**
* POSIX 1003.1b 5.6.5 - Change Owner and Group of a File
*/
int fchown( int fd, uid_t owner, gid_t group )
{
int rv = 0;

View File

@@ -1,3 +1,10 @@
/**
* @file
*
* @brief Get Supplementary IDs
* @ingroup libcsupport
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
@@ -5,10 +12,9 @@
#include <sys/types.h>
#include <unistd.h>
/*
/**
* 4.2.3 Get Supplementary IDs, P1003.1b-1993, p. 86
*/
int getgroups(
int gidsetsize __attribute__((unused)),
gid_t grouplist[] __attribute__((unused))

View File

@@ -1,3 +1,10 @@
/**
* @file
*
* @brief Test for a Terminal Device
* @ingroup libcsupport
*/
/*
* COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
@@ -11,14 +18,11 @@
#include "config.h"
#endif
/*
* _isatty_r
*
* This is the Newlib dependent reentrant version of isatty().
*/
#if defined(RTEMS_NEWLIB) && !defined(HAVE__ISATTY_R)
/**
* This is the Newlib dependent reentrant version of isatty().
*/
#include <unistd.h>
#include <reent.h>
#include <sys/stat.h>

View File

@@ -1,6 +1,11 @@
/*
* link() - POSIX 1003.1b - 5.3.4 - Create a new link
/**
* @file
*
* @brief Create a new link
* @ingroup libcsupport
*/
/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -17,6 +22,9 @@
#include <rtems/libio_.h>
/**
* link() - POSIX 1003.1b - 5.3.4 - Create a new link
*/
int link( const char *path1, const char *path2 )
{
int rv = 0;
@@ -50,16 +58,13 @@ int link( const char *path1, const char *path2 )
return rv;
}
/*
* _link_r
*
* This is the Newlib dependent reentrant version of link().
*/
#if defined(RTEMS_NEWLIB)
#include <reent.h>
/**
* This is the Newlib dependent reentrant version of link().
*/
int _link_r(
struct _reent *ptr __attribute__((unused)),
const char *path1,

View File

@@ -1,6 +1,11 @@
/*
* malloc_walk Implementation
/**
* @file
*
* @brief Malloc Walk
* @ingroup libcsupport
*/
/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*

View File

@@ -1,10 +1,11 @@
/**
* @file
*
* @brief Create a Special or Ordinary File
* @ingroup libcsupport
*/
/*
* mknod()
*
* This routine is not defined in the POSIX 1003.1b standard but is
* commonly supported on most UNIX and POSIX systems. It is the
* foundation for creating file system objects.
*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -55,6 +56,11 @@ int rtems_filesystem_mknod(
return rv;
}
/**
* This routine is not defined in the POSIX 1003.1b standard but is
* commonly supported on most UNIX and POSIX systems. It is the
* foundation for creating file system objects.
*/
int mknod( const char *path, mode_t mode, dev_t dev )
{
int rv = 0;

View File

@@ -1,3 +1,10 @@
/**
* @file
*
* @brief Newlib Support
* @ingroup libcsupport
*/
/*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
@@ -98,9 +105,7 @@ void newlib_begin_hook(rtems_tcb *current_task)
* Called when a task is deleted.
* Must restore the new lib reentrancy state for the new current
* task.
*
*/
int newlib_free_buffers(
FILE *fp
)

View File

@@ -1,6 +1,11 @@
/*
* readlink() - POSIX 1003.1b - X.X.X - XXX
/**
* @file
*
* @brief Read Value of a Symbolic Link
* @ingroup libcsupport
*/
/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -17,6 +22,9 @@
#include <rtems/libio_.h>
/**
* POSIX 1003.1b - X.X.X - XXX
*/
ssize_t readlink( const char *path, char *buf, size_t bufsize )
{
ssize_t rv = 0;

View File

@@ -1,3 +1,10 @@
/**
* @file
*
* @brief Set Process Group ID for Job Control
* @ingroup libcsupport
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
@@ -6,10 +13,9 @@
#include <errno.h>
#include <rtems/seterr.h>
/*
/**
* 4.3.3 Set Process Group ID for Job Control, P1003.1b-1993, p. 89
*/
int setpgid(
pid_t pid __attribute__((unused)),
pid_t pgid __attribute__((unused))

View File

@@ -1,3 +1,10 @@
/**
* @file
*
* @brief RTEMS DeviceIO Support
* @ingroup Device
*/
/*
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).

View File

@@ -1,3 +1,10 @@
/**
* @file
*
* @brief RTEMS File System Eval Generic Path
* @ingroup LibIOInternal
*/
/*
* Copyright (c) 2012 embedded brains GmbH. All rights reserved.
*

View File

@@ -1,6 +1,11 @@
/*
* tcgetprgrp() - POSIX 1003.1b 7.2.3 - Get Foreground Process Group ID
/**
* @file
*
* @brief Get Foreground Process Group ID
* @ingroup libcsupport
*/
/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -18,6 +23,9 @@
#include <sys/types.h>
#include <unistd.h>
/**
* POSIX 1003.1b 7.2.3 - Get Foreground Process Group ID
*/
pid_t tcgetpgrp(int fd __attribute__((unused)))
{
return getpid();

View File

@@ -1,6 +1,11 @@
/*
* tcsetattr() - POSIX 1003.1b 7.2.1 - Get and Set State
/**
* @file
*
* @brief Get and Set State
* @ingroup libcsupport
*/
/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -26,6 +31,9 @@
#include <rtems/libio_.h>
#include <rtems/seterr.h>
/**
* POSIX 1003.1b 7.2.1 - Get and Set State
*/
int tcsetattr(
int fd,
int opt,

View File

@@ -1,3 +1,10 @@
/**
* @file
*
* @brief Convert Bxxx Constant to Index
* @ingroup TermiostypesSupport
*/
/*
* COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).

View File

@@ -1,3 +1,10 @@
/**
* @file
*
* @brief Converts the Integral Baud to Termios Control Flag Representation
* @ingroup TermiostypesSupport
*/
/*
* COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).

View File

@@ -1,6 +1,11 @@
/*
* Termios initialization routine
/**
* @file
*
* @brief Termios Initialization
* @ingroup Termios
*/
/*
* Author:
* W. Eric Norum
* Saskatchewan Accelerator Laboratory

View File

@@ -1,10 +1,11 @@
/**
* @file
*
* @brief Truncate a File to the Specified Length
* @ingroup libcsupport
*/
/*
* truncate() - Truncate a File to the Specified Length
*
* This routine is not defined in the POSIX 1003.1b standard but is
* commonly supported on most UNIX and POSIX systems. It is provided
* for compatibility.
*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -21,6 +22,11 @@
#include <errno.h>
#include <fcntl.h>
/**
* This routine is not defined in the POSIX 1003.1b standard but is
* commonly supported on most UNIX and POSIX systems. It is provided
* for compatibility.
*/
int truncate(
const char *path,
off_t length