Re: [PATCH] libutil: find: Define PATH_MAX for GNU/Hurd systems.

Manolis Ragkousis <[email protected]>
Newsgroups gmane.comp.gnu.global.bugs
Message-ID <[email protected]>
Hello,

On 06/29/16 02:28, Shigio YAMAGUCHI wrote:
> I change my opinion. I'd like to leave this problem for porters.
> We cannot say a certain thing about platforms which don't have PATH_MAX.
> Those who want to port GLOBAL to such platforms should set PATH_MAX to
> an appropriate value.
> I would like to add code as follows:
> 
> #ifndef PATH_MAX
> Since this platform does not have PATH_MAX, you should define it
> using an appropriate value for the platform.
> /* #define PATH_MAX     1024 */
> #endif
> 
> What do you think?
> 

I see your point and I am okay with this approach.

Thank you,
Manolis

_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global
global-path-max.patch (text/x-patch, 455 B)
diff --git a/libutil/find.h b/libutil/find.h
index 45e3603..519a1ba 100644
--- a/libutil/find.h
+++ b/libutil/find.h
@@ -21,6 +21,12 @@
 #ifndef _FIND_H_
 #define _FIND_H_
 
+#ifndef PATH_MAX
+/* Since this platform does not have PATH_MAX, you should define it
+   using an appropriate value for the platform. */
+/* #define PATH_MAX     1024 */
+#endif
+
 void set_accept_dotfiles(void);
 void set_skip_unreadable(void);
 int skipthisfile(const char *);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.