summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/rtems/rtems-program.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-28 15:00:00 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-28 15:00:19 +0200
commit8eb888394a435d6772108603a418b09fcdb6c6b4 (patch)
treecd05a94b33c6043c47a2a6be416b3e4b9e8f7dfb /rtemsbsd/rtems/rtems-program.c
parentSplit rtems-bsd-kernel-program.c (diff)
downloadrtems-libbsd-8eb888394a435d6772108603a418b09fcdb6c6b4.tar.bz2
Split rtemsbsd/rtems/rtems-program.c
This improves garbage collection by the linker.
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 =