X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fydirectenv.h;h=dcf58d03ed4102516a20641249d484d64cf5b649;hp=b15147cad55fccf8e53578915d94b273070a0711;hb=957e8b6cc3e32759f67ec5ca883fecdab5636114;hpb=5cd357cc797ac725ca90b13cb7020ba4dd924f18 diff --git a/direct/ydirectenv.h b/direct/ydirectenv.h index b15147c..dcf58d0 100644 --- a/direct/ydirectenv.h +++ b/direct/ydirectenv.h @@ -1,8 +1,7 @@ /* * YAFFS: Yet another Flash File System . A NAND-flash specific file system. * - * Copyright (C) 2002-2011 Aleph One Ltd. - * for Toby Churchill Ltd and Brightstar Engineering + * Copyright (C) 2002-2018 Aleph One Ltd. * * Created by Charles Manning * @@ -39,6 +38,9 @@ void yaffs_bug_fn(const char *file_name, int line_no); #define Y_LOFF_T loff_t #endif +/* Some RTOSs (eg. VxWorks) need strnlen. */ +size_t strnlen(const char *s, size_t maxlen); + #define yaffs_strcat(a, b) strcat(a, b) #define yaffs_strcpy(a, b) strcpy(a, b) #define yaffs_strncpy(a, b, c) strncpy(a, b, c)