changed the private *at functions to the official ones for openat and
mkdirat, but not for opendirat, as there is no official version of it.
This commit is contained in:
@ -40,36 +40,6 @@
|
||||
char* get_full_path(int directory_file_descriptor, const char* path_name);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Replacement function for openat() : open a file relative to a directory file descriptor.
|
||||
*
|
||||
* @param directory_file_descriptor the file descriptor for the directory in which the file should be opened
|
||||
* @param path_name the path name for the file, relative to directory_file_descriptor
|
||||
* @param flags the access modes
|
||||
*
|
||||
* @return the file descriptor of the opened file
|
||||
*
|
||||
* @since June 2015
|
||||
* @author Celine Mercier (celine.mercier@metabarcoding.org)
|
||||
*/
|
||||
int private_openat(int directory_file_descriptor, const char* path_name, int flags);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Replacement function for mkdirat() : create a directory relative to a directory file descriptor.
|
||||
*
|
||||
* @param directory_file_descriptor the file descriptor for the directory in which the directory should be created
|
||||
* @param path_name the path name for the new directory, relative to directory_file_descriptor
|
||||
* @param mode the access mode
|
||||
*
|
||||
* @return the file descriptor of the created directory
|
||||
*
|
||||
* @since June 2015
|
||||
* @author Celine Mercier (celine.mercier@metabarcoding.org)
|
||||
*/
|
||||
int private_mkdirat(int directory_file_descriptor, const char* path_name, mode_t mode);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Replacement function for opendirat() : open a directory relative to a directory file descriptor.
|
||||
*
|
||||
@ -84,4 +54,34 @@ int private_mkdirat(int directory_file_descriptor, const char* path_name, mode_t
|
||||
DIR* private_opendirat(int directory_file_descriptor, const char* path_name);
|
||||
|
||||
|
||||
///**
|
||||
// * @brief Replacement function for openat() : open a file relative to a directory file descriptor.
|
||||
// *
|
||||
// * @param directory_file_descriptor the file descriptor for the directory in which the file should be opened
|
||||
// * @param path_name the path name for the file, relative to directory_file_descriptor
|
||||
// * @param flags the access modes
|
||||
// *
|
||||
// * @return the file descriptor of the opened file
|
||||
// *
|
||||
// * @since June 2015
|
||||
// * @author Celine Mercier (celine.mercier@metabarcoding.org)
|
||||
// */
|
||||
//int private_openat(int directory_file_descriptor, const char* path_name, int flags);
|
||||
//
|
||||
//
|
||||
///**
|
||||
// * @brief Replacement function for mkdirat() : create a directory relative to a directory file descriptor.
|
||||
// *
|
||||
// * @param directory_file_descriptor the file descriptor for the directory in which the directory should be created
|
||||
// * @param path_name the path name for the new directory, relative to directory_file_descriptor
|
||||
// * @param mode the access mode
|
||||
// *
|
||||
// * @return the file descriptor of the created directory
|
||||
// *
|
||||
// * @since June 2015
|
||||
// * @author Celine Mercier (celine.mercier@metabarcoding.org)
|
||||
// */
|
||||
//int private_mkdirat(int directory_file_descriptor, const char* path_name, mode_t mode);
|
||||
|
||||
|
||||
#endif /* PRIVATEOPENAT_H_ */
|
||||
|
Reference in New Issue
Block a user