~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_file.c

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#define RLIM_INFINITY ((uint) 0xffffffff)
39
39
#endif
40
40
 
41
 
static uint set_max_open_files(uint max_file_limit)
 
41
static uint32_t set_max_open_files(uint32_t max_file_limit)
42
42
{
43
43
  struct rlimit rlimit;
44
 
  uint old_cur;
 
44
  uint32_t old_cur;
45
45
 
46
46
  if (!getrlimit(RLIMIT_NOFILE,&rlimit))
47
47
  {
65
65
}
66
66
 
67
67
#else
68
 
static int set_max_open_files(uint max_file_limit)
 
68
static int set_max_open_files(uint32_t max_file_limit)
69
69
{
70
70
  /* We don't know the limit. Return best guess */
71
71
  return cmin(max_file_limit, OS_FILE_LIMIT);
84
84
    number of files available for open
85
85
*/
86
86
 
87
 
uint my_set_max_open_files(uint files)
 
87
uint32_t my_set_max_open_files(uint32_t files)
88
88
{
89
89
  struct st_my_file_info *tmp;
90
90