From 3504ad6140b2d2586998bdd81d1f5799d79baad7 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 13 Dec 2009 18:01:46 +0000 Subject: [PATCH] types blkcnt_t and off_t should not depend on memory model; Remove non-standard type STATUS git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2330 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/common/up_createstack.c | 4 ++-- arch/arm/src/common/up_usestack.c | 2 +- arch/hc/src/common/up_createstack.c | 2 +- arch/hc/src/common/up_usestack.c | 2 +- arch/sh/src/common/up_createstack.c | 4 ++-- arch/sh/src/common/up_usestack.c | 4 ++-- arch/sim/src/up_createstack.c | 8 ++++---- arch/sim/src/up_usestack.c | 6 +++--- arch/z16/src/common/up_createstack.c | 6 +++--- arch/z16/src/common/up_usestack.c | 6 +++--- arch/z80/src/common/up_createstack.c | 6 +++--- arch/z80/src/common/up_usestack.c | 6 +++--- 12 files changed, 28 insertions(+), 28 deletions(-) diff --git a/arch/arm/src/common/up_createstack.c b/arch/arm/src/common/up_createstack.c index c3e213eb434..e76e05696b6 100644 --- a/arch/arm/src/common/up_createstack.c +++ b/arch/arm/src/common/up_createstack.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/arm/src/common/up_createstack.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -82,7 +82,7 @@ * must be allocated. ****************************************************************************/ -STATUS up_create_stack(_TCB *tcb, size_t stack_size) +int up_create_stack(_TCB *tcb, size_t stack_size) { if (tcb->stack_alloc_ptr && tcb->adj_stack_size != stack_size) diff --git a/arch/arm/src/common/up_usestack.c b/arch/arm/src/common/up_usestack.c index c67dd6ad0a0..bd7411f0ce1 100644 --- a/arch/arm/src/common/up_usestack.c +++ b/arch/arm/src/common/up_usestack.c @@ -78,7 +78,7 @@ * ****************************************************************************/ -STATUS up_use_stack(_TCB *tcb, void *stack, size_t stack_size) +int up_use_stack(_TCB *tcb, void *stack, size_t stack_size) { size_t top_of_stack; size_t size_of_stack; diff --git a/arch/hc/src/common/up_createstack.c b/arch/hc/src/common/up_createstack.c index 1f2cb691c06..4750c463bee 100755 --- a/arch/hc/src/common/up_createstack.c +++ b/arch/hc/src/common/up_createstack.c @@ -82,7 +82,7 @@ * ****************************************************************************/ -STATUS up_create_stack(_TCB *tcb, size_t stack_size) +int up_create_stack(_TCB *tcb, size_t stack_size) { if (tcb->stack_alloc_ptr && tcb->adj_stack_size != stack_size) { diff --git a/arch/hc/src/common/up_usestack.c b/arch/hc/src/common/up_usestack.c index 51b3c1622ac..ab7109a8c21 100755 --- a/arch/hc/src/common/up_usestack.c +++ b/arch/hc/src/common/up_usestack.c @@ -77,7 +77,7 @@ * ****************************************************************************/ -STATUS up_use_stack(_TCB *tcb, void *stack, size_t stack_size) +int up_use_stack(_TCB *tcb, void *stack, size_t stack_size) { size_t top_of_stack; size_t size_of_stack; diff --git a/arch/sh/src/common/up_createstack.c b/arch/sh/src/common/up_createstack.c index 1a1ecb8d83b..853601726f1 100644 --- a/arch/sh/src/common/up_createstack.c +++ b/arch/sh/src/common/up_createstack.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/sh/src/common/up_createstack.c * - * Copyright (C) 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -82,7 +82,7 @@ * must be allocated. ****************************************************************************/ -STATUS up_create_stack(_TCB *tcb, size_t stack_size) +int up_create_stack(_TCB *tcb, size_t stack_size) { if (tcb->stack_alloc_ptr && tcb->adj_stack_size != stack_size) diff --git a/arch/sh/src/common/up_usestack.c b/arch/sh/src/common/up_usestack.c index 5fd8acb8a90..226d5f52f77 100644 --- a/arch/sh/src/common/up_usestack.c +++ b/arch/sh/src/common/up_usestack.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/sh/src/common/up_usestack.c * - * Copyright (C) 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -78,7 +78,7 @@ * ****************************************************************************/ -STATUS up_use_stack(_TCB *tcb, void *stack, size_t stack_size) +int up_use_stack(_TCB *tcb, void *stack, size_t stack_size) { size_t top_of_stack; size_t size_of_stack; diff --git a/arch/sim/src/up_createstack.c b/arch/sim/src/up_createstack.c index f0aa8fdf6b1..4d31701a157 100644 --- a/arch/sim/src/up_createstack.c +++ b/arch/sim/src/up_createstack.c @@ -1,7 +1,7 @@ /**************************************************************************** - * up_createstack.c + * arch/sim/src/up_createstack.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -81,9 +81,9 @@ * ****************************************************************************/ -STATUS up_create_stack(_TCB *tcb, size_t stack_size) +int up_create_stack(_TCB *tcb, size_t stack_size) { - STATUS ret = ERROR; + int ret = ERROR; /* Move up to next even word boundary if necessary */ diff --git a/arch/sim/src/up_usestack.c b/arch/sim/src/up_usestack.c index e28cac3129f..309dc2dc40e 100644 --- a/arch/sim/src/up_usestack.c +++ b/arch/sim/src/up_usestack.c @@ -1,7 +1,7 @@ /**************************************************************************** - * up_usestack.c + * arch/sim/src/up_usestack.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -81,7 +81,7 @@ * ****************************************************************************/ -STATUS up_use_stack(_TCB *tcb, void *stack, size_t stack_size) +int up_use_stack(_TCB *tcb, void *stack, size_t stack_size) { /* Move up to next even word boundary if necessary */ diff --git a/arch/z16/src/common/up_createstack.c b/arch/z16/src/common/up_createstack.c index 68c3da28fc4..166ae25e100 100644 --- a/arch/z16/src/common/up_createstack.c +++ b/arch/z16/src/common/up_createstack.c @@ -1,7 +1,7 @@ /**************************************************************************** - * common/up_createstack.c + * arch/z16/common/up_createstack.c * - * Copyright (C) 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -83,7 +83,7 @@ * must be allocated. ****************************************************************************/ -STATUS up_create_stack(_TCB *tcb, size_t stack_size) +int up_create_stack(_TCB *tcb, size_t stack_size) { if (tcb->stack_alloc_ptr && tcb->adj_stack_size != stack_size) diff --git a/arch/z16/src/common/up_usestack.c b/arch/z16/src/common/up_usestack.c index d633fa294d0..c65c4e4b91c 100644 --- a/arch/z16/src/common/up_usestack.c +++ b/arch/z16/src/common/up_usestack.c @@ -1,7 +1,7 @@ /************************************************************ - * common/up_usestack.c + * arch/z16/common/up_usestack.c * - * Copyright (C) 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -78,7 +78,7 @@ * ************************************************************/ -STATUS up_use_stack(_TCB *tcb, void *stack, size_t stack_size) +int up_use_stack(_TCB *tcb, void *stack, size_t stack_size) { size_t top_of_stack; size_t size_of_stack; diff --git a/arch/z80/src/common/up_createstack.c b/arch/z80/src/common/up_createstack.c index dc3f715c99f..1c2d08b1fe7 100644 --- a/arch/z80/src/common/up_createstack.c +++ b/arch/z80/src/common/up_createstack.c @@ -1,7 +1,7 @@ /**************************************************************************** - * common/up_createstack.c + * arch/z80/src/common/up_createstack.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -79,7 +79,7 @@ * must be allocated. ****************************************************************************/ -STATUS up_create_stack(_TCB *tcb, size_t stack_size) +int up_create_stack(_TCB *tcb, size_t stack_size) { if (tcb->stack_alloc_ptr && tcb->adj_stack_size != stack_size) diff --git a/arch/z80/src/common/up_usestack.c b/arch/z80/src/common/up_usestack.c index de8e7e87cf8..c73e99bc132 100644 --- a/arch/z80/src/common/up_usestack.c +++ b/arch/z80/src/common/up_usestack.c @@ -1,7 +1,7 @@ /************************************************************ - * common/up_usestack.c + * arch/z80/src/common/up_usestack.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -78,7 +78,7 @@ * ************************************************************/ -STATUS up_use_stack(_TCB *tcb, void *stack, size_t stack_size) +int up_use_stack(_TCB *tcb, void *stack, size_t stack_size) { size_t top_of_stack; size_t size_of_stack;