~ubuntu-branches/ubuntu/jaunty/nspr/jaunty-security

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-05-10 18:40:10 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100510184010-boghfzlm551mtoag
Tags: 4.8-0ubuntu0.9.04.1
* New upstream release: 4.8
  - Support updating NSS to 3.12.6 and fix CVE-2009-3555 aka 
    US-CERT VU#120541
* adjust patches to changed upstream codebase
  - update debian/patches/30_config_64bits.patch
  - 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