int columnCount = 0;
int id = 0;
- int i = 0;
int uniqueId = -1;
File request;
IMapEnumerator* pMapEnum = null;
int columnCount = 0;
int id = 0;
- int i = 0;
int uniqueId = -1;
File request;
IMapEnumerator* pMapEnum = null;
namespace Tizen { namespace Io
{
_DataSetImpl::_DataSetImpl(void)
- :__rowCount(0),
- __pDataSet(null),
- __pColumnList(null),
- __pColumnTypeList(null)
+ : __columnCount(0)
+ , __rowCount(0)
+ , __pDataSet(null)
+ , __pColumnList(null)
+ , __pColumnTypeList(null)
{
}
GetErrorMessage(GetLastResult()));
struct stat64 statbuf;
- if (int ret = stat64(pFilePath.get(), &statbuf) == -1)
+ if (stat64(pFilePath.get(), &statbuf) == -1)
{
r = __ConvertNativeErrorToResult(errno);
- SysSecureLogException(NID_IO, r, "[%s] Failed to get file (%s) status.", GetErrorMessage(r), pFilePath.get());
+ SysSecureLogException(NID_IO, r, "[%s] Failed to get file (%s) status. errno: %d (%s)",
+ GetErrorMessage(r), pFilePath.get(), errno, strerror(errno));
return r;
}
SysTryCatch(NID_IO, ret >= 0 , r = E_SYSTEM, E_SYSTEM, "[E_SYSTEM] Failed to set file status flags (%d, %s).",
errno, strerror(errno));
- write(client, &helloMessage, sizeof(helloMessage));
+ ret = write(client, &helloMessage, sizeof(helloMessage));
if (forReverse)
{
{
SysSecureLog(NID_IO, "Register a message port : [%ls:%ls]", __appId.GetPointer(), localPort.GetPointer());
- result r = E_SUCCESS;
int ret = 0;
bool contain = false;
if (_sectionList.GetCount() == 0)
{
unique_ptr<char[]> pFilePath(_StringConverter::CopyToCharArrayN(_regPath));
- truncate(pFilePath.get(), 0);
+ int res = truncate(pFilePath.get(), 0);
return E_SUCCESS;
}
_DataSetImpl& operator =(const _DataSetImpl& dataSetImpl);
+private:
+ int __columnCount;
+ int __rowCount;
Tizen::Base::Collection::LinkedList* __pDataSet;
Tizen::Base::Collection::ArrayList* __pColumnList;
Tizen::Base::Collection::ArrayList* __pColumnTypeList;
-
- int __columnCount;
- int __rowCount;
-
Tizen::Base::Collection::LinkedList __enumImplList;
Tizen::Base::Collection::LinkedList __rowImplList;
}; // _DataSetImpl
_ChannelInfo* pChannelInfo = null;
GSource* pGSource = null;
GIOChannel* pChannel = null;
+ ssize_t res = 0;
int server = -1;
int client = -1;
client = accept(server, (struct sockaddr*) &clientAddress, &clientLen);
SysTryCatch(NID_IO, client != -1, , E_SYSTEM, "[E_SYSTEM] Accept failed.");
- read(client, &helloMessage, sizeof(helloMessage));
+ res = read(client, &helloMessage, sizeof(helloMessage));
helloMessage.appId[255] = '\0';
pChannel = g_io_channel_unix_new(client);