33 #include <stdapis/net/if.h> |
33 #include <stdapis/net/if.h> |
34 #include <commdb.h> |
34 #include <commdb.h> |
35 #include <commdbconnpref.h> |
35 #include <commdbconnpref.h> |
36 #include <rpipe.h> |
36 #include <rpipe.h> |
37 |
37 |
|
38 #include<tz.h> |
|
39 |
38 #ifdef SYMBIAN_OE_POSIX_SIGNALS |
40 #ifdef SYMBIAN_OE_POSIX_SIGNALS |
39 #include "signalclient.h" |
41 #include "signalclient.h" |
40 #include "tsignalmessage.h" |
42 #include "tsignalmessage.h" |
41 |
43 |
42 typedef void (*TSignalHandler)(int); |
44 typedef void (*TSignalHandler)(int); |
320 static int chdir(RFs& aFs, const wchar_t* path, int& anErrno); |
325 static int chdir(RFs& aFs, const wchar_t* path, int& anErrno); |
321 static int mkdir(RFs& aFs, const wchar_t* path, int perms, int& anErrno); |
326 static int mkdir(RFs& aFs, const wchar_t* path, int perms, int& anErrno); |
322 static int rmdir(RFs& aFs, const wchar_t* path, int& anErrno); |
327 static int rmdir(RFs& aFs, const wchar_t* path, int& anErrno); |
323 static int chmod(RFs& aFs, const wchar_t* path, int perms, int& anErrno); |
328 static int chmod(RFs& aFs, const wchar_t* path, int perms, int& anErrno); |
324 static int reg_unlink(RFs& aFs, const wchar_t* path, int& anErrno); |
329 static int reg_unlink(RFs& aFs, const wchar_t* path, int& anErrno); |
325 static int stat(RFs& aFs, const wchar_t* name, struct stat* st, int& anErrno); |
330 static int statbackend(RFs& aFs, const wchar_t* name, struct stat* st, int& anErrno); |
326 static int rename(RFs& aFs, const wchar_t* oldname, const wchar_t* newname, int& anErrno); |
331 static int rename(RFs& aFs, const wchar_t* oldname, const wchar_t* newname, int& anErrno); |
327 static TInt ResolvePath(TParse& aResult, const wchar_t* path, TDes* aFilename); |
332 static TInt ResolvePath(TParse& aResult, const wchar_t* path, TDes* aFilename); |
328 static TInt SetDefaultDir(RFs& aFs); |
333 static TInt SetDefaultDir(RFs& aFs); |
329 static TInt CreateDefaultPrivatePath(RFs& aFs); |
334 static TInt CreateDefaultPrivatePath(RFs& aFs); |
330 static int utime(RFs& aFs, const wchar_t* name, const struct utimbuf* filetimes, int& anErrno); |
335 static int utime(RFs& aFs, const wchar_t* name, const struct utimbuf* filetimes, int& anErrno); |
418 int chdir (const wchar_t* path, int& anErrno); |
423 int chdir (const wchar_t* path, int& anErrno); |
419 int mkdir (const wchar_t* path, int perms, int& anErrno); |
424 int mkdir (const wchar_t* path, int perms, int& anErrno); |
420 int rmdir (const wchar_t* path, int& anErrno); |
425 int rmdir (const wchar_t* path, int& anErrno); |
421 int chmod (const wchar_t* path, int perms, int& anErrno); |
426 int chmod (const wchar_t* path, int perms, int& anErrno); |
422 int stat (const wchar_t* name, struct stat* st, int& anErrno); |
427 int stat (const wchar_t* name, struct stat* st, int& anErrno); |
|
428 int lstat (const wchar_t* name, struct stat *st, int& anErrno); |
423 int rename (const wchar_t* oldname, const wchar_t* newname, int& anErrno); |
429 int rename (const wchar_t* oldname, const wchar_t* newname, int& anErrno); |
424 |
430 |
425 IMPORT_C TInt ResolvePath (TParse& aResult, const wchar_t* path, TDes* aFilename); |
431 IMPORT_C TInt ResolvePath (TParse& aResult, const wchar_t* path, TDes* aFilename); |
426 int socket (int family, int style, int protocol, int& anErrno); |
432 int socket (int family, int style, int protocol, int& anErrno); |
427 int recvfrom (int fd, char* buf, unsigned long cnt, int flags, struct sockaddr* from, unsigned long* fromsize, int& anErrno); |
433 int recvfrom (int fd, char* buf, unsigned long cnt, int flags, struct sockaddr* from, unsigned long* fromsize, int& anErrno); |
649 // iASelectRequest holds the TASelectRequest objects of the aselect requests |
655 // iASelectRequest holds the TASelectRequest objects of the aselect requests |
650 RArray<TASelectRequest> iASelectRequest; |
656 RArray<TASelectRequest> iASelectRequest; |
651 |
657 |
652 // Default connection settings, set/cleared using setdefaultif |
658 // Default connection settings, set/cleared using setdefaultif |
653 TConnPref* iDefConnPref; |
659 TConnPref* iDefConnPref; |
654 |
660 RTz iTzServer; |
655 #ifdef SYMBIAN_OE_POSIX_SIGNALS |
661 #ifdef SYMBIAN_OE_POSIX_SIGNALS |
656 // Signal handler thread |
662 // Signal handler thread |
657 RThread iSignalHandlerThread; |
663 RThread iSignalHandlerThread; |
658 RPipe iSignalReadPipe; |
664 RPipe iSignalReadPipe; |
659 RPipe iSignalWritePipe; |
665 RPipe iSignalWritePipe; |