~ubuntu-branches/ubuntu/saucy/nspr/saucy-updates

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/src/io/prio.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-08-10 11:34:26 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090810113426-3uv4diflrkcbdimm
Tags: 4.8-0ubuntu1
* New upstream release: 4.8 (LP: #387812)
* adjust patches to changed upstreanm codebase
  - update debian/patches/99_configure.patch
* update shlibs symbols to include new API elements
  - update debian/libnspr4-0d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
PRLock *_pr_flock_lock;
46
46
PRCondVar *_pr_flock_cv;
47
47
 
 
48
#ifdef WINCE
 
49
/*
 
50
 * There are no stdin, stdout, stderr in Windows CE.  INVALID_HANDLE_VALUE
 
51
 * should cause all I/O functions on the handle to fail.
 
52
 */
 
53
#define STD_INPUT_HANDLE  ((DWORD)-10)
 
54
#define STD_OUTPUT_HANDLE ((DWORD)-11)
 
55
#define STD_ERROR_HANDLE  ((DWORD)-12)
 
56
 
 
57
static HANDLE GetStdHandle(DWORD nStdHandle)
 
58
{
 
59
    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
 
60
    return INVALID_HANDLE_VALUE;
 
61
}
 
62
#endif
 
63
 
48
64
void _PR_InitIO(void)
49
65
{
50
66
    const PRIOMethods *methods = PR_GetFileMethods();
146
162
PR_IMPLEMENT(void) PR_FreeFileDesc(PRFileDesc *fd)
147
163
{
148
164
    PR_ASSERT(fd);
149
 
#ifdef XP_MAC
150
 
        _PR_MD_FREE_FILEDESC(fd);
151
 
#endif
152
165
    _PR_Putfd(fd);
153
166
}
154
167
 
184
197
    }
185
198
    return PR_SUCCESS;
186
199
#else
187
 
#ifdef XP_MAC
188
 
#pragma unused (fd, inheritable)
189
 
#endif
190
200
    PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
191
201
    return PR_FAILURE;
192
202
#endif