2003-08-24 Bruno Haible <bruno@clisp.org>
- * basename.h: Make this file includable in C++ mode: add extern "C".
+ * backupfile.h: Make this file includable in C++ mode: add extern "C".
+ * basename.h: Likewise.
+ * copy-file.h: Likewise.
* error-progname.h: Likewise.
+ * findprog.h: Likewise.
+ * full-write.h: Likewise.
* pathname.h: Likewise.
+ * pipe.h: Likewise.
* progname.h: Likewise.
* relocatable.h: Likewise.
* stpcpy.h: Likewise.
+ * stpncpy.h: Likewise,
* strcase.h: Likewise.
* strstr.h: Likewise.
+ * wait-process.h: Likewise.
* xerror.h: Likewise.
* xmalloc.h: Likewise.
/* backupfile.h -- declarations for making Emacs style backup file names
- Copyright (C) 1990-1992, 1997-1999, 2001-2002 Free Software Foundation, Inc.
+ Copyright (C) 1990-1992, 1997-1999, 2001-2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#ifndef BACKUPFILE_H_
# define BACKUPFILE_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
/* When to make backup files. */
enum backup_type
{
|| (Type) == numbered_existing \
|| (Type) == numbered)
-extern char const *simple_backup_suffix;
+extern DLL_VARIABLE char const *simple_backup_suffix;
extern char *find_backup_file_name (char const *file,
enum backup_type backup_type);
extern enum backup_type xget_version (char const *context, char const *arg);
extern void addext (char *filename, char const *ext, char e);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* ! BACKUPFILE_H_ */
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
/* Copy a regular file: from src_filename to dest_filename.
The destination file is assumed to be a backup file.
Modification times, owner, group and access permissions are preserved as
far as possible.
Exit upon failure. */
extern void copy_file_preserving (const char *src_filename, const char *dest_filename);
+
+
+#ifdef __cplusplus
+}
+#endif
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
/* Look up a program in the PATH.
Attempt to determine the pathname that would be called by execlp/execvp
of PROGNAME. If successful, return a pathname containing a slash
execl/execv on the returned pathname.
The returned string is freshly malloc()ed if it is != PROGNAME. */
extern const char *find_in_path (const char *progname);
+
+
+#ifdef __cplusplus
+}
+#endif
/* An interface to write() that writes all it is asked to write.
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <stddef.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
/* Write COUNT bytes at BUF to descriptor FD, retrying if interrupted
or if partial writes occur. Return the number of bytes successfully
written, setting errno if that is less than COUNT. */
extern size_t full_write (int fd, const void *buf, size_t count);
+
+
+#ifdef __cplusplus
+}
+#endif
#include <stdbool.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
/* All these functions create a subprocess and don't wait for its termination.
They return the process id of the subprocess. They also return in fd[]
one or two file descriptors for communication with the subprocess.
# define DEV_NULL "/dev/null"
#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+
#endif /* _PIPE_H */
#include <string.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#ifndef __GNU_LIBRARY__
/* Copy no more than N characters of SRC to DST, returning the address of
#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+
#endif /* _STPNCPY_H */
#include <stdbool.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
/* Wait for a subprocess to finish. Return its exit code.
If it didn't terminate correctly, exit if exit_on_error is true, otherwise
return 127. */
extern int wait_subprocess (pid_t child, const char *progname,
bool null_stderr, bool exit_on_error);
+
+#ifdef __cplusplus
+}
+#endif
+
+
#endif /* _WAIT_PROCESS_H */