1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* win32/win32.c (link): raise NotImplementedError on Win9X.

contributed by Tietew. [ruby-dev:22713]

* win32/win32.c, win32/win32.h (link): add const.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2004-02-12 04:35:30 +00:00
parent 6531904a1c
commit eca7c7bdf0
3 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,10 @@
Thu Feb 12 13:32:49 2004 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (link): raise NotImplementedError on Win9X.
contributed by Tietew. [ruby-dev:22713]
* win32/win32.c, win32/win32.h (link): add const.
Thu Feb 12 09:56:19 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/tk/lib/tk.rb (TkComm::tk_split_list): suppress a warning.

View file

@ -2593,7 +2593,7 @@ kill(int pid, int sig)
}
int
link(char *from, char *to)
link(const char *from, const char *to)
{
static BOOL (WINAPI *pCreateHardLink)(LPCTSTR, LPCTSTR, LPSECURITY_ATTRIBUTES) = NULL;
static int myerrno = 0;
@ -2605,9 +2605,8 @@ link(char *from, char *to)
if (hKernel) {
pCreateHardLink = (BOOL (WINAPI *)(LPCTSTR, LPCTSTR, LPSECURITY_ATTRIBUTES))GetProcAddress(hKernel, "CreateHardLinkA");
if (!pCreateHardLink) {
myerrno = map_errno(GetLastError());
rb_notimplement();
}
CloseHandle(hKernel);
}
else {
myerrno = map_errno(GetLastError());

View file

@ -172,7 +172,7 @@ extern int rb_w32_vsnprintf(char *, size_t, const char *, va_list);
extern int rb_w32_snprintf(char *, size_t, const char *, ...);
extern int chown(const char *, int, int);
extern int link(char *, char *);
extern int link(const char *, const char *);
extern int gettimeofday(struct timeval *, struct timezone *);
extern pid_t waitpid (pid_t, int *, int);
extern int do_spawn(int, char *);