~ubuntu-branches/ubuntu/quantal/nspr/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/src/io/prfile.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:
132
132
 
133
133
static PROffset64 PR_CALLBACK FileSeek64(PRFileDesc *fd, PROffset64 offset, PRSeekWhence whence)
134
134
{
135
 
#ifdef XP_MAC
136
 
#pragma unused( fd, offset, whence )
137
 
#endif
138
135
    PROffset64 result;
139
136
 
140
137
    result = _PR_MD_LSEEK64(fd, offset, whence);
162
159
 
163
160
static PRInt64 PR_CALLBACK FileAvailable64(PRFileDesc *fd)
164
161
{
165
 
#ifdef XP_MAC
166
 
#pragma unused( fd )
167
 
#endif
168
162
    PRInt64 result, cur, end;
169
163
    PRInt64 minus_one;
170
164
 
198
192
 
199
193
static PRStatus PR_CALLBACK PipeSync(PRFileDesc *fd)
200
194
{
201
 
#if defined(XP_MAC)
202
 
#pragma unused (fd)
203
 
#endif
204
 
 
205
195
        return PR_SUCCESS;
206
196
}
207
197
 
218
208
 
219
209
static PRStatus PR_CALLBACK FileGetInfo64(PRFileDesc *fd, PRFileInfo64 *info)
220
210
{
221
 
#ifdef XP_MAC
222
 
#pragma unused( fd, info )
223
 
#endif
224
211
    /* $$$$ NOT YET IMPLEMENTED */
225
212
        PRInt32 rv;
226
213
 
261
248
static PRInt16 PR_CALLBACK FilePoll(
262
249
    PRFileDesc *fd, PRInt16 in_flags, PRInt16 *out_flags)
263
250
{
264
 
#ifdef XP_MAC
265
 
#pragma unused( fd, in_flags )
266
 
#endif
267
251
    *out_flags = 0;
268
252
    return in_flags;
269
253
}  /* FilePoll */
436
420
    ULONG ulCurMaxFH = 0;
437
421
    DosSetRelMaxFH(&ulReqCount, &ulCurMaxFH);
438
422
    return ulCurMaxFH;
439
 
#elif defined (XP_MAC) || defined(XP_BEOS)
 
423
#elif defined(XP_BEOS)
440
424
    PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
441
425
   return -1;
442
426
#else
485
469
        || defined(WIN32) || defined(WIN16) || defined(XP_BEOS)
486
470
    PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
487
471
    return -1;
488
 
#elif defined (XP_MAC)
489
 
#pragma unused (table_size)
490
 
    PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
491
 
   return -1;
492
472
#else
493
473
    write me;
494
474
#endif
518
498
 
519
499
PR_IMPLEMENT(PRStatus) PR_GetFileInfo64(const char *fn, PRFileInfo64 *info)
520
500
{
521
 
#ifdef XP_MAC
522
 
#pragma unused (fn, info)
523
 
#endif
524
501
    PRInt32 rv;
525
502
 
526
503
    if (!_pr_initialized) _PR_ImplicitInitialization();
715
692
    PRFileDesc **writePipe
716
693
)
717
694
{
718
 
#if defined(XP_MAC)
719
 
#pragma unused (readPipe, writePipe)
720
 
#endif
721
 
 
722
 
#ifdef WIN32
 
695
#if defined(WIN32) && !defined(WINCE)
723
696
    HANDLE readEnd, writeEnd;
724
697
    SECURITY_ATTRIBUTES pipeAttributes;
725
698
 
827
800
 
828
801
PR_IMPLEMENT(PRStatus) PR_GetFileInfo64UTF16(const PRUnichar *fn, PRFileInfo64 *info)
829
802
{
830
 
#ifdef XP_MAC
831
 
#pragma unused (fn, info)
832
 
#endif
833
803
    PRInt32 rv;
834
804
 
835
805
    if (!_pr_initialized) _PR_ImplicitInitialization();