summaryrefslogtreecommitdiff
path: root/rtemsbsd/rtems/rtems-program.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtemsbsd/rtems/rtems-program.c')
-rw-r--r--rtemsbsd/rtems/rtems-program.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/rtemsbsd/rtems/rtems-program.c b/rtemsbsd/rtems/rtems-program.c
index 69a8961a..45d5450d 100644
--- a/rtemsbsd/rtems/rtems-program.c
+++ b/rtemsbsd/rtems/rtems-program.c
@@ -38,7 +38,6 @@
*/
#include <sys/types.h>
-#include <sys/socket.h>
#include <assert.h>
#include <errno.h>
@@ -50,7 +49,6 @@
#include <unistd.h>
#define RTEMS_BSD_PROGRAM_NO_OPEN_WRAP
-#define RTEMS_BSD_PROGRAM_NO_SOCKET_WRAP
#define RTEMS_BSD_PROGRAM_NO_CLOSE_WRAP
#define RTEMS_BSD_PROGRAM_NO_FOPEN_WRAP
#define RTEMS_BSD_PROGRAM_NO_FCLOSE_WRAP
@@ -416,37 +414,6 @@ rtems_bsd_program_open(const char *path, int oflag, ...)
}
int
-rtems_bsd_program_socket(int domain, int type, int protocol)
-{
- struct rtems_bsd_program_control *prog_ctrl =
- rtems_bsd_program_get_control_or_null();
- int fd = -1;
-
- if (prog_ctrl != NULL) {
- struct program_fd_item *item =
- malloc(sizeof(*item));
-
- if (item != NULL) {
- /* FIXME: Why is there an implicit declaration warning?
- */
- fd = socket(domain, type, protocol);
-
- if (fd != -1) {
- item->fd = fd;
- LIST_INSERT_HEAD(&(prog_ctrl->open_fd),
- item, entries);
- } else {
- free(item);
- }
- } else {
- errno = ENOMEM;
- }
- }
-
- return fd;
-}
-
-int
rtems_bsd_program_close(int fd)
{
struct rtems_bsd_program_control *prog_ctrl =