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

Function path_tmpnam

src/engine/pathsys.c:260–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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