-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrapidfat.c
53 lines (48 loc) · 1.4 KB
/
rapidfat.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/***************************************************************************
*
* Copyright (c) 1997-2022 Jeff V. Merkey
* 7260 SE Tenino St.
* Portland, Oregon 97206
* jeffmerkey@gmail.com
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the Lesser GNU Public License as published by the
* Free Software Foundation, version 2.1, or any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* Original Authorship :
* source code written by Jeff V. Merkey
*
* Original Contributors :
* Jeff V. Merkey
*
*
*
****************************************************************************
*
*
* AUTHOR : Jeff V. Merkey (jeffmerkey@gmail.com)
* FILE : RAPIDFAT.C
* DESCRIP : Rapid FAT Module
* DATE : July 11, 2022
*
*
***************************************************************************/
#include "globals.h"
void NWLockFCB(FCB *fcb)
{
#if (LINUX)
if (WaitOnSemaphore(&fcb->Semaphore) == -EINTR)
NWFSPrint("lock fcb was interrupted\n");
#endif
}
void NWUnlockFCB(FCB *fcb)
{
#if (LINUX)
SignalSemaphore(&fcb->Semaphore);
#endif
}