Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Cristian Simarro
darshan
Commits
16217667
Commit
16217667
authored
Dec 16, 2016
by
Cristian Simarro
Browse files
added __programme_full and tidy up declarations
parent
db57199f
Changes
1
Hide whitespace changes
Inline
Side-by-side
darshan-runtime/lib/darshan-core.c
View file @
16217667
...
...
@@ -1024,7 +1024,9 @@ static void darshan_get_exe_and_mounts(struct darshan_core_runtime *core,
char
*
truncate_string
=
"<TRUNCATED>"
;
int
truncate_offset
;
int
space_left
=
DARSHAN_EXE_LEN
;
int
i
;
FILE
*
fh
;
int
i
,
ii
;
char
cmdl
[
DARSHAN_EXE_LEN
];
int
tmp_index
=
0
;
int
skip
=
0
;
...
...
@@ -1065,9 +1067,6 @@ static void darshan_get_exe_and_mounts(struct darshan_core_runtime *core,
{
/* get the name of the executable and the arguments from
/proc/self/cmdline */
FILE
*
fh
;
int
i
,
ii
;
char
cmdl
[
DARSHAN_EXE_LEN
];
cmdl
[
0
]
=
'\0'
;
fh
=
fopen
(
"/proc/self/cmdline"
,
"r"
);
...
...
@@ -1085,7 +1084,7 @@ static void darshan_get_exe_and_mounts(struct darshan_core_runtime *core,
}
fclose
(
fh
);
}
else
{
sprintf
(
cmdl
,
" <unknown args>"
);
sprintf
(
cmdl
,
"
%s
<unknown args>"
,
__progname_full
);
}
strncat
(
core
->
log_exemnt_p
,
cmdl
,
space_left
);
space_left
=
DARSHAN_EXE_LEN
-
strlen
(
core
->
log_exemnt_p
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment