Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #109: The electricity substation in the car park blew up.


comp / comp.os.linux.advocacy / Then there's PATH_MAX

SubjectAuthor
* Then there's PATH_MAXvallor
`* Re: Then there's PATH_MAXDFS
 `* Re: Then there's PATH_MAXLawrence D'Oliveiro
  +- Re: Then there's PATH_MAXvallor
  +- Re: Then there's PATH_MAXDFS
  `- Re: Then there's PATH_MAXDFS

1
Subject: Then there's PATH_MAX
From: vallor
Newsgroups: comp.os.linux.advocacy
Date: Mon, 9 Dec 2024 06:09 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: vallor@cultnix.org (vallor)
Newsgroups: comp.os.linux.advocacy
Subject: Then there's PATH_MAX
Date: 9 Dec 2024 06:09:40 GMT
Lines: 37
Message-ID: <lrnft4Fd071U5@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 2GaKYKU6aOOgrCJppvXK1wnmZwS1Qm2wxYX+hgx5x9lVDeWg3Q
Cancel-Lock: sha1:hYtcFpQS8yoR9lsB0k1FR/kMuFw= sha256:KAja7Lm+nen2cfu46G41/H/O6WJMiWRB3TWqEm9s4rI=
X-Face: +McU)#<-H?9lTb(Th!zR`EpVrp<0)1p5CmPu.kOscy8LRp_\u`:tW;dxPo./(fCl
CaKku`)]}.V/"6rISCIDP`
User-Agent: Pan/0.161 (Hmm2; be402cc9; Linux-6.12.3)
View all headers

Try this one, DFS:

#include <stdio.h>
#include <limits.h>

#ifdef __linux__
#include <linux/limits.h>
#endif

int main (void)
{

printf("%d\n",PATH_MAX);

return 0;
}

Here, I get:

_[/nfs/ds/src/vallor/path_max]_(vallor@lm)🐧_
$ make
tcc -g -O2 -std=c90 -Wall -Werror -pedantic query_PATH_MAX.c -o query_PATH_MAX
_[/nfs/ds/src/vallor/path_max]_(vallor@lm)🐧_
$ ./query_PATH_MAX
4096

If you use tcc, I know the answer you'll get on Windows:

$ ./a.out
259

Ouch! "Here's a nickel, kid..."

--
-v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti
OS: Linux 6.12.3 Release: Mint 21.3 Mem: 258G
"When I was a kid, I was an imaginary playmate."

