Annotation of /trunk/mkinitrd-magellan/klibc/usr/klibc/getcwd.c
Parent Directory | Revision Log
Revision 532 -
(hide annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 270 byte(s)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 270 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
1 | niro | 532 | /* |
2 | * getcwd.c | ||
3 | * | ||
4 | * The system call behaves differently than the library function. | ||
5 | */ | ||
6 | |||
7 | #include <unistd.h> | ||
8 | #include <sys/syscall.h> | ||
9 | |||
10 | extern int __getcwd(char *buf, size_t size); | ||
11 | |||
12 | char *getcwd(char *buf, size_t size) | ||
13 | { | ||
14 | return (__getcwd(buf, size) < 0) ? NULL : buf; | ||
15 | } |