Skip to content

Commit

Permalink
merge ruxos dev
Browse files Browse the repository at this point in the history
  • Loading branch information
lhw2002426 committed Dec 19, 2023
2 parents 5fdc8c6 + 9815613 commit 98011b9
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ulib/ruxlibc/c/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
<<<<<<< HEAD
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A
* PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
Expand All @@ -24,4 +25,18 @@ int ioctl(int fd, int request, ...)
va_end(ap);

return rux_ioctl(fd, request, arg);
=======
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/

#include <stdio.h>
#include <sys/statfs.h>

// TODO
int statfs(const char *path, struct statfs *buf)
{
unimplemented();
return 0;
>>>>>>> remote/dev
}
27 changes: 27 additions & 0 deletions ulib/ruxlibc/c/pwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,26 @@ int getpwnam_r(const char *name, struct passwd *pw, char *buf, size_t size, stru
unimplemented();
return 0;
}
// TODO
int sem_destroy(sem_t *sem)
{
unimplemented();
return 0;
}

int getpwuid_r(uid_t uid, struct passwd *pw, char *buf, size_t size, struct passwd **res)
{
unimplemented();
return 0;
}

// TODO
int sem_init(sem_t *sem, int pshared, unsigned int value)
{
unimplemented();
return 0;
}

struct passwd *getpwnam(const char *name)
{
struct passwd *pwd;
Expand All @@ -49,3 +62,17 @@ struct passwd *getpwnam(const char *name)

return pwd;
}

// TODO
int sem_post(sem_t *sem)
{
unimplemented();
return 0;
}

// TODO
int sem_wait(sem_t *sem)
{
unimplemented();
return 0;
}
5 changes: 5 additions & 0 deletions ulib/ruxlibc/c/resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ int setpriority(int which, id_t who, int prio)
unimplemented();
return 0;
}

ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count){
unimplemented();
return 0;
}

0 comments on commit 98011b9

Please sign in to comment.