Subject: Re: Then there's PATH_MAX
From: DFS
Newsgroups: comp.os.linux.advocacy
Organization: A noiseless patient Spider
Date: Tue, 10 Dec 2024 03:42 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: guhnoo-basher@linux.advocaca (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Then there's PATH_MAX
Date: Mon, 9 Dec 2024 22:42:48 -0500
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <vj8dbn$q2oj$2@dont-email.me>
References: <lrnft4Fd071U5@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 10 Dec 2024 04:42:48 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ad9f7fc225c7cbb87fb2876532a01aa9";
logging-data="854803"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZCb3XjZwW/tTKikMfixtK"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:bhkX/BIeSBDfWLRUkFQC3ChXF8w=
In-Reply-To: <lrnft4Fd071U5@mid.individual.net>
Content-Language: en-US
View all headers

On 12/9/2024 1:09 AM, vallor wrote:
> Try this one, DFS:
>
> #include <stdio.h>
> #include <limits.h>
>
> #ifdef __linux__
> #include <linux/limits.h>
> #endif
>
> int main (void)
> {
>
> printf("%d\n",PATH_MAX);
>
> return 0;
> }
>
> Here, I get:
>
> _[/nfs/ds/src/vallor/path_max]_(vallor@lm)🐧_
> $ make
> tcc -g -O2 -std=c90 -Wall -Werror -pedantic query_PATH_MAX.c -o query_PATH_MAX
> _[/nfs/ds/src/vallor/path_max]_(vallor@lm)🐧_
> $ ./query_PATH_MAX
> 4096
>
> If you use tcc, I know the answer you'll get on Windows:
>
> $ ./a.out
> 259
>
> Ouch! "Here's a nickel, kid..."

Surely you know NTFS supports file paths up to 32,767 characters?

Fortunately, I NEVER run into 'your app software sux' issues. To
experience those, just boot a GuhNoo hobbyware distro and run thunar or
LibreOffice.

Subject: Re: Then there's PATH_MAX
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.advocacy
Organization: A noiseless patient Spider
Date: Tue, 10 Dec 2024 04:41 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Then there's PATH_MAX
Date: Tue, 10 Dec 2024 04:41:01 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <vj8got$qq2p$2@dont-email.me>
References: <lrnft4Fd071U5@mid.individual.net> <vj8dbn$q2oj$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 10 Dec 2024 05:41:01 +0100 (CET)
Injection-Info: dont-email.me; posting-host="e263dfe969bd23169cefd5851fa1b802";
logging-data="878681"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18HiSr/9b5caIuIkV2sjbby"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:iEgB7l5MxN3zJSvZqzfjyIbStBg=
View all headers

On Mon, 9 Dec 2024 22:42:48 -0500, DFS wrote:

> Surely you know NTFS supports file paths up to 32,767 characters?

HAHAHAHAHA!!!!

<https://stackoverflow.com/questions/14500893/is-the-255-char-limit-for-filenames-on-windows-and-unix-the-whole-path-or-part>

Subject: Re: Then there's PATH_MAX
From: vallor
Newsgroups: comp.os.linux.advocacy
Date: Tue, 10 Dec 2024 10:29 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: vallor@cultnix.org (vallor)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Then there's PATH_MAX
Date: 10 Dec 2024 10:29:24 GMT
Lines: 18
Message-ID: <lrqjg4Ft7poU2@mid.individual.net>
References: <lrnft4Fd071U5@mid.individual.net> <vj8dbn$q2oj$2@dont-email.me>
<vj8got$qq2p$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net x3jXtFuObuG2nGyzDBf/LghcZrdto/kXvaLVr55wOtGinZKWcF
Cancel-Lock: sha1:a1E9Lahm6FKinaVBiaUmlEv+/cQ= sha256:DWSqnj3mRidLcyL7idNRZoKqHtKFiliulBpA3k1UmyA=
X-Face: +McU)#<-H?9lTb(Th!zR`EpVrp<0)1p5CmPu.kOscy8LRp_\u`:tW;dxPo./(fCl
CaKku`)]}.V/"6rISCIDP`
User-Agent: Pan/0.161 (Hmm2; be402cc9; Linux-6.12.4)
View all headers

On Tue, 10 Dec 2024 04:41:01 -0000 (UTC), Lawrence D'Oliveiro
<ldo@nz.invalid> wrote in <vj8got$qq2p$2@dont-email.me>:

> On Mon, 9 Dec 2024 22:42:48 -0500, DFS wrote:
>
>> Surely you know NTFS supports file paths up to 32,767 characters?
>
> HAHAHAHAHA!!!!
>
> <https://stackoverflow.com/questions/14500893/is-the-255-char-limit-for-
filenames-on-windows-and-unix-the-whole-path-or-part>

Interesting how the OS doesn't measure up to the (alleged) filesystem
design.

--
-v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti
OS: Linux 6.12.4 Release: Mint 21.3 Mem: 258G

Subject: Re: Then there's PATH_MAX
From: DFS
Newsgroups: comp.os.linux.advocacy
Organization: A noiseless patient Spider
Date: Tue, 10 Dec 2024 23:58 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: guhnoo-basher@linux.advocaca (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Then there's PATH_MAX
Date: Tue, 10 Dec 2024 18:58:45 -0500
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <vjakjj$16m37$6@dont-email.me>
References: <lrnft4Fd071U5@mid.individual.net> <vj8dbn$q2oj$2@dont-email.me>
<vj8got$qq2p$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 11 Dec 2024 00:58:43 +0100 (CET)
Injection-Info: dont-email.me; posting-host="b38130264c309e619143374ddd01fc84";
logging-data="1267815"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185Z7lgKVG5POjJAOPJvvXi"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:HpDE5vnoMjDleCaNrP3SLu6o/EE=
In-Reply-To: <vj8got$qq2p$2@dont-email.me>
Content-Language: en-US
View all headers

On 12/9/2024 11:41 PM, Lawrence D'Oliveiro wrote:
> On Mon, 9 Dec 2024 22:42:48 -0500, DFS wrote:
>
>> Surely you know NTFS supports file paths up to 32,767 characters?
>
> HAHAHAHAHA!!!!
>
> <https://stackoverflow.com/questions/14500893/is-the-255-char-limit-for-filenames-on-windows-and-unix-the-whole-path-or-part>

Good God.

1

rocksolid light 0.9.8
clearnet tor