Project

General

Profile

Actions

Bug #843

closed

Missing MAXNAMLEN?

Added by wa1ter over 16 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

FreeBSD, NetBSD, linux all define MAXNAMLEN in dirent.h, but not DFly.
Is this an oversight or deliberate?

Actions #1

Updated by joerg over 16 years ago

Deliberate. It doesn't make any sense and PATH_MAX or NAME_MAX should be
used instead. MAXNAMLEN is the historic limitation of FFS, for the
archive.

Joerg

Actions #2

Updated by wa1ter over 16 years ago

Yes, I see now. This is how linux works around it:

  1. ifdef NAME_MAX
  2. define MAXNAMLEN NAME_MAX
  3. else
  4. define MAXNAMLEN 255
  5. endif
  6. endif
Actions #3

Updated by pavalos over 12 years ago

  • Description updated (diff)
  • Status changed from New to Closed
  • Assignee deleted (0)
Actions

Also available in: Atom PDF