Changeset 2d3c472b in rtems


Ignore:
Timestamp:
11/15/02 14:50:44 (21 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
471bcf0
Parents:
8a2e2aaa
Message:

2002-11-15 Ralf Corsepius <corsepiu@…>

  • include/rtems/userenv.h: Rely upon <limits.h> for _POSIX_LOGIN_NAME_MAX.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r8a2e2aaa r2d3c472b  
     12002-11-15      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * include/rtems/userenv.h: Rely upon <limits.h> for
     4        _POSIX_LOGIN_NAME_MAX.
     5
    162002-11-15      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    27
  • cpukit/include/rtems/userenv.h

    r8a2e2aaa r2d3c472b  
    2525 *  External structures
    2626 */
    27 #if !defined(LOGIN_NAME_MAX)
    28 #if defined(__linux__)
     27
     28/*
     29 * According to IEEE Std 1003.1-2001,
     30 * limits.h is supposed to provide _POSIX_LOGIN_NAME_MAX
     31 * FIXME: We should not rely on this.
     32 */
     33#include <limits.h>
     34
     35#ifdef _POSIX_LOGIN_NAME_MAX
    2936#define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
    3037#else
    31 #error "don't know how to set LOGIN_NAME_MAX"
    32 #endif
     38/* Fallback */
     39#define LOGIN_NAME_MAX 9
    3340#endif
    3441
Note: See TracChangeset for help on using the changeset viewer.