ncp: rename requester assembly header
Finish the ncpcall.asm/ncpcall.h to ncp.asm/ncp.h rename. Update the Open Watcom build, object names, include directives, header guard, README references and file-level dependency comments to use the shorter ncp naming. The split remains the same: ncp.asm/ncp.h provide the low-level INT 21h and Client32 requester entry points, ncpcall.c contains requester transport helpers, and ncpapi.c contains the ncpXX_YY_* protocol API wrappers. No behavior change.
This commit is contained in:
@@ -95,14 +95,14 @@ if(MARS_NWE_BUILD_DOSUTILS)
|
||||
)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/ncpcall_asm.obj"
|
||||
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/ncp.obj"
|
||||
COMMAND "${CMAKE_COMMAND}" -E env ${OPENWATCOM_ENV}
|
||||
"${OPENWATCOM_WASM}"
|
||||
-q
|
||||
-zq
|
||||
-fo="${CMAKE_CURRENT_BINARY_DIR}/ncpcall_asm.obj"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/ncpcall.asm"
|
||||
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/ncpcall.asm"
|
||||
-fo="${CMAKE_CURRENT_BINARY_DIR}/ncp.obj"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/ncp.asm"
|
||||
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/ncp.asm"
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||
VERBATIM
|
||||
)
|
||||
@@ -135,7 +135,7 @@ if(MARS_NWE_BUILD_DOSUTILS)
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/${src}"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/net.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/ipx.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/ncpcall.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/ncp.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/ncpapi.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/nwcrypt.h"
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||
@@ -156,11 +156,11 @@ if(MARS_NWE_BUILD_DOSUTILS)
|
||||
-fe="${CMAKE_CURRENT_BINARY_DIR}/net.exe"
|
||||
${DOSUTILS_OBJECTS}
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/ipx.obj"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/ncpcall_asm.obj"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/ncp.obj"
|
||||
DEPENDS
|
||||
${DOSUTILS_OBJECTS}
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/ipx.obj"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/ncpcall_asm.obj"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/ncp.obj"
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||
VERBATIM
|
||||
)
|
||||
|
||||
@@ -120,7 +120,7 @@ The modern Client32 path is implemented through a small reusable helper layer:
|
||||
|
||||
- `ncpapi.c`
|
||||
- `ncpapi.h`
|
||||
- Client32 assembly entry points in `ncpcall.asm`
|
||||
- Client32 assembly entry points in `ncp.asm`
|
||||
|
||||
The working sequence is:
|
||||
|
||||
@@ -628,7 +628,7 @@ cmake --build build
|
||||
|
||||
The CMake build:
|
||||
|
||||
- assembles `ipx.asm` and `ncpcall.asm` with `wasm`
|
||||
- assembles `ipx.asm` and `ncp.asm` with `wasm`
|
||||
- compiles each C file to a binary-directory `.obj`
|
||||
- links `net.exe` from those binary-directory objects
|
||||
- keeps `.obj`/`.o` intermediate files out of the source directory
|
||||
@@ -676,7 +676,7 @@ They also install selected copies such as `login.exe`, `map.exe`, and `slist.exe
|
||||
|
||||
## Development notes
|
||||
|
||||
- `ipx.asm` and `ncpcall.asm` are the split 16-bit Open Watcom assembly implementations used by the modern build.
|
||||
- `ipx.asm` and `ncp.asm` are the split 16-bit Open Watcom assembly implementations used by the modern build.
|
||||
- `kern.c` was an experimental C-side test wrapper and is no longer required by the current Client32 FLAG/FLAGDIR path.
|
||||
- `ncpapi.c` and `ncpapi.h` contain reusable Client32 NCP helper functions for DOS tools.
|
||||
- `trustee.c` and `trustee.h` contain shared code for `GRANT`, `REVOKE`, and `REMOVE`.
|
||||
|
||||
2
map.c
2
map.c
@@ -20,7 +20,7 @@
|
||||
|
||||
/*
|
||||
* Purpose: MAP and PATH command implementation for NetWare drive/search-drive mappings.
|
||||
* Depends on: net.h, netcall.c requester helpers, tools.c shared utility routines, ncpcall.asm/doc/kern.asm low-level Net_Call glue.
|
||||
* Depends on: net.h, netcall.c requester helpers, tools.c shared utility routines, ncp.asm/doc/kern.asm low-level Net_Call glue.
|
||||
*/
|
||||
|
||||
#include "net.h"
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
; along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
; Purpose: Open Watcom WASM/MASM-syntax NetWare requester and Client32 transport glue.
|
||||
; Depends on: ncpcall.h declarations, ncpcall.c transport helpers and ncpapi.c API wrappers.
|
||||
; Depends on: ncp.h declarations, ncpcall.c transport helpers and ncpapi.c API wrappers.
|
||||
;
|
||||
|
||||
|
||||
|
||||
; ncpcall.asm
|
||||
; ncp.asm
|
||||
;
|
||||
; Low-level INT 21h Net_Call and Client32 requester entry points used by the
|
||||
; DOS NCP transport helpers. This file is split from the former combined
|
||||
@@ -20,11 +20,11 @@
|
||||
|
||||
/*
|
||||
* Purpose: C declarations for low-level NetWare requester and Client32 transport assembly glue.
|
||||
* Depends on: ncpcall.asm for Open Watcom builds, ncpcall.c transport helpers, and net.h for shared types.
|
||||
* Depends on: ncp.asm for Open Watcom builds, ncpcall.c transport helpers, and net.h for shared types.
|
||||
*/
|
||||
|
||||
#ifndef NCPCALL_H
|
||||
#define NCPCALL_H
|
||||
#ifndef NCP_H
|
||||
#define NCP_H
|
||||
|
||||
#if defined(__WATCOMC__)
|
||||
#define NCP_CALL _Cdecl
|
||||
@@ -44,4 +44,4 @@ extern int NCP_CALL ncp_raw_request(UI connLo, UI connHi,
|
||||
|
||||
#undef NCP_CALL
|
||||
|
||||
#endif /* NCPCALL_H */
|
||||
#endif /* NCP_H */
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
/*
|
||||
* Purpose: Low-level NCP requester and Client32 transport helpers for the NetWare DOS tools.
|
||||
* Depends on: net.h, ncpapi.h, netcall.c requester glue, and ncpcall.asm/doc/kern.asm Net_Call/Client32 request entry points.
|
||||
* Depends on: net.h, ncpapi.h, netcall.c requester glue, and ncp.asm/doc/kern.asm Net_Call/Client32 request entry points.
|
||||
*
|
||||
* The public ncpXX_YY_* protocol wrappers live in ncpapi.c, which is planned
|
||||
* to become ncpapi.c. This file keeps the lower-level requester/transport
|
||||
|
||||
6
net.h
6
net.h
@@ -20,7 +20,7 @@
|
||||
|
||||
/*
|
||||
* Purpose: Shared public header for the DOS utility collection: types, prototypes and common structures.
|
||||
* Depends on: ipx.h, ncpcall.h, all command modules, netcall.c, ncpcall.c, tools.c and ncpapi.c.
|
||||
* Depends on: ipx.h, ncp.h, all command modules, netcall.c, ncpcall.c, tools.c and ncpapi.c.
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
@@ -54,7 +54,7 @@ typedef int (*FUNC_INT)();
|
||||
|
||||
|
||||
#include "ipx.h"
|
||||
#include "ncpcall.h"
|
||||
#include "ncp.h"
|
||||
|
||||
|
||||
#define UI2NET(i) ( ( (i) << 8) | ( ((i)>>8) & 0xFF) )
|
||||
@@ -228,7 +228,7 @@ extern int get_volume_name(uint8 nr, char *name);
|
||||
extern int get_search_drive_vektor(SEARCH_VECTOR_ENTRY *vec);
|
||||
extern int set_search_drive_vektor(SEARCH_VECTOR_ENTRY *vec);
|
||||
|
||||
/********* ncpcall.h ***********/
|
||||
/********* ncp.h ***********/
|
||||
extern int ncp16_02_get_directory_entry(int dirhandle,
|
||||
uint8 *path,
|
||||
int *sub_dir,
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
/*
|
||||
* Purpose: DOS/NetWare requester wrapper layer and environment helpers used by the utilities.
|
||||
* Depends on: net.h, ipx.asm/ncpcall.asm low-level IPX and Net_Call glue, ncpcall.c high-level NCP helpers, tools.c shared utility routines.
|
||||
* Depends on: net.h, ipx.asm/ncp.asm low-level IPX and Net_Call glue, ncpcall.c high-level NCP helpers, tools.c shared utility routines.
|
||||
*/
|
||||
|
||||
#include "net.h"
|
||||
|
||||
Reference in New Issue
Block a user