aliases.h
上传用户:szlgq88
上传日期:2009-04-28
资源大小:48287k
文件大小:2k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
  2.    This file is part of the GNU C Library.
  3.    The GNU C Library is free software; you can redistribute it and/or
  4.    modify it under the terms of the GNU Lesser General Public
  5.    License as published by the Free Software Foundation; either
  6.    version 2.1 of the License, or (at your option) any later version.
  7.    The GNU C Library is distributed in the hope that it will be useful,
  8.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  9.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  10.    Lesser General Public License for more details.
  11.    You should have received a copy of the GNU Lesser General Public
  12.    License along with the GNU C Library; if not, write to the Free
  13.    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  14.    02111-1307 USA.  */
  15. #ifndef _ALIASES_H
  16. #define _ALIASES_H 1
  17. #include <features.h>
  18. #include <sys/types.h>
  19. __BEGIN_DECLS
  20. /* Structure to represent one entry of the alias data base.  */
  21. struct aliasent
  22.   {
  23.     char *alias_name;
  24.     size_t alias_members_len;
  25.     char **alias_members;
  26.     int alias_local;
  27.   };
  28. /* Open alias data base files.  */
  29. extern void setaliasent (void) __THROW;
  30. /* Close alias data base files.  */
  31. extern void endaliasent (void) __THROW;
  32. /* Get the next entry from the alias data base.  */
  33. extern struct aliasent *getaliasent (void) __THROW;
  34. /* Get the next entry from the alias data base and put it in RESULT_BUF.  */
  35. extern int getaliasent_r (struct aliasent *__restrict __result_buf,
  36.   char *__restrict __buffer, size_t __buflen,
  37.   struct aliasent **__restrict __result) __THROW;
  38. /* Get alias entry corresponding to NAME.  */
  39. extern struct aliasent *getaliasbyname (__const char *__name) __THROW;
  40. /* Get alias entry corresponding to NAME and put it in RESULT_BUF.  */
  41. extern int getaliasbyname_r (__const char *__restrict __name,
  42.      struct aliasent *__restrict __result_buf,
  43.      char *__restrict __buffer, size_t __buflen,
  44.      struct aliasent **__restrict __result) __THROW;
  45. __END_DECLS
  46. #endif /* aliases.h */