Skip to content

Commit

Permalink
Add basic build structure for Unix domain sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
gregory-nutt committed Jan 24, 2015
1 parent d718955 commit 81a3dac
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 1 deletion.
1 change: 1 addition & 0 deletions net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ endmenu # Internet Protocol Selection

source "net/socket/Kconfig"
source "net/pkt/Kconfig"
source "net/local/Kconfig"
source "net/tcp/Kconfig"
source "net/udp/Kconfig"
source "net/icmp/Kconfig"
Expand Down
3 changes: 2 additions & 1 deletion net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ include icmp/Make.defs
include icmpv6/Make.defs
include neighbor/Make.defs
include igmp/Make.defs
include pkt/Make.defs
include local/Make.defs
include tcp/Make.defs
include udp/Make.defs
include pkt/Make.defs
include devif/Make.defs
include route/Make.defs
include utils/Make.defs
Expand Down
1 change: 1 addition & 0 deletions net/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Directory Structure
+- icmp - Internet Control Message Protocol (IPv4)
+- icmpv6 - Internet Control Message Protocol (IPv6)
+- iob - I/O buffering logic
+- local - Unix domain (local) sockets
+- neighbor - Neighbor Discovery Protocol (IPv6)
+- netdev - Socket network device interface
+- pkt - "Raw" packet socket support
Expand Down
19 changes: 19 additions & 0 deletions net/local/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#

menu "Unix Domain Socket Support"
depends on NET && EXPERIMENTAL

config NET_LOCAL
bool "Unix domain (local) sockets"
default n
---help---
Enable or disable Unix domain (aka Local) sockets.

if NET_LOCAL

endif # NET_LOCAL

endmenu # Unix Domain Sockets
47 changes: 47 additions & 0 deletions net/local/Make.defs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
############################################################################
# net/local/Make.defs
#
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name NuttX nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################

# UDP source files

ifeq ($(CONFIG_NET_LOCAL),y)

# NET_CSRCS +=

# Include UDP build support

DEPPATH += --dep-path local
VPATH += :local

endif # CONFIG_NET_LOCAL

0 comments on commit 81a3dac

Please sign in to comment.