Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
20
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
7e0541bb
Commit
7e0541bb
authored
4 years ago
by
Constantin Papizh
Browse files
Options
Downloads
Patches
Plain Diff
Pipeline for macos fixed
parent
175144c9
No related branches found
No related tags found
4 merge requests
!251
Master
,
!250
Master
,
!190
Feature 4453
,
!184
Pipeline for macos fixed
Pipeline
#5029
passed with stage
in 20 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dap-sdk/core/include/dap_common.h
+1
-2
1 addition, 2 deletions
dap-sdk/core/include/dap_common.h
dap-sdk/core/src/dap_common.c
+21
-0
21 additions, 0 deletions
dap-sdk/core/src/dap_common.c
with
22 additions
and
2 deletions
dap-sdk/core/include/dap_common.h
+
1
−
2
View file @
7e0541bb
...
@@ -392,8 +392,7 @@ int timespec_diff(struct timespec *a_start, struct timespec *a_stop, struct time
...
@@ -392,8 +392,7 @@ int timespec_diff(struct timespec *a_start, struct timespec *a_stop, struct time
int
get_select_breaker
(
void
);
int
get_select_breaker
(
void
);
int
send_select_break
(
void
);
int
send_select_break
(
void
);
char
*
exec_with_ret
(
const
char
*
a_cmd
);
int
exec_with_ret
(
char
**
,
const
char
*
);
char
*
exec_with_ret_multistring
(
const
char
*
a_cmd
);
char
*
dap_random_string_create_alloc
(
size_t
a_length
);
char
*
dap_random_string_create_alloc
(
size_t
a_length
);
void
dap_random_string_fill
(
char
*
str
,
size_t
length
);
void
dap_random_string_fill
(
char
*
str
,
size_t
length
);
void
dap_dump_hex
(
const
void
*
data
,
size_t
size
);
void
dap_dump_hex
(
const
void
*
data
,
size_t
size
);
...
...
This diff is collapsed.
Click to expand it.
dap-sdk/core/src/dap_common.c
+
21
−
0
View file @
7e0541bb
...
@@ -519,6 +519,27 @@ int send_select_break( )
...
@@ -519,6 +519,27 @@ int send_select_break( )
return
0
;
return
0
;
}
}
int
exec_with_ret
(
char
**
repl
,
const
char
*
a_cmd
)
{
FILE
*
fp
;
size_t
buf_len
=
0
;
char
buf
[
4096
]
=
{
0
};
fp
=
popen
(
a_cmd
,
"r"
);
if
(
!
fp
)
{
log_it
(
L_ERROR
,
"Cmd execution error: '%s'"
,
strerror
(
errno
));
return
(
255
);
}
memset
(
buf
,
0
,
sizeof
(
buf
));
fgets
(
buf
,
sizeof
(
buf
)
-
1
,
fp
);
buf_len
=
strlen
(
buf
);
if
(
repl
)
{
if
(
buf
[
buf_len
-
1
]
==
'\n'
)
buf
[
buf_len
-
1
]
=
'\0'
;
*
repl
=
strdup
(
buf
);
}
return
pclose
(
fp
);
}
#ifdef ANDROID1
#ifdef ANDROID1
static
u_long
myNextRandom
=
1
;
static
u_long
myNextRandom
=
1
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment