File tree 3 files changed +5
-5
lines changed 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)
94
94
static inline void mca_fs_base_get_real_filename (const char * filename , char * * rfilename )
95
95
{
96
96
int namelen ;
97
- char linkbuf [PATH_MAX + 1 ];
97
+ char linkbuf [OPAL_PATH_MAX + 1 ];
98
98
99
- namelen = readlink (filename , linkbuf , PATH_MAX );
99
+ namelen = readlink (filename , linkbuf , OPAL_PATH_MAX );
100
100
if (namelen == -1 ) {
101
101
/* something strange has happened between the time that
102
102
* 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)
43
43
uint64_t offset ;
44
44
char dev [8 ];
45
45
uint64_t inode ;
46
- char pathname [MAXPATHLEN ];
46
+ char pathname [OPAL_PATH_MAX ];
47
47
FILE * fp ;
48
48
char line [1024 ];
49
49
map_segment_t * s ;
Original file line number Diff line number Diff line change @@ -182,15 +182,15 @@ static bool test3(void)
182
182
183
183
static bool test4 (void )
184
184
{
185
- char a [MAXPATHLEN + 10 ];
185
+ char a [OPAL_PATH_MAX + 10 ];
186
186
int i ;
187
187
188
188
if (NULL == path_sep ) {
189
189
printf ("test4 cannot be run\n" );
190
190
return (false);
191
191
}
192
192
193
- for (i = 0 ; i < MAXPATHLEN + 5 ; i ++ ) {
193
+ for (i = 0 ; i < OPAL_PATH_MAX + 5 ; i ++ ) {
194
194
a [i ] = 'a' ;
195
195
}
196
196
a [i ] = '\0' ;
You can’t perform that action at this time.
0 commit comments