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

Function path_tmpnam

src/engine/pathsys.cpp:262–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260 */
261
262OBJECT * path_tmpnam( void )
263{
264 char name_buffer[ 64 ];
265 unsigned long const pid = path_get_process_id_();
266 static unsigned long t;
267 if ( !t ) t = time( 0 ) & 0xffff;
268 t += 1;
269 sprintf( name_buffer, "jam%lx%lx.000", pid, t );
270 return object_new( name_buffer );
271}
272
273
274/*

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