File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,9 @@ static inline bool mca_fs_base_is_link (const char *filename)
9494static inline void mca_fs_base_get_real_filename (const char * filename , char * * rfilename )
9595{
9696 int namelen ;
97- char linkbuf [PATH_MAX + 1 ];
97+ char linkbuf [OPAL_PATH_MAX + 1 ];
9898
99- namelen = readlink (filename , linkbuf , PATH_MAX );
99+ namelen = readlink (filename , linkbuf , OPAL_PATH_MAX );
100100 if (namelen == -1 ) {
101101 /* something strange has happened between the time that
102102 * we determined that this was a link and the time that
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ int mca_memheap_base_static_init(mca_memheap_map_t *map)
4343 uint64_t offset ;
4444 char dev [8 ];
4545 uint64_t inode ;
46- char pathname [MAXPATHLEN ];
46+ char pathname [OPAL_PATH_MAX ];
4747 FILE * fp ;
4848 char line [1024 ];
4949 map_segment_t * s ;
Original file line number Diff line number Diff line change @@ -182,15 +182,15 @@ static bool test3(void)
182182
183183static bool test4 (void )
184184{
185- char a [MAXPATHLEN + 10 ];
185+ char a [OPAL_PATH_MAX + 10 ];
186186 int i ;
187187
188188 if (NULL == path_sep ) {
189189 printf ("test4 cannot be run\n" );
190190 return (false);
191191 }
192192
193- for (i = 0 ; i < MAXPATHLEN + 5 ; i ++ ) {
193+ for (i = 0 ; i < OPAL_PATH_MAX + 5 ; i ++ ) {
194194 a [i ] = 'a' ;
195195 }
196196 a [i ] = '\0' ;
You can’t perform that action at this time.
0 commit comments