diff options
| author | Eli Zaretskii | 2011-02-27 21:48:31 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2011-02-27 21:48:31 +0200 |
| commit | 0f7bb05d28a57975fca586d7b3aa5e72edf56897 (patch) | |
| tree | 808ec29fd466d37a0f90b3818a39567a5cd85249 /nt | |
| parent | d05e7e6721bc02b910965293752198e9c73e2208 (diff) | |
| download | emacs-0f7bb05d28a57975fca586d7b3aa5e72edf56897.tar.gz emacs-0f7bb05d28a57975fca586d7b3aa5e72edf56897.zip | |
Implement stubs of `readlink' and `symlink' for MS-Windows.
src/w32.c (symlink, readlink): New stub functions.
nt/inc/unistd.h (readlink, symlink): Declare prototypes.
Diffstat (limited to 'nt')
| -rw-r--r-- | nt/ChangeLog | 4 | ||||
| -rw-r--r-- | nt/inc/unistd.h | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index bfaba610bf2..e55fc52a487 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-02-27 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * inc/unistd.h (readlink, symlink): Declare prototypes. | ||
| 4 | |||
| 1 | 2011-02-26 Eli Zaretskii <eliz@gnu.org> | 5 | 2011-02-26 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * config.nt (nlink_t): Define. | 7 | * config.nt (nlink_t): Define. |
diff --git a/nt/inc/unistd.h b/nt/inc/unistd.h index 7e77f95da4c..fb1f1c4b3bf 100644 --- a/nt/inc/unistd.h +++ b/nt/inc/unistd.h | |||
| @@ -1,2 +1,10 @@ | |||
| 1 | /* Fake unistd.h: config.h already provides most of the relevant things. */ | 1 | /* Fake unistd.h: config.h already provides most of the relevant things. */ |
| 2 | 2 | ||
| 3 | #ifndef _UNISTD_H | ||
| 4 | #define _UNISTD_H | ||
| 5 | |||
| 6 | extern ssize_t readlink (const char *, char *, size_t); | ||
| 7 | extern int symlink (char const *, char const *); | ||
| 8 | |||
| 9 | #endif /* _UNISTD_H */ | ||
| 10 | |||