home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / uccs / root.14 / udk / usr / include / nwusers.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-19  |  2.6 KB  |  82 lines

  1. /*
  2.  * Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved. 
  3.  *                                                                         
  4.  *        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE               
  5.  *                   SANTA CRUZ OPERATION INC.                             
  6.  *                                                                         
  7.  *   The copyright notice above does not evidence any actual or intended   
  8.  *   publication of such source code.                                      
  9.  */
  10.  
  11. /* $Novell-NWU: $Header: /proj6/ncps/nwu_top/base/include/nwusers.h,v 1.2 1996/04/05 21:52:02 vtag Exp $ */
  12. /*    Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995 Novell, Inc. All Rights Reserved.    */
  13. /*    Copyright (c) 1988, 1990 Novell, Inc. All Rights Reserved.    */
  14. /*      All Rights Reserved      */
  15.  
  16. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF Novell Inc.    */
  17. /*    The copyright notice above does not evidence any       */
  18. /*    actual or intended publication of such source code.    */
  19.  
  20. /*    Copyright (c) 1990, 1991, 1992, 1993, 1994 Novell, Inc. All Rights Reserved.    */
  21. /*    Copyright (c) 1988, 1990 Novell, Inc. All Rights Reserved.    */
  22. /*      All Rights Reserved      */
  23.  
  24. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF Novell Inc.    */
  25. /*    The copyright notice above does not evidence any       */
  26. /*    actual or intended publication of such source code.    */
  27.  
  28. #ifndef _NWUSERS_H
  29. #define _NWUSERS_H
  30.  
  31. #ident "@(#)nwusers.h    1.2"
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37.  
  38. #define NWUSERS        "/etc/netware/nwusers"  /* Hybrid mapping file */
  39. #define ONWUSERS     "/etc/netware/onwusers" /* Previous state of nwusers */
  40. #define NWTEMP        "/etc/nwtmp"  /* temprary file used when modifying nwusers */
  41. #define NDSNAME_MAX    256  /* Maximun length of NDS name */
  42. #define NDSFULNAME_MAX    512  /* Maximun length of NDS full name */
  43.  
  44.  
  45. /* The hybrid structure is used in the retreval of information from
  46.    /etc/netware/nwusers.  */
  47.  
  48. struct hybrid {
  49.     char *nds_namp;   /* Hybrid user's NDS name */
  50.     char *unix_namp; /* Hybrid user's UNIX name */
  51. } ;
  52.  
  53. #if defined(__STDC__)
  54.  
  55. #ifndef _STDIO_H
  56. #include <stdio.h>
  57. #endif
  58.  
  59. /* Declare all hybrid mapping functions */
  60.  
  61. extern void    setnwent(void), endnwent(void);
  62. extern    struct    hybrid    *getnwent(void), *fgetnwent(FILE *), *getndsnam(const char *);
  63. extern    struct    passwd    *getunixnam(const char *);
  64. extern    int    fputnwent(const struct hybrid *, FILE *);
  65.  
  66. #else
  67.  
  68. /* Declare all hybrid mapping functions */
  69.  
  70. void         setnwent(), endnwent() ;
  71. struct hybrid     *getnwent(), *fgetnwent(), *getndsnam() ;
  72. struct passwd     *getunixnam();
  73. int         fputnwent() ;
  74.  
  75. #endif
  76.  
  77. #ifdef __cplusplus
  78. }
  79. #endif
  80.  
  81. #endif /* _NWUSERS_H */
  82.