Skip to content

feat: remove embedded FTPD#43

Merged
mgrossmann merged 1 commit intomainfrom
issue-42-remove-ftpd
Apr 8, 2026
Merged

feat: remove embedded FTPD#43
mgrossmann merged 1 commit intomainfrom
issue-42-remove-ftpd

Conversation

@mgrossmann
Copy link
Copy Markdown
Contributor

Summary

  • Delete all src/ftp*.c files (32 files, ~3,290 LOC) and include/ftpd.h
  • Extract UCHAR/USHRT/UINT/ULONG/U64 typedefs into new include/types.h
  • Replace inline typedefs in include/httpcgi.h with #include "types.h"
  • Replace FTPD *ftpd field in httpd struct with void *unused_50 (offset-stable at 0x50)
  • Remove FTP accept() handling from socket_thread in httpd.c
  • Remove FTPC eye-catcher dispatch branch from worker_thread in httpd.c
  • Remove display_ftpd() and all FTPC display branches from httpdsrv.c and httpcons.c

Test plan

  • make build RC=0 (all modules compile without error)
  • make link RC=0 (all 13 load modules link cleanly)
  • Server starts normally on MVS
  • HTTP requests served correctly (curl against HTTPD)
  • /.dsrv server display page loads without FTP entries

Fixes #42

Delete all src/ftp*.c files (32 files) and include/ftpd.h.
Extract UCHAR/USHRT/UINT/ULONG/U64 typedefs into include/types.h.
Update include/httpcgi.h to use types.h instead of inline typedefs.

In include/httpd.h:
- Remove #include "ftpd.h", add #include "types.h"
- Replace FTPD *ftpd field with void *unused_50 (offset-stable)

In src/httpd.c:
- Remove FTP listener creation and accept() from socket_thread
- Remove FTPC eye-catcher branch from worker_thread
- Remove ftpdterm() call from terminate()

In src/httpdsrv.c:
- Remove display_ftpd() and FTPD table row
- Remove FTPC branch from display_queue_data()

In src/httpcons.c:
- Remove FTPD port display and FTPC branch from d_queue()

Fixes #42
@mgrossmann mgrossmann merged commit 580f8a4 into main Apr 8, 2026
1 check failed
@mgrossmann mgrossmann deleted the issue-42-remove-ftpd branch April 8, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[HTTPD 4.0.0] Remove embedded FTPD

1 participant