]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/src/engine/pathunix.c
2 * Copyright 1993-2002 Christopher Seiwald and Perforce Software, Inc.
4 * This file is part of Jam - see jam.c for Copyright information.
8 * Copyright 2001-2004 David Abrahams.
9 * Copyright 2005 Rene Rivera.
10 * Distributed under the Boost Software License, Version 1.0.
11 * (See accompanying file LICENSE_1_0.txt or copy at
12 * http://www.boost.org/LICENSE_1_0.txt)
16 * pathunix.c - UNIX specific path manipulation support
22 #include <unistd.h> /* needed for getpid() */
26 * path_get_process_id_()
29 unsigned long path_get_process_id_( void )
36 * path_get_temp_path_()
39 void path_get_temp_path_( string
* buffer
)
41 char const * t
= getenv( "TMPDIR" );
42 string_append( buffer
, t
? t
: "/tmp" );
47 * path_translate_to_os_()
50 int path_translate_to_os_( char const * f
, string
* file
)
54 /* by default, pass on the original path */
55 string_copy( file
, f
);
65 void path_register_key( OBJECT
* path
)
74 OBJECT
* path_as_key( OBJECT
* path
)
76 return object_copy( path
);
84 void path_done( void )