Problem creating tmp file in /var/tmp

This is a discussion on Problem creating tmp file in /var/tmp within the Linux Programming forums, part of the Platform Specific Boards category; In my application for iam creating tmp file in /var/tmp. Now if the length of file is 5 to 10 ...

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    4

    Problem creating tmp file in /var/tmp

    In my application for iam creating tmp file in /var/tmp.
    Now if the length of file is 5 to 10 char then it creates the tmp file, if length is more then say 15 to 20 char iam not able to do so. Any reason ?

    Is their any setting or configuration issue in lunux.

  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,274
    Quote Originally Posted by Rahulds View Post
    In my application for iam creating tmp file in /var/tmp.
    Now if the length of file is 5 to 10 char then it creates the tmp file, if length is more then say 15 to 20 char iam not able to do so. Any reason ?

    Is their any setting or configuration issue in lunux.
    The length of the file, or the filename? What function are you using to create the temp file? mkstemp(), mktemp(), tempnam(), tmpfile(), tmpnam(), what?
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 11:39 PM
  2. Subtle(?) File I/O Problem
    By cecomp64 in forum C Programming
    Replies: 9
    Last Post: 07-16-2008, 12:39 PM
  3. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 05:54 PM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 10:54 AM
  5. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 05:10 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21