- **status**: accepted --> review
---
** [tickets:#279] Use pathconf() instead of NAME_MAX**
**Status:** review
**Milestone:** 5.0.FC
**Created:** Mon May 20, 2013 10:56 AM UTC by Anders Widell
**Last Updated:** Sun Nov 01, 2015 09:36 PM UTC
**Owner:** Vu Minh Nguyen
According to POSIX.1, neither PATH_MAX nor NAME_MAX have to be defined as
constants (see [Limits on File System
Capacity](http://www.gnu.org/software/libc/manual/html_node/Limits-for-Files.html)).
To be portable, a program should instead use pathconf() to determine the
maximum limits.
LSB defines PATH_MAX but not NAME_MAX (see [Data Definitions for
libc](http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/libc-ddefs.html)).
Therefore, the minimum requirement is that at least the use of the NAME_MAX
constant is removed from the code.
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets