🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #101

fileutils 3.2 and TIOCGWINSZ

#101
From: Brendan Kehoe
Date: Mon, 06 Apr 1992 12:50
10 lines
920 bytes
When configured for a sparc, the symbol _POSIX_SOURCE gets defined
because SunOS 4.1 and up have POSIX_VERSION in their sys/unistd.h
header.  As a result, the definition of TIOCGWINSZ isn't gleaned when
ls.c includes sys/ioctl.h.  The resulting behavior is ls defaulting to
80 column output for `-C' et al., since the COLUMNS env variable isn't
defined by anything (e.g., bash).  Is there any clean way to get
around this?  I just commented out the offending code in configure
that sets _POSIX_SOURCE.

Brendan
Technical Details
Message-ID: <199204062050.AA28588@lisa.cs.widener.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cs.widener.edu!brendan

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cs.widener.edu!brendan
From: brendan@cs.widener.edu (Brendan Kehoe)
Subject: fileutils 3.2 and TIOCGWINSZ
Message-ID: <199204062050.AA28588@lisa.cs.widener.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 6 Apr 1992 12:50:20 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 11