mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-02 15:28:56 +08:00
Create "/etc" in rtems_bsd_initialize()
This commit is contained in:
parent
7831313a17
commit
8118e8efeb
@ -47,6 +47,7 @@
|
||||
#include <rtems/bsd/sys/lock.h>
|
||||
#include <sys/mutex.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <rtems/bsd/bsd.h>
|
||||
|
||||
@ -84,6 +85,8 @@ rtems_bsd_initialize(void)
|
||||
gettimeofday(&boottime, NULL);
|
||||
timeval2bintime(&boottime, &boottimebin);
|
||||
|
||||
mkdir("/etc", S_IRWXU | S_IRWXG | S_IRWXO);
|
||||
|
||||
sc = rtems_timer_initiate_server(
|
||||
BSD_TASK_PRIORITY_TIMER,
|
||||
BSD_MINIMUM_TASK_STACK_SIZE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user