forked from Imagelibrary/rtems
libcsupport: Doxygen enhancement task #2
http://www.google-melange.com/gci/task/view/google/gci2012/8017203
This commit is contained in:
committed by
Gedare Bloom
parent
7e731815e5
commit
bcd0ea6409
@@ -32,6 +32,9 @@ typedef struct {
|
|||||||
|
|
||||||
#define RTEMS_ASSOC_DEFAULT_NAME "(default)"
|
#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 *rtems_assoc_ptr_by_name(
|
||||||
const rtems_assoc_t *,
|
const rtems_assoc_t *,
|
||||||
const char *
|
const char *
|
||||||
@@ -52,6 +55,9 @@ uint32_t rtems_assoc_local_by_remote(
|
|||||||
uint32_t
|
uint32_t
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief RTEMS Associate Remote by Name
|
||||||
|
*/
|
||||||
uint32_t rtems_assoc_remote_by_name(
|
uint32_t rtems_assoc_remote_by_name(
|
||||||
const rtems_assoc_t *,
|
const rtems_assoc_t *,
|
||||||
const char *
|
const char *
|
||||||
|
|||||||
@@ -27,7 +27,17 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @defgroup libcsupport Standard C Library Support
|
||||||
|
*
|
||||||
|
* @brief RTEMS Specific Support for the Standard C Library
|
||||||
|
*/
|
||||||
|
|
||||||
extern void malloc_dump(void);
|
extern void malloc_dump(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Malloc Walk
|
||||||
|
*/
|
||||||
extern bool malloc_walk(int source, bool printf_enabled);
|
extern bool malloc_walk(int source, bool printf_enabled);
|
||||||
void malloc_set_heap_pointer(Heap_Control *new_heap);
|
void malloc_set_heap_pointer(Heap_Control *new_heap);
|
||||||
Heap_Control *malloc_get_heap_pointer( void );
|
Heap_Control *malloc_get_heap_pointer( void );
|
||||||
|
|||||||
@@ -399,6 +399,9 @@ typedef struct {
|
|||||||
rtems_filesystem_eval_path_eval_token eval_token;
|
rtems_filesystem_eval_path_eval_token eval_token;
|
||||||
} rtems_filesystem_eval_path_generic_config;
|
} rtems_filesystem_eval_path_generic_config;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief RTEMS File System Eval Generic Path
|
||||||
|
*/
|
||||||
void rtems_filesystem_eval_path_generic(
|
void rtems_filesystem_eval_path_generic(
|
||||||
rtems_filesystem_eval_path_context_t *ctx,
|
rtems_filesystem_eval_path_context_t *ctx,
|
||||||
void *arg,
|
void *arg,
|
||||||
@@ -535,7 +538,9 @@ static inline void rtems_filesystem_location_error(
|
|||||||
errno = eno;
|
errno = eno;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* @brief RTEMS File System Mknod
|
||||||
|
*/
|
||||||
int rtems_filesystem_mknod(
|
int rtems_filesystem_mknod(
|
||||||
const rtems_filesystem_location_info_t *parentloc,
|
const rtems_filesystem_location_info_t *parentloc,
|
||||||
const char *name,
|
const char *name,
|
||||||
|
|||||||
@@ -26,6 +26,14 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @defgroup TermiostypesSupport RTEMS Termios Device Support
|
||||||
|
*
|
||||||
|
* @ingroup libcsupport
|
||||||
|
*
|
||||||
|
* @brief RTEMS Termios Device Support Internal Data Structures
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Wakeup callback data structure
|
* Wakeup callback data structure
|
||||||
*/
|
*/
|
||||||
@@ -186,11 +194,11 @@ typedef uint32_t rtems_termios_baud_t;
|
|||||||
extern const rtems_assoc_t rtems_termios_baud_table [];
|
extern const rtems_assoc_t rtems_termios_baud_table [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Converts the integral baud value @a baud to the Termios control flag
|
* @brief Converts the Integral Baud value @a baud to the Termios Control Flag
|
||||||
* representation.
|
* Representation
|
||||||
*
|
*
|
||||||
* @retval B0 Invalid baud value or a baud value of 0.
|
* @retval B0 Invalid baud value or a baud value of 0.
|
||||||
* @retval other Baud constant according to @a baud.
|
* @retval other Baud constant according to @a baud.
|
||||||
*/
|
*/
|
||||||
tcflag_t rtems_termios_number_to_baud(rtems_termios_baud_t 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);
|
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);
|
int rtems_termios_baud_to_index(rtems_termios_baud_t termios_baud);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
/*
|
/**
|
||||||
* assoc.c
|
* @file
|
||||||
* rtems assoc routines
|
*
|
||||||
|
* @brief RTEMS Associate Pointer by Name
|
||||||
|
* @ingroup Associativity
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if HAVE_CONFIG_H
|
#if HAVE_CONFIG_H
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
/*
|
/**
|
||||||
* assoc.c
|
* @file
|
||||||
* rtems assoc routines
|
*
|
||||||
|
* @brief RTEMS Associate Remote by Name
|
||||||
|
* @ingroup Associativity
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if HAVE_CONFIG_H
|
#if HAVE_CONFIG_H
|
||||||
|
|||||||
@@ -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.
|
* COPYRIGHT (c) 1989-1999.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
@@ -18,6 +23,9 @@
|
|||||||
|
|
||||||
#include <rtems/libio_.h>
|
#include <rtems/libio_.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POSIX 1003.1b 6.2.1 Duplicate an Open File Descriptor
|
||||||
|
*/
|
||||||
int dup2(
|
int dup2(
|
||||||
int fildes,
|
int fildes,
|
||||||
int fildes2
|
int fildes2
|
||||||
|
|||||||
@@ -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.
|
* COPYRIGHT (c) 1989-1999.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
@@ -17,6 +22,9 @@
|
|||||||
|
|
||||||
#include <rtems/libio_.h>
|
#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 fchown( int fd, uid_t owner, gid_t group )
|
||||||
{
|
{
|
||||||
int rv = 0;
|
int rv = 0;
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief Get Supplementary IDs
|
||||||
|
* @ingroup libcsupport
|
||||||
|
*/
|
||||||
|
|
||||||
#if HAVE_CONFIG_H
|
#if HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -5,10 +12,9 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* 4.2.3 Get Supplementary IDs, P1003.1b-1993, p. 86
|
* 4.2.3 Get Supplementary IDs, P1003.1b-1993, p. 86
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int getgroups(
|
int getgroups(
|
||||||
int gidsetsize __attribute__((unused)),
|
int gidsetsize __attribute__((unused)),
|
||||||
gid_t grouplist[] __attribute__((unused))
|
gid_t grouplist[] __attribute__((unused))
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief Test for a Terminal Device
|
||||||
|
* @ingroup libcsupport
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT (c) 1989-2009.
|
* COPYRIGHT (c) 1989-2009.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
@@ -11,14 +18,11 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* _isatty_r
|
|
||||||
*
|
|
||||||
* This is the Newlib dependent reentrant version of isatty().
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if defined(RTEMS_NEWLIB) && !defined(HAVE__ISATTY_R)
|
#if defined(RTEMS_NEWLIB) && !defined(HAVE__ISATTY_R)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the Newlib dependent reentrant version of isatty().
|
||||||
|
*/
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <reent.h>
|
#include <reent.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|||||||
@@ -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.
|
* COPYRIGHT (c) 1989-1999.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
@@ -17,6 +22,9 @@
|
|||||||
|
|
||||||
#include <rtems/libio_.h>
|
#include <rtems/libio_.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* link() - POSIX 1003.1b - 5.3.4 - Create a new link
|
||||||
|
*/
|
||||||
int link( const char *path1, const char *path2 )
|
int link( const char *path1, const char *path2 )
|
||||||
{
|
{
|
||||||
int rv = 0;
|
int rv = 0;
|
||||||
@@ -50,16 +58,13 @@ int link( const char *path1, const char *path2 )
|
|||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* _link_r
|
|
||||||
*
|
|
||||||
* This is the Newlib dependent reentrant version of link().
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if defined(RTEMS_NEWLIB)
|
#if defined(RTEMS_NEWLIB)
|
||||||
|
|
||||||
#include <reent.h>
|
#include <reent.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the Newlib dependent reentrant version of link().
|
||||||
|
*/
|
||||||
int _link_r(
|
int _link_r(
|
||||||
struct _reent *ptr __attribute__((unused)),
|
struct _reent *ptr __attribute__((unused)),
|
||||||
const char *path1,
|
const char *path1,
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
/*
|
/**
|
||||||
* malloc_walk Implementation
|
* @file
|
||||||
*
|
*
|
||||||
|
* @brief Malloc Walk
|
||||||
|
* @ingroup libcsupport
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
* COPYRIGHT (c) 1989-2007.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -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.
|
* COPYRIGHT (c) 1989-1999.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
@@ -55,6 +56,11 @@ int rtems_filesystem_mknod(
|
|||||||
return rv;
|
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 mknod( const char *path, mode_t mode, dev_t dev )
|
||||||
{
|
{
|
||||||
int rv = 0;
|
int rv = 0;
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief Newlib Support
|
||||||
|
* @ingroup libcsupport
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The license and distribution terms for this file may be
|
* The license and distribution terms for this file may be
|
||||||
* found in the file LICENSE in this distribution or at
|
* 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.
|
* Called when a task is deleted.
|
||||||
* Must restore the new lib reentrancy state for the new current
|
* Must restore the new lib reentrancy state for the new current
|
||||||
* task.
|
* task.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int newlib_free_buffers(
|
int newlib_free_buffers(
|
||||||
FILE *fp
|
FILE *fp
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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.
|
* COPYRIGHT (c) 1989-1999.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
@@ -17,6 +22,9 @@
|
|||||||
|
|
||||||
#include <rtems/libio_.h>
|
#include <rtems/libio_.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POSIX 1003.1b - X.X.X - XXX
|
||||||
|
*/
|
||||||
ssize_t readlink( const char *path, char *buf, size_t bufsize )
|
ssize_t readlink( const char *path, char *buf, size_t bufsize )
|
||||||
{
|
{
|
||||||
ssize_t rv = 0;
|
ssize_t rv = 0;
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief Set Process Group ID for Job Control
|
||||||
|
* @ingroup libcsupport
|
||||||
|
*/
|
||||||
|
|
||||||
#if HAVE_CONFIG_H
|
#if HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -6,10 +13,9 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <rtems/seterr.h>
|
#include <rtems/seterr.h>
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* 4.3.3 Set Process Group ID for Job Control, P1003.1b-1993, p. 89
|
* 4.3.3 Set Process Group ID for Job Control, P1003.1b-1993, p. 89
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int setpgid(
|
int setpgid(
|
||||||
pid_t pid __attribute__((unused)),
|
pid_t pid __attribute__((unused)),
|
||||||
pid_t pgid __attribute__((unused))
|
pid_t pgid __attribute__((unused))
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief RTEMS DeviceIO Support
|
||||||
|
* @ingroup Device
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT (c) 1989-2012.
|
* COPYRIGHT (c) 1989-2012.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief RTEMS File System Eval Generic Path
|
||||||
|
* @ingroup LibIOInternal
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2012 embedded brains GmbH. All rights reserved.
|
* Copyright (c) 2012 embedded brains GmbH. All rights reserved.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -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.
|
* COPYRIGHT (c) 1989-1999.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
@@ -18,6 +23,9 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POSIX 1003.1b 7.2.3 - Get Foreground Process Group ID
|
||||||
|
*/
|
||||||
pid_t tcgetpgrp(int fd __attribute__((unused)))
|
pid_t tcgetpgrp(int fd __attribute__((unused)))
|
||||||
{
|
{
|
||||||
return getpid();
|
return getpid();
|
||||||
|
|||||||
@@ -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.
|
* COPYRIGHT (c) 1989-1999.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
@@ -26,6 +31,9 @@
|
|||||||
#include <rtems/libio_.h>
|
#include <rtems/libio_.h>
|
||||||
#include <rtems/seterr.h>
|
#include <rtems/seterr.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POSIX 1003.1b 7.2.1 - Get and Set State
|
||||||
|
*/
|
||||||
int tcsetattr(
|
int tcsetattr(
|
||||||
int fd,
|
int fd,
|
||||||
int opt,
|
int opt,
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief Convert Bxxx Constant to Index
|
||||||
|
* @ingroup TermiostypesSupport
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT (c) 1989-2008.
|
* COPYRIGHT (c) 1989-2008.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief Converts the Integral Baud to Termios Control Flag Representation
|
||||||
|
* @ingroup TermiostypesSupport
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT (c) 1989-2008.
|
* COPYRIGHT (c) 1989-2008.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
/*
|
/**
|
||||||
* Termios initialization routine
|
* @file
|
||||||
*
|
*
|
||||||
|
* @brief Termios Initialization
|
||||||
|
* @ingroup Termios
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
* Author:
|
* Author:
|
||||||
* W. Eric Norum
|
* W. Eric Norum
|
||||||
* Saskatchewan Accelerator Laboratory
|
* Saskatchewan Accelerator Laboratory
|
||||||
|
|||||||
@@ -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.
|
* COPYRIGHT (c) 1989-1999.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
@@ -21,6 +22,11 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.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(
|
int truncate(
|
||||||
const char *path,
|
const char *path,
|
||||||
off_t length
|
off_t length
|
||||||
|
|||||||
Reference in New Issue
Block a user