Thread: Problem creating tmp file in /var/tmp

  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
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    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, 10:39 PM
  2. Subtle(?) File I/O Problem
    By cecomp64 in forum C Programming
    Replies: 9
    Last Post: 07-16-2008, 11:39 AM
  3. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM

Tags for this Thread