MCPcopy Create free account
hub / github.com/boostorg/build / path_tmpnam

Function path_tmpnam

v2/engine/pathsys.c:254–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252 */
253
254OBJECT * path_tmpnam( void )
255{
256 char name_buffer[ 64 ];
257 unsigned long const pid = path_get_process_id_();
258 static unsigned long t;
259 if ( !t ) t = time( 0 ) & 0xffff;
260 t += 1;
261 sprintf( name_buffer, "jam%lx%lx.000", pid, t );
262 return object_new( name_buffer );
263}
264
265
266/*

Callers 2

var_getFunction · 0.85
path_tmpfileFunction · 0.85

Calls 2

object_newFunction · 0.85
path_get_process_id_Function · 0.70

Tested by

no test coverage detected