aboutsummaryrefslogtreecommitdiffhomepage
path: root/wutil.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-04-27 13:34:51 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-04-27 13:35:32 -0700
commit3b4794ae94157408de4cac33a50522be230feee0 (patch)
tree76d26d7b62244abed8bc44f4c91a27f3bf4c03a3 /wutil.h
parent6a94b51cbadb8609580fac5c693c02ca4ab39734 (diff)
Implement atomic loading/saving of fishd file within fish, eventually
permitting removal of fishd. Universal variables test passes, others fail.
Diffstat (limited to 'wutil.h')
-rw-r--r--wutil.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/wutil.h b/wutil.h
index 347e7313..1b2f6f2b 100644
--- a/wutil.h
+++ b/wutil.h
@@ -84,7 +84,7 @@ int wunlink(const wcstring &pathname);
/**
Wide character version of perror().
*/
-void wperror(const wcstring &s);
+void wperror(const wchar_t *s);
/**
Async-safe version of perror().
@@ -161,5 +161,10 @@ int fish_wcstoi(const wchar_t *str, wchar_t ** endptr, int base);
/** Class for representing a file's inode. We use this to detect and avoid symlink loops, among other things. */
typedef std::pair<dev_t, ino_t> file_id_t;
+file_id_t file_id_for_fd(int fd);
+file_id_t file_id_for_path(const wcstring &path);
+
+extern const file_id_t kInvalidFileID;
+
#endif