Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!bionet!arisia!sgi!shinobu!odin!bananapc.wpd.sgi.com!ciemo From: ciemo@bananapc.wpd.sgi.com (Dave Ciemiewicz) Newsgroups: comp.sys.mips Subject: Re: C limits. Message-ID: <7040@odin.corp.sgi.com> Date: 30 Apr 90 18:21:01 GMT References: <38362@mips.mips.COM> <20243@shamash.cdc.com> Sender: news@odin.corp.sgi.com Reply-To: ciemo@bananapc.wpd.sgi.com (Dave Ciemiewicz) Distribution: usa Organization: Silicon Graphics, Inc. Lines: 36 In article <38362@mips.mips.COM>, lai@mips.COM (David Lai) writes: > In article <20243@shamash.cdc.com> pwh@hare.udev.cdc.com (pw haynes x-2604) writes: > >Request data on the following C and system limits. > > > >4) Maximum length of file name (in characters)? > > From the ANSI C standard (2.2.4.1): > > 1) 509 > 2) 511 external, 127 in block scope > 3) 32767 bytes in an object (doesn't specify initialized or not) > > But I believe our C implementation exceeds these minimum bounds. To guarantee > full portablilty, the above bounds should not be exceeded. There are flags > on the command line that can adjust the maximum limits of some parameters. > > 4) from dirent.h: #define MAXNAMLEN 255 /* maximum filename length */ > > In the future, we will support the FILENAME_MAX macro in stdio.h, the initial > value will probably be the same (255). > -- > "What is a DJ if he can't scratch?" - Uncle Jamms Army > David Lai (lai@mips.com || {ames,prls,pyramid,decwrl}!mips!lai) The System V.2 (and later) include file /usr/include/limits.h contains the appropriate maximums: NAME_MAX 255 PATH_MAX 1024 Well this is at least true on the Silicon Graphics IRIS 4D and I believe it may also be true for MIPS. --- Ciemo