Article View: comp.std.unix
Article #118Re: Query about <dirent.h>
From: gwyn
Date: Fri, 24 Nov 1989 19:06
Date: Fri, 24 Nov 1989 19:06
17 lines
965 bytes
965 bytes
From: gwyn@BRL.MIL In article <441@longway.TIC.COM> Andy Tanenbaum <uunet!cs.vu.nl!ast> writes: -> char d_name[1]; -What happens when a program allocates a struct dirent in a program? The -compiler will not allocate enough storage and it will crash when used. That's what happens when programmers assume things that are not promised by the standards. -Is it legal to add a line -#include <limits.h> -in <dirent.h>? NO. Volume-Number: Volume 17, Number 70
Technical Details
Message-ID:
<442@longway.TIC.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!longway!std-unixReferences:
<437@longway.TIC.COM> <438@longway.TIC.COM> <441@longway.TIC.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!longway!std-unix From: gwyn@BRL.MIL Newsgroups: comp.std.unix Subject: Re: Query about <dirent.h> Message-ID: <442@longway.TIC.COM> Date: 24 Nov 89 19:06:41 GMT References: <437@longway.TIC.COM> <438@longway.TIC.COM> <441@longway.TIC.COM> Sender: std-unix@longway.TIC.COM Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 17 Approved: jsq@longway.tic.com (Moderator, John S. Quarterman)