mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:13:38 +03:00
netware: remove leftover traces
Commit 3b16575ae9 removed support for
building on Novell Netware, but a few leftover traces remained. This
removes the last bits.
Closes: #9966
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
This commit is contained in:
parent
e007ace30d
commit
2d9fee4504
22 changed files with 1 additions and 209 deletions
|
|
@ -79,7 +79,6 @@ CURL_CFILES = \
|
|||
tool_msgs.c \
|
||||
tool_operate.c \
|
||||
tool_operhlp.c \
|
||||
tool_panykey.c \
|
||||
tool_paramhlp.c \
|
||||
tool_parsecfg.c \
|
||||
tool_progress.c \
|
||||
|
|
@ -120,7 +119,6 @@ CURL_HFILES = \
|
|||
tool_msgs.h \
|
||||
tool_operate.h \
|
||||
tool_operhlp.h \
|
||||
tool_panykey.h \
|
||||
tool_paramhlp.h \
|
||||
tool_parsecfg.h \
|
||||
tool_progress.h \
|
||||
|
|
|
|||
|
|
@ -37,12 +37,6 @@
|
|||
|
||||
#include "memdebug.h" /* keep this as LAST include */
|
||||
|
||||
#ifdef NETWARE
|
||||
# ifndef __NOVELL_LIBC__
|
||||
# define mkdir mkdir_510
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(WIN32) || (defined(MSDOS) && !defined(__DJGPP__))
|
||||
# define mkdir(x,y) (mkdir)((x))
|
||||
# ifndef F_OK
|
||||
|
|
|
|||
|
|
@ -50,14 +50,6 @@
|
|||
# include <conio.h>
|
||||
#endif
|
||||
|
||||
#ifdef NETWARE
|
||||
# ifdef __NOVELL_LIBC__
|
||||
# include <screen.h>
|
||||
# else
|
||||
# include <nwconio.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
|
@ -132,45 +124,6 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
|
|||
#define DONE
|
||||
#endif /* WIN32 */
|
||||
|
||||
#ifdef NETWARE
|
||||
/* NetWare implementation */
|
||||
#ifdef __NOVELL_LIBC__
|
||||
char *getpass_r(const char *prompt, char *buffer, size_t buflen)
|
||||
{
|
||||
return getpassword(prompt, buffer, buflen);
|
||||
}
|
||||
#else
|
||||
char *getpass_r(const char *prompt, char *buffer, size_t buflen)
|
||||
{
|
||||
size_t i = 0;
|
||||
|
||||
printf("%s", prompt);
|
||||
do {
|
||||
buffer[i++] = getch();
|
||||
if(buffer[i-1] == '\b') {
|
||||
/* remove this letter and if this is not the first key,
|
||||
remove the previous one as well */
|
||||
if(i > 1) {
|
||||
printf("\b \b");
|
||||
i = i - 2;
|
||||
}
|
||||
else {
|
||||
RingTheBell();
|
||||
i = i - 1;
|
||||
}
|
||||
}
|
||||
else if(buffer[i-1] != 13)
|
||||
putchar('*');
|
||||
|
||||
} while((buffer[i-1] != 13) && (i < buflen));
|
||||
buffer[i-1] = '\0';
|
||||
printf("\r\n");
|
||||
return buffer;
|
||||
}
|
||||
#endif /* __NOVELL_LIBC__ */
|
||||
#define DONE
|
||||
#endif /* NETWARE */
|
||||
|
||||
#ifndef DONE /* not previously provided */
|
||||
|
||||
#ifdef HAVE_TERMIOS_H
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@
|
|||
/* use our own printf() functions */
|
||||
#include "curlx.h"
|
||||
|
||||
#include "tool_panykey.h"
|
||||
#include "tool_help.h"
|
||||
#include "tool_libinfo.h"
|
||||
#include "tool_util.h"
|
||||
|
|
|
|||
|
|
@ -50,7 +50,6 @@
|
|||
#include "tool_doswin.h"
|
||||
#include "tool_msgs.h"
|
||||
#include "tool_operate.h"
|
||||
#include "tool_panykey.h"
|
||||
#include "tool_vms.h"
|
||||
#include "tool_main.h"
|
||||
#include "tool_libinfo.h"
|
||||
|
|
@ -292,11 +291,6 @@ int main(int argc, char *argv[])
|
|||
fflush(NULL);
|
||||
#endif
|
||||
|
||||
#ifdef __NOVELL_LIBC__
|
||||
if(!getenv("_IN_NETWARE_BASH_"))
|
||||
tool_pressanykey();
|
||||
#endif
|
||||
|
||||
#ifdef __VMS
|
||||
vms_special_exit(result, vms_show);
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -1,47 +0,0 @@
|
|||
/***************************************************************************
|
||||
* _ _ ____ _
|
||||
* Project ___| | | | _ \| |
|
||||
* / __| | | | |_) | |
|
||||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
* are also available at https://curl.se/docs/copyright.html.
|
||||
*
|
||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||
* copies of the Software, and permit persons to whom the Software is
|
||||
* furnished to do so, under the terms of the COPYING file.
|
||||
*
|
||||
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||
* KIND, either express or implied.
|
||||
*
|
||||
* SPDX-License-Identifier: curl
|
||||
*
|
||||
***************************************************************************/
|
||||
#include "tool_setup.h"
|
||||
|
||||
#if defined(NETWARE)
|
||||
|
||||
#ifdef NETWARE
|
||||
# ifdef __NOVELL_LIBC__
|
||||
# include <screen.h>
|
||||
# else
|
||||
# include <nwconio.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include "tool_panykey.h"
|
||||
|
||||
#include "memdebug.h" /* keep this as LAST include */
|
||||
|
||||
void tool_pressanykey(void)
|
||||
{
|
||||
#if defined(NETWARE)
|
||||
pressanykey();
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* NETWARE */
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
#ifndef HEADER_CURL_TOOL_PANYKEY_H
|
||||
#define HEADER_CURL_TOOL_PANYKEY_H
|
||||
/***************************************************************************
|
||||
* _ _ ____ _
|
||||
* Project ___| | | | _ \| |
|
||||
* / __| | | | |_) | |
|
||||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
* are also available at https://curl.se/docs/copyright.html.
|
||||
*
|
||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||
* copies of the Software, and permit persons to whom the Software is
|
||||
* furnished to do so, under the terms of the COPYING file.
|
||||
*
|
||||
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||
* KIND, either express or implied.
|
||||
*
|
||||
* SPDX-License-Identifier: curl
|
||||
*
|
||||
***************************************************************************/
|
||||
#include "tool_setup.h"
|
||||
|
||||
#if defined(NETWARE)
|
||||
void tool_pressanykey(void);
|
||||
#else
|
||||
#define tool_pressanykey() Curl_nop_stmt
|
||||
#endif
|
||||
|
||||
#endif /* HEADER_CURL_TOOL_PANYKEY_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue