On 29 Apr, Yo 'Ric Dude shouted:
-> Gregory Hayes wrote:
-> >
-> > Problem found for hpux on config file parsing, FILENAME_MAX is the size
-> > of the string for the lines read in from the config file.
-> >
-> > loadcfg.c
-> > --------------------------------------------------
-> > void LoadConfig(char *file)
-> > {
-> > FILE *f;
-> > char s[FILENAME_MAX];
-> > char ss[FILENAME_MAX];
-> > char s1[256],s2[256],s3[256];
-> > --------------------------------------------------
-> >
-> > As you can see below on linux that is 4095 bytes on solaris 1024 bytes
-> > and on hpux only 14 bytes
-> >
-> > for linux
-> > /usr/include/stdio_lim.h:#define FILENAME_MAX 4095
-> > for hpux
-> > /usr/include/stdio.h:# define FILENAME_MAX 14
-> > for solaris
-> > /usr/include/stdio.h:#define FILENAME_MAX 1024
-> >
-> > FILENAME_MAX is also used many other places in the code
-> >
-> [snip grep output]
-> > suggest either a redefine of FILENAME_MAX on hpux or use of a differant
-> > constant
->
-> s and ss (in the example above) should be used in the generation
-> of the path to the theme, and should probably use the constant
-> PATH_MAX, instead. However, 0.13.x is dead code at this point,
-> so is that something that can be worked in for 0.14?
yup exactly.. dead coe.. NONE of my 0.14 code uses the FILENAME_MAx
defines or PATH_MAX defines - so its not going to complain.. it may
generate paths to long in theory..... but its "scratch space" - lets
wait and see shall we.. mandraek is really concerned with a lot of that
and i need to see what's up wiht his new baby :)
-> -- ebm
-> +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
-> | __ a.k.a. Eric B. Mitchell |
-> | |_) . _ _| _| _ [EMAIL PROTECTED] |
-> | | \ ( (_ (_| (_| (_| (/_ www.netcom.com/~ericmit |
-> | How's My Programming? Call: 1 - 800 - DEV - NULL |
-> +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
-> -
-> To unsubscribe from this list send mail to: [EMAIL PROTECTED]
-> with the message contents: unsubscribe e-develop
--
--------------- Codito, ergo sum - "I code, therefore I am" --------------------
[EMAIL PROTECTED] /\___ /\ ___/||\___ ____/|/\___ [EMAIL PROTECTED]
Carsten Haitzler | _ //__\\ __||_ __\\ ___|| _ / Red Hat Advanced
218/21 Conner Drive || // __ \\_ \ | | \ _/_|| / Development Labs
Chapel Hill NC 27514 USA ||\\\/ \//__/ |_| /___/||\\ 919 547 0012 ext 282
+1 (919) 929 9443, 801 4392 For pure Enlightenmenthttp://www.rasterman.com/
-
To unsubscribe from this list send mail to: [EMAIL PROTECTED]
with the message contents: unsubscribe e-develop