[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-devel
Subject:    Re: Proposition for platform maximum filename/pathname length
From:       Matthias Clasen <matthias.clasen () gmail ! com>
Date:       2005-12-24 2:48:59
Message-ID: cbccc63c0512231848k2d571955vaf87d03e68313969 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

On 12/23/05, Chris Morrison <chris-morrison@linuxmail.org> wrote:
>
>  Hi all,
>
>
>
> I would like to make a suggestion for a small but useful addition GLib,
> which I think is a glaring omission and which I have found myself needing
> for a current development project.
>
>
>
> I propose that the following symbols be defined and available to programs
> compiled against GLib:
>
>
>
> G_MAX_PATH_LENGTH
>
> G_MAX_FILENAME_LENGTH
>
>
>
> The purpose of these should be self-explanatory; G_MAX_PATH_LENGTH would
> be defined as the maximum length in bytes a pathname can be (e.g. PATH_MAX
> under Linux and MAX_PATH under Windoze). G_MAX_FILENAME_LENGTH would be the
> maximum length of a single filename (if different).
>
>
>
> Has anyone else been frustrated by the absence of such symbols or have I
> missed something?
>
The maximum path length may well be different for different file systems.
You can use pathconf() to get the
value for a specific path.

Matthias

[Attachment #5 (text/html)]

<br><br><div><span class="gmail_quote">On 12/23/05, <b class="gmail_sendername">Chris \
Morrison</b> &lt;<a href="mailto:chris-morrison@linuxmail.org">chris-morrison@linuxmail.org</a>&gt; \
wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">











<div>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Hi \
all,</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: \
Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I \
would like to make a suggestion for a small but useful addition GLib, which I think \
is a glaring omission and which I have found myself needing for a current development \
project.</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: \
Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I \
propose that the following symbols be defined and available to programs compiled \
against GLib:</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: \
Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: \
Arial;">G_MAX_PATH_LENGTH</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: \
Arial;">G_MAX_FILENAME_LENGTH</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: \
Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">The \
purpose of these should be self-explanatory; G_MAX_PATH_LENGTH would be defined as \
the maximum length in bytes a pathname can be (e.g. PATH_MAX under Linux and MAX_PATH \
under Windoze). G_MAX_FILENAME_LENGTH would be the maximum length of a single \
filename (if different).</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: \
Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Has \
anyone else been frustrated by the absence of such symbols or have I missed \
something?</span></font></p></div></blockquote></div>The maximum path length may well \
be different for different file systems. You can use pathconf() to get the<br>value \
for a specific path.<br><br> Matthias<br>



_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic