Skip to content

Commit

Permalink
Fix missing #includes in system/core.
Browse files Browse the repository at this point in the history
Change-Id: I4736e8c4f7bb8bb03640d26d58243efaa67dc75c
  • Loading branch information
enh-google committed Dec 29, 2014
1 parent 2978ad4 commit 0badbd6
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 8 deletions.
1 change: 1 addition & 0 deletions fastbootd/commands/partitions.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
Expand Down
1 change: 1 addition & 0 deletions fastbootd/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* SUCH DAMAGE.
*/

#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
Expand Down
1 change: 1 addition & 0 deletions fastbootd/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

#include <errno.h>
#include <pthread.h>
#include <stddef.h>
#include <stdio.h>
Expand Down
1 change: 1 addition & 0 deletions fastbootd/usb_linux_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdio.h>
Expand Down
1 change: 1 addition & 0 deletions fastbootd/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
Expand Down
1 change: 1 addition & 0 deletions libmemtrack/memtrack.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <log/log.h>

#include <errno.h>
#include <hardware/memtrack.h>

#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
Expand Down
1 change: 1 addition & 0 deletions libprocessgroup/processgroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <assert.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <stdbool.h>
Expand Down
1 change: 1 addition & 0 deletions toolbox/getevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <sys/poll.h>
#include <linux/input.h>
#include <errno.h>
#include <unistd.h>

#include "getevent.h"

Expand Down
1 change: 1 addition & 0 deletions toolbox/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <errno.h>
#include <pthread.h>
#include <sys/ioctl.h>
#include <unistd.h>

int ioctl_main(int argc, char *argv[])
{
Expand Down
12 changes: 5 additions & 7 deletions toolbox/ps.c
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <dirent.h>
#include <fcntl.h>

#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>

#include <pwd.h>
#include <unistd.h>

#include <cutils/sched_policy.h>

Expand Down
1 change: 1 addition & 0 deletions toolbox/r.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <unistd.h>

#if __LP64__
#define strtoptr strtoull
Expand Down
1 change: 1 addition & 0 deletions toolbox/sendevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <unistd.h>

int sendevent_main(int argc, char *argv[])
{
Expand Down
1 change: 1 addition & 0 deletions toolbox/smd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>

int smd_main(int argc, char **argv)
{
Expand Down
1 change: 1 addition & 0 deletions toolbox/touch.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <stdlib.h>
#include <fcntl.h>
#include <time.h>
#include <unistd.h>

static void usage(void)
{
Expand Down
2 changes: 1 addition & 1 deletion toolbox/uptime.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <fcntl.h>
#include <stdio.h>
#include <time.h>

#include <unistd.h>

static void format_time(int time, char* buffer) {
int seconds, minutes, hours, days;
Expand Down

0 comments on commit 0badbd6

Please sign in to comment.