Backout "compatibility hack" for __sF.

Requested by: Steve Kargl <sgk@troutmask.apl.washington.edu> (submitter)
This commit is contained in:
Alfred Perlstein 2002-11-04 03:23:56 +00:00
parent 518792d85c
commit ac1cc6ee11
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106396
4 changed files with 1 additions and 25 deletions

View file

@ -4,10 +4,6 @@
# stdio sources # stdio sources
.PATH: ${.CURDIR}/../libc/stdio .PATH: ${.CURDIR}/../libc/stdio
.if WANT_COMPAT4_STDIO
CFLAGS+=-DCOMPAT4_STDIO
.endif
SRCS+= _flock_stub.c asprintf.c clrerr.c fclose.c fdopen.c feof.c ferror.c \ SRCS+= _flock_stub.c asprintf.c clrerr.c fclose.c fdopen.c feof.c ferror.c \
fflush.c fgetc.c fgetln.c fgetpos.c fgets.c fgetwc.c fgetws.c \ fflush.c fgetc.c fgetln.c fgetpos.c fgets.c fgetwc.c fgetws.c \
fileno.c findfp.c flags.c fopen.c fprintf.c fpurge.c fputc.c fputs.c \ fileno.c findfp.c flags.c fopen.c fprintf.c fpurge.c fputc.c fputs.c \

View file

@ -69,16 +69,12 @@ static struct glue uglue = { NULL, FOPEN_MAX - 3, usual };
static struct __sFILEX __sFX[3]; static struct __sFILEX __sFX[3];
#ifndef COMPAT4_STDIO static FILE __sF[3] = {
static
#endif
FILE __sF[3] = {
std(__SRD, STDIN_FILENO), std(__SRD, STDIN_FILENO),
std(__SWR, STDOUT_FILENO), std(__SWR, STDOUT_FILENO),
std(__SWR|__SNBF, STDERR_FILENO) std(__SWR|__SNBF, STDERR_FILENO)
}; };
/* /*
* The following kludge is done to ensure enough binary compatibility * The following kludge is done to ensure enough binary compatibility
* with future versions of libc. Or rather it allows us to work with * with future versions of libc. Or rather it allows us to work with

View file

@ -171,14 +171,6 @@
#COMPAT3X= yes #COMPAT3X= yes
#COMPAT4X= yes #COMPAT4X= yes
# #
# If you have a commercial application for a FreeBSD 4.x that cannot easily
# be updated to a FreeBSD 5.x application and it generates the error message
# "undefined reference to `__sF'", then you can uncomment the following
# line to build a libc compatibility with FreeBSD 4.x. NOTE, THIS SHOULD BE
# USED AS A LAST RESORT.
#
#WANT_COMPAT4_STDIO= yes
#
# #
# Default format for system documentation, depends on your printer. # Default format for system documentation, depends on your printer.
# Set this to "ascii" for simple printers or screen # Set this to "ascii" for simple printers or screen

View file

@ -605,14 +605,6 @@ levels to a lower one.
and above is known to trigger known optimizer bugs at various and above is known to trigger known optimizer bugs at various
times \(em this is worse on the Alpha platform. times \(em this is worse on the Alpha platform.
The value assigned is the highest optimization value used. The value assigned is the highest optimization value used.
.It Va WANT_COMPAT4_STDIO
.Pq Vt bool
If you have a commercial application for a FreeBSD 4.x that cannot easily
be updated to a FreeBSD 5.x application and it generates the error message
.Dq undefined reference to `__sF' ,
then you can uncomment the following line to build a libc compatibility with
FreeBSD 4.x.
.Em NOTE, THIS SHOULD BE USED AS A LAST RESORT.
.El .El
.Pp .Pp
The following list provides a name and short description for variables The following list provides a name and short description for variables