Searched refs:tmp_nam (Results 1 - 2 of 2) sorted by relevance

/xsrc/external/mit/iceauth/dist/
H A Dprocess.c95 static int write_auth_file ( char *tmp_nam, size_t tmp_nam_len );
634 static int write_auth_file (char *tmp_nam, size_t tmp_nam_len) argument
639 strncpy(tmp_nam, "filename too long", tmp_nam_len);
640 tmp_nam[tmp_nam_len - 1] = '\0';
644 strcpy (tmp_nam, iceauth_filename);
645 strcat (tmp_nam, "-n"); /* for new */
646 (void) unlink (tmp_nam);
647 fp = fopen (tmp_nam, "wb"); /* umask is still set to 0077 */
650 ProgramName, tmp_nam);
/xsrc/external/mit/xauth/dist/
H A Dprocess.c830 write_auth_file(char *tmp_nam, size_t tmp_nam_size) argument
836 int ret = snprintf(tmp_nam, tmp_nam_size, "%s-n", xauth_filename);
842 (void) remove (tmp_nam);
844 fd = open(tmp_nam, O_WRONLY | O_CREAT | O_EXCL, 0600);
849 ProgramName, tmp_nam);

Completed in 6 milliseconds