phatutil.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #ifndef FS_PHATUTIL_H_
  2. #define FS_PHATUTIL_H_
  3. /*
  4. * <MFS> Modified for Streamit
  5. * Added check to see if a given filename is a for Short filename (DOS 8.3)
  6. *
  7. * Copyright (C) 2005 by egnite Software GmbH. All rights reserved.
  8. *
  9. * Redistribution and use in source and binary forms, with or without
  10. * modification, are permitted provided that the following conditions
  11. * are met:
  12. *
  13. * 1. Redistributions of source code must retain the above copyright
  14. * notice, this list of conditions and the following disclaimer.
  15. * 2. Redistributions in binary form must reproduce the above copyright
  16. * notice, this list of conditions and the following disclaimer in the
  17. * documentation and/or other materials provided with the distribution.
  18. * 3. Neither the name of the copyright holders nor the names of
  19. * contributors may be used to endorse or promote products derived
  20. * from this software without specific prior written permission.
  21. *
  22. * THIS SOFTWARE IS PROVIDED BY EGNITE SOFTWARE GMBH AND CONTRIBUTORS
  23. * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  24. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  25. * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EGNITE
  26. * SOFTWARE GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  27. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  28. * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  29. * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  30. * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  31. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  32. * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  33. * SUCH DAMAGE.
  34. *
  35. * For additional information see http://www.ethernut.de/
  36. */
  37. /*!
  38. * \file fs/phatutil.h
  39. * \brief PHAT file system.
  40. *
  41. * \verbatim
  42. *
  43. * $Log: phatutil.h,v $
  44. * Revision 1.2 2006/02/23 15:47:18 haraldkipp
  45. * PHAT file system now supports configurable number of sector buffers.
  46. *
  47. * Revision 1.1 2006/01/05 16:33:06 haraldkipp
  48. * First check-in.
  49. *
  50. *
  51. * \endverbatim
  52. */
  53. #include <fs/phatfs.h>
  54. __BEGIN_DECLS
  55. /* Prototypes */
  56. extern void GetDosTimeStamp(u_short * dostim, u_short * dosdat);
  57. extern int MakePhatName(CONST char *src, u_char * dst);
  58. extern void MakeVisibleName(CONST u_char * src, char *dst);
  59. extern char *GetParentPath(CONST char *path, CONST char **comp);
  60. extern int IsFixedRootDir(NUTFILE * ndp);
  61. extern int IsShortName(CONST char * fname);
  62. extern void PhatFilePosRewind(PHATFILE * fcb);
  63. extern int PhatFilePosSet(NUTFILE * nfp, u_long pos);
  64. __END_DECLS
  65. /* End of prototypes */
  66. #endif