forked from Imagelibrary/rtems
libcsupport: Doxygen enhancement GCI task #4
http://www.google-melange.com/gci/task/view/google/gci2012/8009205
This commit is contained in:
committed by
Gedare Bloom
parent
c9bb60a94c
commit
17c6ad6a01
@@ -115,6 +115,9 @@ uint32_t rtems_assoc_local_by_remote_bitfield(
|
||||
uint32_t
|
||||
);
|
||||
|
||||
/**
|
||||
* @brief RTEMS Associate Pointer by Local
|
||||
*/
|
||||
const rtems_assoc_t *rtems_assoc_ptr_by_local(
|
||||
const rtems_assoc_t *ap,
|
||||
uint32_t local_value
|
||||
|
||||
@@ -2,6 +2,40 @@
|
||||
* @file rtems/error.h
|
||||
*
|
||||
* Defines and externs for rtems error reporting
|
||||
*
|
||||
* Currently just used by RTEMS monitor.
|
||||
*
|
||||
* These routines provide general purpose error reporting.
|
||||
* rtems_error reports an error to stderr and allows use of
|
||||
* printf style formatting. A newline is appended to all messages.
|
||||
*
|
||||
* error_flag can be specified as any of the following:
|
||||
*
|
||||
* RTEMS_ERROR_ERRNO -- include errno text in output
|
||||
* RTEMS_ERROR_PANIC -- halts local system after output
|
||||
* RTEMS_ERROR_ABORT -- abort after output
|
||||
*
|
||||
* It can also include a rtems_status value which can be OR'd
|
||||
* with the above flags. *
|
||||
*
|
||||
* EXAMPLE
|
||||
* #include <rtems.h>
|
||||
* #include <rtems/error.h>
|
||||
* rtems_error(0, "stray interrupt %d", intr);
|
||||
*
|
||||
* EXAMPLE
|
||||
* if ((status = rtems_task_create(...)) != RTEMS_SUCCCESSFUL)
|
||||
* {
|
||||
* rtems_error(status | RTEMS_ERROR_ABORT,
|
||||
* "could not create task");
|
||||
* }
|
||||
*
|
||||
* EXAMPLE
|
||||
* if ((fd = open(pathname, O_RDNLY)) < 0)
|
||||
* {
|
||||
* rtems_error(RTEMS_ERROR_ERRNO, "open of '%s' failed", pathname);
|
||||
* goto failed;
|
||||
* }
|
||||
*/
|
||||
|
||||
|
||||
@@ -15,6 +49,15 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @defgroup ErrorPanicSupport Error And Panic Support
|
||||
*
|
||||
* @ingroup libcsupport
|
||||
*
|
||||
* @brief Defines and externs for rtems error reporting
|
||||
*
|
||||
*/
|
||||
|
||||
typedef Internal_errors_t rtems_error_code_t;
|
||||
|
||||
/*
|
||||
@@ -36,11 +79,29 @@ typedef Internal_errors_t rtems_error_code_t;
|
||||
(RTEMS_ERROR_ERRNO | RTEMS_ERROR_ABORT | RTEMS_ERROR_PANIC) /* all */
|
||||
|
||||
const char *rtems_status_text(rtems_status_code sc);
|
||||
|
||||
/**
|
||||
* @brief Report an Error
|
||||
*
|
||||
* @param[in] error_code can be specified as any of the following:
|
||||
* RTEMS_ERROR_ERRNO -- include errno text in output
|
||||
* RTEMS_ERROR_PANIC -- halts local system after output
|
||||
* RTEMS_ERROR_ABORT -- abort after output
|
||||
*
|
||||
* @param[in] printf_format is a normal printf(3) format string,
|
||||
* with its concommitant arguments
|
||||
*
|
||||
* @return the number of characters written.
|
||||
*/
|
||||
int rtems_error(
|
||||
rtems_error_code_t error_code,
|
||||
const char *printf_format,
|
||||
...
|
||||
);
|
||||
|
||||
/**
|
||||
* rtems_panic is shorthand for rtems_error(RTEMS_ERROR_PANIC, ...)
|
||||
*/
|
||||
void rtems_panic(
|
||||
const char *printf_format,
|
||||
...
|
||||
|
||||
@@ -194,15 +194,15 @@ void rtems_filesystem_location_clone(
|
||||
);
|
||||
|
||||
/**
|
||||
* @brief Returns the type of a node.
|
||||
* @brief Returns the Type of a Node
|
||||
*
|
||||
* This function obtains and releases the file system instance lock.
|
||||
* This function obtains and releases the file system instance lock.
|
||||
*
|
||||
* @param[in] loc The location of the node.
|
||||
* @param[in] loc The location of the node.
|
||||
*
|
||||
* @return The node type.
|
||||
* @return The node type.
|
||||
*
|
||||
* @see rtems_filesystem_instance_lock().
|
||||
* @see rtems_filesystem_instance_lock().
|
||||
*/
|
||||
rtems_filesystem_node_types_t rtems_filesystem_node_type(
|
||||
const rtems_filesystem_location_info_t *loc
|
||||
@@ -551,6 +551,9 @@ int rtems_filesystem_mknod(
|
||||
|
||||
int rtems_filesystem_chdir( rtems_filesystem_location_info_t *loc );
|
||||
|
||||
/**
|
||||
* @brief Change Owner and Group of a File
|
||||
*/
|
||||
int rtems_filesystem_chown(
|
||||
const char *path,
|
||||
uid_t owner,
|
||||
|
||||
@@ -88,6 +88,9 @@ typedef void *(*rtems_heap_extend_handler)(
|
||||
size_t alloc_size
|
||||
);
|
||||
|
||||
/**
|
||||
* @brief RTEMS Extend Heap via Sbrk
|
||||
*/
|
||||
void *rtems_heap_extend_via_sbrk(
|
||||
Heap_Control *heap,
|
||||
size_t alloc_size
|
||||
|
||||
@@ -191,6 +191,9 @@ extern int rtems_termios_nlinesw;
|
||||
/* baudrate xxx integer type */
|
||||
typedef uint32_t rtems_termios_baud_t;
|
||||
|
||||
/**
|
||||
* @brief RTEMS Termios Baud Table
|
||||
*/
|
||||
extern const rtems_assoc_t rtems_termios_baud_table [];
|
||||
|
||||
/**
|
||||
@@ -203,13 +206,12 @@ extern const rtems_assoc_t rtems_termios_baud_table [];
|
||||
tcflag_t rtems_termios_number_to_baud(rtems_termios_baud_t baud);
|
||||
|
||||
/**
|
||||
* @brief Converts the baud part of the Termios control flags @a c_cflag to an
|
||||
* integral baud value.
|
||||
* @brief Convert Baud Part of Termios control flags to an integral Baud Value
|
||||
*
|
||||
* There is no need to mask the @a c_cflag with @c CBAUD.
|
||||
* There is no need to mask the @a c_cflag with @c CBAUD.
|
||||
*
|
||||
* @retval 0 Invalid baud value or a baud value of @c B0.
|
||||
* @retval other Integral baud value.
|
||||
* @retval 0 Invalid baud value or a baud value of @c B0.
|
||||
* @retval other Integral baud value.
|
||||
*/
|
||||
rtems_termios_baud_t rtems_termios_baud_to_number(tcflag_t c_cflag);
|
||||
|
||||
|
||||
@@ -198,11 +198,21 @@ int tcdrain(int);
|
||||
*/
|
||||
int tcflow(int, int);
|
||||
int tcflush(int, int);
|
||||
|
||||
/**
|
||||
* @brief Get State
|
||||
* POSIX 1003.1b 7.2.1 - Get and Set State
|
||||
*/
|
||||
int tcgetattr(int, struct termios *);
|
||||
int tcsetattr(int, int, struct termios *);
|
||||
int tcdrain(int);
|
||||
pid_t tcgetprgrp(int);
|
||||
int tcsetprgrp(int, pid_t);
|
||||
|
||||
/**
|
||||
* @brief Line Control Functions
|
||||
* POSIX 1003.1b 7.2.2 - Line Control Functions
|
||||
*/
|
||||
int tcsendbreak(int, int);
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
/*
|
||||
* assoc.c
|
||||
* rtems assoc routines
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief RTEMS Associate Pointer by Local
|
||||
* @ingroup Associativity
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
/*
|
||||
* chmod() - POSIX 1003.1b 5.6.4 - Change File Modes
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief Change File Modes
|
||||
* @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.4 - Change File Modes
|
||||
*/
|
||||
int chmod( const char *path, mode_t mode )
|
||||
{
|
||||
int rv = 0;
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
/*
|
||||
* chown() - 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).
|
||||
*
|
||||
@@ -41,6 +46,9 @@ int rtems_filesystem_chown(
|
||||
return rv;
|
||||
}
|
||||
|
||||
/**
|
||||
* POSIX 1003.1b 5.6.5 - Change Owner and Group of a File
|
||||
*/
|
||||
int chown( const char *path, uid_t owner, gid_t group )
|
||||
{
|
||||
return rtems_filesystem_chown( path, owner, group, RTEMS_FS_FOLLOW_LINK );
|
||||
|
||||
@@ -1,46 +1,14 @@
|
||||
/*
|
||||
* report errors and panics to RTEMS' stderr.
|
||||
* Currently just used by RTEMS monitor.
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief Error and Panic Report Support
|
||||
* @ingroup ErrorPanicSupport
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* These routines provide general purpose error reporting.
|
||||
* rtems_error reports an error to stderr and allows use of
|
||||
* printf style formatting. A newline is appended to all messages.
|
||||
*
|
||||
* error_flag can be specified as any of the following:
|
||||
*
|
||||
* RTEMS_ERROR_ERRNO -- include errno text in output
|
||||
* RTEMS_ERROR_PANIC -- halts local system after output
|
||||
* RTEMS_ERROR_ABORT -- abort after output
|
||||
*
|
||||
* It can also include a rtems_status value which can be OR'd
|
||||
* with the above flags. *
|
||||
*
|
||||
* EXAMPLE
|
||||
* #include <rtems.h>
|
||||
* #include <rtems/error.h>
|
||||
* rtems_error(0, "stray interrupt %d", intr);
|
||||
*
|
||||
* EXAMPLE
|
||||
* if ((status = rtems_task_create(...)) != RTEMS_SUCCCESSFUL)
|
||||
* {
|
||||
* rtems_error(status | RTEMS_ERROR_ABORT,
|
||||
* "could not create task");
|
||||
* }
|
||||
*
|
||||
* EXAMPLE
|
||||
* if ((fd = open(pathname, O_RDNLY)) < 0)
|
||||
* {
|
||||
* rtems_error(RTEMS_ERROR_ERRNO, "open of '%s' failed", pathname);
|
||||
* goto failed;
|
||||
* }
|
||||
*/
|
||||
|
||||
/* This is always defined on RTEMS Scheduler Simulator and thus
|
||||
* we get a redefined warning if this is not present.
|
||||
*/
|
||||
@@ -153,15 +121,6 @@ static int rtems_verror(
|
||||
return chars_written;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Report an error.
|
||||
* error_flag is as above; printf_format is a normal
|
||||
* printf(3) format string, with its concommitant arguments.
|
||||
*
|
||||
* Returns the number of characters written.
|
||||
*/
|
||||
|
||||
int rtems_error(
|
||||
rtems_error_code_t error_flag,
|
||||
const char *printf_format,
|
||||
@@ -187,10 +146,6 @@ int rtems_error(
|
||||
return chars_written;
|
||||
}
|
||||
|
||||
/*
|
||||
* rtems_panic is shorthand for rtems_error(RTEMS_ERROR_PANIC, ...)
|
||||
*/
|
||||
|
||||
void rtems_panic(
|
||||
const char *printf_format,
|
||||
...
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief Lock File for Stdio
|
||||
* @ingroup SET
|
||||
*/
|
||||
/*
|
||||
* Copyright (c) 2009 by
|
||||
* Ralf Corsépius, Ulm, Germany. All rights reserved.
|
||||
@@ -14,7 +20,9 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
/* This is a non-functional stub */
|
||||
/**
|
||||
* This is a non-functional stub
|
||||
*/
|
||||
void flockfile(FILE* file __attribute__((unused)))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief Get Directory Entries
|
||||
* @ingroup libcsupport
|
||||
*/
|
||||
|
||||
/*
|
||||
* getdents() - Get Directory Entries
|
||||
*
|
||||
* SVR4 and SVID extension required by Newlib readdir() family.
|
||||
*
|
||||
* This routine will dd_len / (sizeof dirent) directory entries relative to
|
||||
* the current directory position index. These entries will be placed in
|
||||
* character array pointed to by -dd_buf-
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
@@ -24,6 +23,13 @@
|
||||
#include <rtems/libio_.h>
|
||||
#include <rtems/seterr.h>
|
||||
|
||||
/**
|
||||
* SVR4 and SVID extension required by Newlib readdir() family.
|
||||
*
|
||||
* This routine will dd_len / (sizeof dirent) directory entries relative to
|
||||
* the current directory position index. These entries will be placed in
|
||||
* character array pointed to by -dd_buf-
|
||||
*/
|
||||
int getdents(
|
||||
int dd_fd,
|
||||
char *dd_buf,
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief Process and Parent Process IDs
|
||||
* @ingroup libcsupport
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
@@ -8,25 +15,21 @@
|
||||
#include <rtems/score/object.h>
|
||||
#include <rtems/seterr.h>
|
||||
|
||||
/*
|
||||
/**
|
||||
* 4.1.1 Get Process and Parent Process IDs, P1003.1b-1993, p. 83
|
||||
*/
|
||||
|
||||
pid_t getpid( void )
|
||||
{
|
||||
return _Objects_Local_node;
|
||||
}
|
||||
|
||||
/*
|
||||
* _getpid_r
|
||||
*
|
||||
* This is the Newlib dependent reentrant version of getpid().
|
||||
*/
|
||||
|
||||
#if defined(RTEMS_NEWLIB) && !defined(HAVE__GETPID_R)
|
||||
|
||||
#include <reent.h>
|
||||
|
||||
/**
|
||||
* This is the Newlib dependent reentrant version of getpid().
|
||||
*/
|
||||
pid_t _getpid_r(
|
||||
struct _reent *ptr __attribute__((unused))
|
||||
)
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
/*
|
||||
* POSIX 1003.1b - 9.2.2 - User Database Access Routines
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief User Database Access Routines
|
||||
* @ingroup libcsupport
|
||||
*/
|
||||
|
||||
/*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
@@ -24,6 +29,10 @@
|
||||
#include <rtems/libio_.h>
|
||||
#include <rtems/seterr.h>
|
||||
|
||||
/**
|
||||
* POSIX 1003.1b - 9.2.2 - User Database Access Routines
|
||||
*/
|
||||
|
||||
/*
|
||||
* Static, thread-unsafe, buffers
|
||||
*/
|
||||
@@ -34,8 +43,8 @@ static FILE *group_fp;
|
||||
static char grbuf[200];
|
||||
static struct group grent;
|
||||
|
||||
/*
|
||||
* Initialize useable but dummy databases
|
||||
/**
|
||||
* Initialize useable but dummy databases
|
||||
*/
|
||||
void init_etc_passwd_group(void)
|
||||
{
|
||||
@@ -74,8 +83,8 @@ void init_etc_passwd_group(void)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Extract a string value from the database
|
||||
/**
|
||||
* Extract a string value from the database
|
||||
*/
|
||||
static int
|
||||
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
|
||||
@@ -109,8 +118,8 @@ scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Extract an integer value from the database
|
||||
/**
|
||||
* Extract an integer value from the database
|
||||
*/
|
||||
static int
|
||||
scanInt(FILE *fp, int *val)
|
||||
@@ -279,8 +288,8 @@ void endpwent(void)
|
||||
fclose(passwd_fp);
|
||||
}
|
||||
|
||||
/*
|
||||
* Extract a single group record from the database
|
||||
/**
|
||||
* Extract a single group record from the database
|
||||
*/
|
||||
static int scangr(
|
||||
FILE *fp,
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
/*
|
||||
* mkdir() - POSIX 1003.1b 5.4.1 - Make a Directory
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief Make a Directory
|
||||
* @ingroup libcsupport
|
||||
*/
|
||||
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
@@ -19,6 +24,9 @@
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/**
|
||||
* POSIX 1003.1b 5.4.1 - Make a Directory
|
||||
*/
|
||||
int mkdir(
|
||||
const char *pathname,
|
||||
mode_t mode
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief RTEMS Plugin Printf
|
||||
* @ingroup libcsupport
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2012 embedded brains GmbH. All rights reserved.
|
||||
*
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief Plugin Printk
|
||||
* @ingroup libcsupport
|
||||
*/
|
||||
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
/*
|
||||
* read() - POSIX 1003.1b 6.4.1 - Read From a File
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief Read From a File
|
||||
* @ingroup libcsupport
|
||||
*/
|
||||
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2011.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
@@ -16,6 +21,9 @@
|
||||
#include <rtems/libio_.h>
|
||||
#include <rtems/seterr.h>
|
||||
|
||||
/**
|
||||
* POSIX 1003.1b 6.4.1 - Read From a File
|
||||
*/
|
||||
ssize_t read(
|
||||
int fd,
|
||||
void *buffer,
|
||||
@@ -37,16 +45,13 @@ ssize_t read(
|
||||
return (*iop->pathinfo.handlers->read_h)( iop, buffer, count );
|
||||
}
|
||||
|
||||
/*
|
||||
* _read_r
|
||||
*
|
||||
* This is the Newlib dependent reentrant version of read().
|
||||
*/
|
||||
|
||||
#if defined(RTEMS_NEWLIB) && !defined(HAVE__READ_R)
|
||||
|
||||
#include <reent.h>
|
||||
|
||||
/**
|
||||
* This is the Newlib dependent reentrant version of read().
|
||||
*/
|
||||
ssize_t _read_r(
|
||||
struct _reent *ptr __attribute__((unused)),
|
||||
int fd,
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief RTEMS Extend Heap via Sbrk
|
||||
* @ingroup MallocSupport
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2012 embedded brains GmbH. All rights reserved.
|
||||
*
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief RTEMS File Sysyem Path Eval Support
|
||||
* @ingroup LibIOInternal
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2012 embedded brains GmbH. All rights reserved.
|
||||
*
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief Returns the Type of a Node
|
||||
* @ingroup LibIOInternal
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2012 embedded brains GmbH. All rights reserved.
|
||||
*
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
/*
|
||||
* tcgetattr() - POSIX 1003.1b 7.2.1 - Get and Set State
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief Get State
|
||||
* @ingroup Termios
|
||||
*/
|
||||
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
/*
|
||||
* tcsendbreak() - POSIX 1003.1b 7.2.2 - Line Control Functions
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief Line Control Functions
|
||||
* @ingroup Termios
|
||||
*/
|
||||
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief Convert Baud Part of Termios control flags to an integral Baud Value
|
||||
* @ingroup TermiostypesSupport
|
||||
*/
|
||||
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2008.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief RTEMS Termios Baud Table
|
||||
* @ingroup TermiostypesSupport
|
||||
*/
|
||||
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
/*
|
||||
* unlink() - POSIX 1003.1b - 5.5.1 - Remove an existing link
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief Remove an Existing Link
|
||||
* @ingroup libcsupport
|
||||
*/
|
||||
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
@@ -17,6 +22,9 @@
|
||||
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
/**
|
||||
* POSIX 1003.1b - 5.5.1 - Remove an existing link
|
||||
*/
|
||||
int unlink( const char *path )
|
||||
{
|
||||
int rv = 0;
|
||||
@@ -49,16 +57,13 @@ int unlink( const char *path )
|
||||
return rv;
|
||||
}
|
||||
|
||||
/*
|
||||
* _unlink_r
|
||||
*
|
||||
* This is the Newlib dependent reentrant version of unlink().
|
||||
*/
|
||||
|
||||
#if defined(RTEMS_NEWLIB)
|
||||
|
||||
#include <reent.h>
|
||||
|
||||
/**
|
||||
* This is the Newlib dependent reentrant version of unlink().
|
||||
*/
|
||||
int _unlink_r(
|
||||
struct _reent *ptr __attribute__((unused)),
|
||||
const char *path
|
||||
|
||||
Reference in New Issue
Block a user