tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* which cuserid definition?
@ 2001-05-19 15:29 Paul Reilly
  0 siblings, 0 replies; only message in thread
From: Paul Reilly @ 2001-05-19 15:29 UTC (permalink / raw)
  To: tru64-unix-managers


Hi,

I'm compiling gcc-2.95.3 on a tru64 v5.1 box. It compiles okay, but there
are lots of warnings about conflicting definitions for the cuserid value.
As far as I know this is the definition which determines user name length,
and may be changed depending on if you're using C2 or not?

The warnings I'm getting are that:

include/unistd.h:608: warning: `cuserid' redefined
include/stdio.h:457: warning: this is the location of the previous definition

What should be the correct definition for cuserid on a C2 system?


The following files define it as follows:

--------------------------------------------------------------------------------
unistd.h
--------------------------------------------------------------------------------

#ifndef _XOPEN_SOURCE
#if !defined(_LIBC_POLLUTION_H_) && !defined(__V40_OBJ_COMPAT)
#ifdef __DECC
#pragma extern_prefix "_E"
#else
#define cuserid _Ecuserid
#endif /* __DECC */
#endif /* __V40_OBJ_COMPAT && _LIBC_POLLUTION_H_ */

extern char *__V40_OC(cuserid) __((char *));


--------------------------------------------------------------------------------
stdio.h
--------------------------------------------------------------------------------
/stdio.h gives this definition

/*
 * Value to determine the maximum number of bytes allowed in a username.
 * This support is versioned to allow applications using the previous
 * value to continue working without fear of overwriting buffer space.
 * The _O_L_cuserid is the value of L_cuserid prior to V5.0 to help
 * applications distinguish between the old and new value.
 */
#define _O_L_cuserid    9
#if !defined(__V40_OBJ_COMPAT)
#define L_cuserid       64
#else
#define L_cuserid       9
#endif


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-19 15:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-19 15:29 which cuserid definition? Paul Reilly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox