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 @@ -174,15 +174,15 @@ static bool test3(void)
174174
175175static bool test4 (void )
176176{
177- char a [MAXPATHLEN + 10 ];
177+ char a [OPAL_PATH_MAX + 10 ];
178178 int i ;
179179
180180 if (NULL == path_sep ) {
181181 printf ("test4 cannot be run\n" );
182182 return false;
183183 }
184184
185- for (i = 0 ; i < MAXPATHLEN + 5 ; i ++ ) {
185+ for (i = 0 ; i < OPAL_PATH_MAX + 5 ; i ++ ) {
186186 a [i ] = 'a' ;
187187 }
188188 a [i ] = '\0' ;
You can’t perform that action at this time.
0 commit comments