From 3325d73888df5162798deeeb8f690f03694a5736 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 30 Mar 2011 21:58:17 +0000 Subject: [PATCH] Move more files into subdirectories under lib/ git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3442 42af7a65-404d-4744-a932-0658087f49c3 --- lib/Makefile | 28 ++++++++------------- lib/lib_basename.c | 2 +- lib/lib_crc32.c | 2 +- lib/lib_dbg.c | 2 +- lib/lib_dirname.c | 2 +- lib/lib_dumpbuffer.c | 2 +- lib/lib_filesem.c | 2 +- lib/lib_libdtoa.c | 2 +- lib/lib_sem.c | 2 +- lib/lib_streamsem.c | 2 +- lib/math/Make.defs | 37 +++++++++++++++++++++++++++ lib/{ => math}/lib_b16cos.c | 4 +-- lib/{ => math}/lib_b16sin.c | 4 +-- lib/{ => math}/lib_fixedmath.c | 4 +-- lib/{ => math}/lib_rint.c | 4 +-- lib/net/Make.defs | 36 ++++++++++++++++++++++++++ lib/{ => net}/lib_etherntoa.c | 4 +-- lib/{ => net}/lib_htonl.c | 4 +-- lib/{ => net}/lib_htons.c | 4 +-- lib/{ => net}/lib_inetntoa.c | 4 +-- lib/unistd/Make.defs | 42 +++++++++++++++++++++++++++++++ lib/{ => unistd}/lib_chdir.c | 4 +-- lib/{ => unistd}/lib_getcwd.c | 4 +-- lib/{ => unistd}/lib_getopt.c | 2 +- lib/{ => unistd}/lib_getoptargp.c | 4 +-- lib/{ => unistd}/lib_getoptindp.c | 4 +-- lib/{ => unistd}/lib_getoptoptp.c | 4 +-- 27 files changed, 162 insertions(+), 53 deletions(-) create mode 100644 lib/math/Make.defs rename lib/{ => math}/lib_b16cos.c (96%) rename lib/{ => math}/lib_b16sin.c (97%) rename lib/{ => math}/lib_fixedmath.c (98%) rename lib/{ => math}/lib_rint.c (98%) create mode 100644 lib/net/Make.defs rename lib/{ => net}/lib_etherntoa.c (96%) rename lib/{ => net}/lib_htonl.c (96%) rename lib/{ => net}/lib_htons.c (96%) rename lib/{ => net}/lib_inetntoa.c (96%) create mode 100644 lib/unistd/Make.defs rename lib/{ => unistd}/lib_chdir.c (98%) rename lib/{ => unistd}/lib_getcwd.c (98%) rename lib/{ => unistd}/lib_getopt.c (99%) rename lib/{ => unistd}/lib_getoptargp.c (96%) rename lib/{ => unistd}/lib_getoptindp.c (96%) rename lib/{ => unistd}/lib_getoptoptp.c (96%) diff --git a/lib/Makefile b/lib/Makefile index 94dfe888c1..e33e9dddeb 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -36,7 +36,10 @@ -include $(TOPDIR)/Make.defs include stdio/Make.defs include stdlib/Make.defs +include unistd/Make.defs include string/Make.defs +include math/Make.defs +include net/Make.defs include time/Make.defs include queue/Make.defs @@ -48,19 +51,6 @@ ifneq ($(CONFIG_NFILE_STREAMS),0) MISC_SRCS += lib_streamsem.c endif -CTYPE_SRCS = - -MATH_SRCS = lib_rint.c lib_fixedmath.c lib_b16sin.c lib_b16cos.c - -UNISTD_SRCS = lib_getopt.c lib_getoptargp.c lib_getoptindp.c lib_getoptoptp.c -ifneq ($(CONFIG_NFILE_DESCRIPTORS),0) -ifneq ($(CONFIG_DISABLE_ENVIRON),y) -UNISTD_SRCS += lib_chdir.c lib_getcwd.c -endif -endif - -NET_SRCS = lib_htons.c lib_htonl.c lib_inetntoa.c lib_etherntoa.c - LIBGEN_SRCS = lib_basename.c lib_dirname.c REGEX_SRCS = lib_match.c @@ -69,8 +59,8 @@ CRC_SRCS = lib_crc32.c DBG_SRCS = lib_dbg.c lib_dumpbuffer.c -CSRCS = $(MISC_SRCS) $(CTYPE_SRCS) $(STDIO_SRCS) $(STDLIB_SRCS) $(STRING_SRCS) \ - $(TIME_SRCS) $(MATH_SRCS) $(UNISTD_SRCS) $(NET_SRCS) $(LIBGEN_SRCS) \ +CSRCS = $(MISC_SRCS) $(CTYPE_SRCS) $(STDIO_SRCS) $(STDLIB_SRCS) $(UNISTD_SRCS) \ + $(STRING_SRCS) $(MATH_SRCS) $(NET_SRCS) $(TIME_SRCS) $(LIBGEN_SRCS) \ $(REGEX_SRCS) $(CRC_SRCS) $(QUEUE_SRCS) $(DBG_SRCS) COBJS = $(CSRCS:.c=$(OBJEXT)) @@ -80,10 +70,13 @@ OBJS = $(AOBJS) $(COBJS) ROOTDEPPATH = --dep-path . STDIODEPPATH = --dep-path stdio STDLIBDEPPATH = --dep-path stdlib +UNISTDDEPPATH = --dep-path unistd STRINGDEPPATH = --dep-path string +MATHDEPPATH = --dep-path math +NETDEPPATH = --dep-path net TIMEDEPPATH = --dep-path time QUEUEDEPPATH = --dep-path queue -VPATH = stdio:stdlib:string:time:queue +VPATH = stdio:stdlib:unistd:string:math:net:time:queue BIN = liblib$(LIBEXT) @@ -102,7 +95,8 @@ $(BIN): $(OBJS) .depend: Makefile $(SRCS) @$(MKDEP) $(ROOTDEPPATH) $(STDIODEPPATH) $(STDLIBDEPPATH) \ - $(STRINGDEPPATH) $(TIMEDEPPATH) $(QUEUEDEPPATH) \ + $(UNISTDDEPPATH) $(STRINGDEPPATH) $(MATHDEPPATH) $(NETDEPPATH) \ + $(TIMEDEPPATH) $(QUEUEDEPPATH) \ $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep @touch $@ diff --git a/lib/lib_basename.c b/lib/lib_basename.c index 6464b1770b..5bb7118291 100644 --- a/lib/lib_basename.c +++ b/lib/lib_basename.c @@ -1,5 +1,5 @@ /**************************************************************************** - * lib/lib_basename.c + * lib/unistd/lib_basename.c * * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/lib/lib_crc32.c b/lib/lib_crc32.c index e819145d57..77c34558d8 100755 --- a/lib/lib_crc32.c +++ b/lib/lib_crc32.c @@ -1,5 +1,5 @@ /************************************************************************************************ - * lib/lib_crc32.c + * lib/unistd/lib_crc32.c * * This file is a part of NuttX: * diff --git a/lib/lib_dbg.c b/lib/lib_dbg.c index 890928cc26..43feea8b1c 100644 --- a/lib/lib_dbg.c +++ b/lib/lib_dbg.c @@ -1,5 +1,5 @@ /**************************************************************************** - * lib/lib_dbg.c + * lib/unistd/lib_dbg.c * * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/lib/lib_dirname.c b/lib/lib_dirname.c index c80bc80a3f..7ed6c04c6e 100644 --- a/lib/lib_dirname.c +++ b/lib/lib_dirname.c @@ -1,5 +1,5 @@ /**************************************************************************** - * lib/lib_dirname.c + * lib/unistd/lib_dirname.c * * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/lib/lib_dumpbuffer.c b/lib/lib_dumpbuffer.c index 7444a5ced7..f3e1b5b2bf 100644 --- a/lib/lib_dumpbuffer.c +++ b/lib/lib_dumpbuffer.c @@ -1,5 +1,5 @@ /**************************************************************************** - * lib/lib_dumpbuffer.c + * lib/unistd/lib_dumpbuffer.c * * Copyright (C) 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/lib/lib_filesem.c b/lib/lib_filesem.c index cea6092dc6..6d06b613cc 100644 --- a/lib/lib_filesem.c +++ b/lib/lib_filesem.c @@ -1,5 +1,5 @@ /************************************************************************ - * lib/lib_filesem.c + * lib/unistd/lib_filesem.c * * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/lib/lib_libdtoa.c b/lib/lib_libdtoa.c index 1f74247c27..3bfe70aeaf 100755 --- a/lib/lib_libdtoa.c +++ b/lib/lib_libdtoa.c @@ -1,5 +1,5 @@ /**************************************************************************** - * lib/lib_libdtoa.c + * lib/unistd/lib_libdtoa.c * * This file was ported to NuttX by Yolande Cates. * diff --git a/lib/lib_sem.c b/lib/lib_sem.c index af38f32932..4884950e9b 100644 --- a/lib/lib_sem.c +++ b/lib/lib_sem.c @@ -1,5 +1,5 @@ /************************************************************ - * lib/lib_sem.c + * lib/unistd/lib_sem.c * * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/lib/lib_streamsem.c b/lib/lib_streamsem.c index 5560778cf0..81da6dcc89 100644 --- a/lib/lib_streamsem.c +++ b/lib/lib_streamsem.c @@ -1,5 +1,5 @@ /************************************************************************ - * lib/ib_streamsem.c + * lib/unistd/lib_streamsem.c * * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/lib/math/Make.defs b/lib/math/Make.defs new file mode 100644 index 0000000000..0c3414b98f --- /dev/null +++ b/lib/math/Make.defs @@ -0,0 +1,37 @@ +############################################################################ +# lib/math/Make.defs +# +# Copyright (C) 2011 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt +# +# 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. +# +############################################################################ + +MATH_SRCS = lib_rint.c lib_fixedmath.c lib_b16sin.c lib_b16cos.c + diff --git a/lib/lib_b16cos.c b/lib/math/lib_b16cos.c similarity index 96% rename from lib/lib_b16cos.c rename to lib/math/lib_b16cos.c index 93f5ee2f69..69cc610425 100644 --- a/lib/lib_b16cos.c +++ b/lib/math/lib_b16cos.c @@ -1,7 +1,7 @@ /**************************************************************************** - * lib/lib_b16cos.c + * lib/math/lib_b16cos.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without diff --git a/lib/lib_b16sin.c b/lib/math/lib_b16sin.c similarity index 97% rename from lib/lib_b16sin.c rename to lib/math/lib_b16sin.c index 7e2bcac56f..fc4b5e5663 100644 --- a/lib/lib_b16sin.c +++ b/lib/math/lib_b16sin.c @@ -1,7 +1,7 @@ /**************************************************************************** - * lib/lib_b16sin.c + * lib/math/lib_b16sin.c * - * Copyright (C) 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2008, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without diff --git a/lib/lib_fixedmath.c b/lib/math/lib_fixedmath.c similarity index 98% rename from lib/lib_fixedmath.c rename to lib/math/lib_fixedmath.c index d1717d945a..b20158dc85 100644 --- a/lib/lib_fixedmath.c +++ b/lib/math/lib_fixedmath.c @@ -1,7 +1,7 @@ /**************************************************************************** - * lib/lib_fixedmath.c + * lib/math/lib_fixedmath.c * - * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without diff --git a/lib/lib_rint.c b/lib/math/lib_rint.c similarity index 98% rename from lib/lib_rint.c rename to lib/math/lib_rint.c index 28eb7fc44d..b122870b81 100644 --- a/lib/lib_rint.c +++ b/lib/math/lib_rint.c @@ -1,7 +1,7 @@ /************************************************************ - * lib_rint.c + * lib/math/lib_rint.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without diff --git a/lib/net/Make.defs b/lib/net/Make.defs new file mode 100644 index 0000000000..5cacb10792 --- /dev/null +++ b/lib/net/Make.defs @@ -0,0 +1,36 @@ +############################################################################ +# lib/net/Make.defs +# +# Copyright (C) 2011 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt +# +# 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. +# +############################################################################ + +NET_SRCS = lib_htons.c lib_htonl.c lib_inetntoa.c lib_etherntoa.c diff --git a/lib/lib_etherntoa.c b/lib/net/lib_etherntoa.c similarity index 96% rename from lib/lib_etherntoa.c rename to lib/net/lib_etherntoa.c index eed9cb5446..2535491833 100644 --- a/lib/lib_etherntoa.c +++ b/lib/net/lib_etherntoa.c @@ -1,7 +1,7 @@ /**************************************************************************** - * lib/lib_etherntoa.c + * lib/net/lib_etherntoa.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without diff --git a/lib/lib_htonl.c b/lib/net/lib_htonl.c similarity index 96% rename from lib/lib_htonl.c rename to lib/net/lib_htonl.c index 94af90f0f2..f43b525050 100644 --- a/lib/lib_htonl.c +++ b/lib/net/lib_htonl.c @@ -1,7 +1,7 @@ /************************************************************ - * lib/lib_ntohl.c + * lib/net/lib_ntohl.c * - * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without diff --git a/lib/lib_htons.c b/lib/net/lib_htons.c similarity index 96% rename from lib/lib_htons.c rename to lib/net/lib_htons.c index cea07b871e..66d736a33f 100644 --- a/lib/lib_htons.c +++ b/lib/net/lib_htons.c @@ -1,7 +1,7 @@ /*************************************************************************** - * lib/lib_htons.c + * lib/net/lib_htons.c * - * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without diff --git a/lib/lib_inetntoa.c b/lib/net/lib_inetntoa.c similarity index 96% rename from lib/lib_inetntoa.c rename to lib/net/lib_inetntoa.c index c19670aff4..38414dde83 100644 --- a/lib/lib_inetntoa.c +++ b/lib/net/lib_inetntoa.c @@ -1,7 +1,7 @@ /**************************************************************************** - * lib/lib_inetntoa.c + * lib/net/lib_inetntoa.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without diff --git a/lib/unistd/Make.defs b/lib/unistd/Make.defs new file mode 100644 index 0000000000..90f1724062 --- /dev/null +++ b/lib/unistd/Make.defs @@ -0,0 +1,42 @@ +############################################################################ +# lib/unistd/Make.defs +# +# Copyright (C) 2011 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt +# +# 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. +# +############################################################################ + +UNISTD_SRCS = lib_getopt.c lib_getoptargp.c lib_getoptindp.c lib_getoptoptp.c +ifneq ($(CONFIG_NFILE_DESCRIPTORS),0) +ifneq ($(CONFIG_DISABLE_ENVIRON),y) +UNISTD_SRCS += lib_chdir.c lib_getcwd.c +endif +endif + diff --git a/lib/lib_chdir.c b/lib/unistd/lib_chdir.c similarity index 98% rename from lib/lib_chdir.c rename to lib/unistd/lib_chdir.c index 942ced6978..15dc643835 100644 --- a/lib/lib_chdir.c +++ b/lib/unistd/lib_chdir.c @@ -1,7 +1,7 @@ /**************************************************************************** - * lib/lib_chdir.c + * lib/unistd/lib_chdir.c * - * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without diff --git a/lib/lib_getcwd.c b/lib/unistd/lib_getcwd.c similarity index 98% rename from lib/lib_getcwd.c rename to lib/unistd/lib_getcwd.c index 20f7cef481..6888470ac4 100644 --- a/lib/lib_getcwd.c +++ b/lib/unistd/lib_getcwd.c @@ -1,7 +1,7 @@ /**************************************************************************** - * lib/lib_getcwd.c + * lib/unistd/lib_getcwd.c * - * Copyright (C) 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2008, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without diff --git a/lib/lib_getopt.c b/lib/unistd/lib_getopt.c similarity index 99% rename from lib/lib_getopt.c rename to lib/unistd/lib_getopt.c index f50c6ef1de..26a2c7fae4 100644 --- a/lib/lib_getopt.c +++ b/lib/unistd/lib_getopt.c @@ -1,5 +1,5 @@ /**************************************************************************** - * lib/lib_getopt.c + * lib/unistd/lib_getopt.c * * Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/lib/lib_getoptargp.c b/lib/unistd/lib_getoptargp.c similarity index 96% rename from lib/lib_getoptargp.c rename to lib/unistd/lib_getoptargp.c index 75a1434a15..4a483c051b 100644 --- a/lib/lib_getoptargp.c +++ b/lib/unistd/lib_getoptargp.c @@ -1,7 +1,7 @@ /**************************************************************************** - * lib/lib_getoptargp.c + * lib/unistd/lib_getoptargp.c * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without diff --git a/lib/lib_getoptindp.c b/lib/unistd/lib_getoptindp.c similarity index 96% rename from lib/lib_getoptindp.c rename to lib/unistd/lib_getoptindp.c index 87ddbca41a..002201aa94 100644 --- a/lib/lib_getoptindp.c +++ b/lib/unistd/lib_getoptindp.c @@ -1,7 +1,7 @@ /**************************************************************************** - * lib/lib_getoptindp.c + * lib/unistd/lib_getoptindp.c * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without diff --git a/lib/lib_getoptoptp.c b/lib/unistd/lib_getoptoptp.c similarity index 96% rename from lib/lib_getoptoptp.c rename to lib/unistd/lib_getoptoptp.c index 4a0452f652..2214f2d141 100644 --- a/lib/lib_getoptoptp.c +++ b/lib/unistd/lib_getoptoptp.c @@ -1,7 +1,7 @@ /**************************************************************************** - * lib/lib_getoptoptp.c + * lib/unistd/lib_getoptoptp.c * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without