[9543] in Athena Bugs

home help back first fref pref prev next nref lref last post

rsaix 7.4G: redeclares free()

daemon@ATHENA.MIT.EDU (ckclark@Athena.MIT.EDU)
Sat Jul 4 06:23:57 1992

From: ckclark@Athena.MIT.EDU
To: bugs@Athena.MIT.EDU
Date: Sat, 04 Jul 92 06:23:47 EDT

System name:		rosebud
Type and version:	POWER 7.4G (1 update(s) to same version)
Display type:		

What were you trying to do?

	Compile a program.

What's wrong:

	<sys/NLchar.h> declares free() at the end:

extern NLchar *_NCgetbuf();
#ifndef _KERNEL
#ifdef   _NO_PROTO
extern void free();
#else  /*_NO_PROTO */
extern void free(void *ptr);
#endif  /*_NO_PROTO */
#endif	/* _KERNEL */
#endif /* _H_NLCHAR */
	
What should have happened:

That's the job of <stdlib.h>.  Using this include file with stdlib.h
will produces compiler errors because of this redeclaration.

Please describe any relevant documentation references:

	ANSI spec.

home help back first fref pref prev next nref lref last post