views:

209

answers:

1

I'm porting some C++ code from UNIX to Windows which detects the occurrence of the EDQUOT error, which indicates that there was an unsuccessful attempt to exceed the current user's disk quota. Visual Studio's <errno.h> doesn't have an EDQUOT, although I know that Windows has disk quota functionality. Visual Studio's <errno.h> does have an ENOSPC, which might be how the CRT expresses what UNIX would express as EDQUOT. Can anybody confirm or deny this theory? And if this isn't the way to handle this, what is?

A: 

C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include\WinSock.h

C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock.h

#if 0
#define EDQUOT                  WSAEDQUOT
#endif

C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include\WinError.h

C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinError.h

//
// MessageId: WSAEDQUOT
//
// MessageText:
//
// Ran out of disk quota.
//
#define WSAEDQUOT                        10069L
plan9assembler