forked from KolibriOS/kolibrios
a749f672ce
- Added full import console.obj - Added dir.h - Fixed dirent bug - Added dirent example - Fixed localtime bug. git-svn-id: svn://kolibrios.org@8744 a494cfbc-eb01-0410-851d-a64ba20cac60
25 lines
432 B
C
25 lines
432 B
C
#include <sys/ksys.h>
|
|
#include <sys/dir.h>
|
|
#include <stdlib.h>
|
|
|
|
char *getcwd(char *buf, unsigned size){
|
|
if(!buf){
|
|
if((buf = malloc(size))==NULL){
|
|
return NULL;
|
|
}
|
|
}
|
|
_ksys_getcwd(buf, size);
|
|
return(buf);
|
|
}
|
|
|
|
void setcwd(const char* cwd){
|
|
_ksys_setcwd((char*)cwd);
|
|
}
|
|
|
|
int rmdir(const char* dir){
|
|
return _ksys_file_delete(dir);
|
|
}
|
|
|
|
int mkdir(const char* dir){
|
|
return _ksys_mkdir(dir);
|
|
} |