projects
/
project
/
mountd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
support for disk without partition table
[project/mountd.git]
/
sys.c
1
#include <stdio.h>
2
#include <unistd.h>
3
#include <stdarg.h>
4
#include <stdlib.h>
5
6
#include
"include/log.h"
7
#include
"include/sys.h"
8
9
int
system_printf
(
char
*
fmt
, ...)
10
{
11
char
p
[
256
];
12
va_list
ap
;
13
int
r
;
14
va_start
(
ap
,
fmt
);
15
vsnprintf
(
p
,
256
,
fmt
,
ap
);
16
va_end
(
ap
);
17
r
=
system
(
p
);
18
return
r
;
19
}