pj_file_open can't open file at PJ_O_APPEND mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
   pj_file_open() always fail when open existing files at append mode. The
file api backend is file_io_win32.c. Test program included as attachment.
   OS is windows XP, VS 2005. pjsip-0.9.0 release

   And how can I chose ANSI backend.

 // Open this file at append mode
 status = pj_file_open(pool, filename.ptr, PJ_O_WRONLY | PJ_O_APPEND,
&file);
 if (status != PJ_SUCCESS) {
  PJ_LOG(2, (THIS_FILE, "Open file error %d", status));
  return status;
 }

regards,
Gang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080828/48633823/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pj_file.cpp
Url: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080828/48633823/attachment.cpp 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux