~vkolesnikov/pbxt/pbxt-preload-test-bug

« back to all changes in this revision

Viewing changes to src/filesys_xt.cc

  • Committer: Vladimir Kolesnikov
  • Date: 2009-01-21 13:55:57 UTC
  • mto: This revision was merged to the branch mainline in revision 533.
  • Revision ID: vladimir@primebase.org-20090121135557-gyzk4wo3kj126jda
added thread lock lists

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
#include <errno.h>
38
38
 
39
39
#include "strutil_xt.h"
 
40
#include "pthread_xt.h"
40
41
#include "thread_xt.h"
41
42
#include "filesys_xt.h"
42
43
#include "memory_xt.h"
1227
1228
                        /* NULL is the value returned on error! */
1228
1229
                        mm->mm_mapdes = NULL;
1229
1230
#endif
1230
 
                        xt_rwmutex_init(self, &mm->mm_lock);
 
1231
                        xt_rwmutex_init_with_autoname(self, &mm->mm_lock);
1231
1232
                        mm->mm_length = fs_seek_eof(self, map->fr_file->fil_filedes, map->fr_file);
1232
1233
                        if (sizeof(size_t) == 4 && mm->mm_length >= (off_t) 0xFFFFFFFF)
1233
1234
                                xt_throw_ixterr(XT_CONTEXT, XT_ERR_FILE_TOO_LONG, map->fr_file->fil_path);