mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 16:59:03 +03:00
a41a0e28c2
Not hooked up to the build yet.
16 lines
256 B
C
16 lines
256 B
C
/*
|
|
* getcwd.c
|
|
*/
|
|
|
|
#include <unistd.h>
|
|
#include <sys/syscall.h>
|
|
|
|
#define __NR___getcwd __NR_getcwd
|
|
static inline _syscall2(int,__getcwd,char *,buf,size_t,size);
|
|
|
|
char *getcwd(char *buf, size_t size)
|
|
{
|
|
return ( __getcwd(buf, size) < 0 ) ? NULL : buf;
|
|
}
|
|
|