aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-04-13 10:58:50 +0200
committerMattias Andrée <maandree@kth.se>2024-04-13 10:58:50 +0200
commit220bce53e145684c41476e85dbab319f5da48f13 (patch)
treebb81f3bec725cd3297e96010894778971323c261
parentAdd libsimple_getcwd with e- and en- versions (diff)
downloadlibsimple-220bce53e145684c41476e85dbab319f5da48f13.tar.gz
libsimple-220bce53e145684c41476e85dbab319f5da48f13.tar.bz2
libsimple-220bce53e145684c41476e85dbab319f5da48f13.tar.xz
Add assume_aligned to libsimple_getcwd
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libsimple/path.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libsimple/path.h b/libsimple/path.h
index 99aea28..0e6ad7b 100644
--- a/libsimple/path.h
+++ b/libsimple/path.h
@@ -6,7 +6,7 @@
*
* @return The current working directory, or `NULL` on failure
*/
-LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__)))
+LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __assume_aligned__(1), __warn_unused_result__)))
char *libsimple_getcwd(void); /* TODO man */
/**
@@ -15,7 +15,7 @@ char *libsimple_getcwd(void); /* TODO man */
* @param status Exit value in case of failure
* @return The current working directory
*/
-LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__, __returns_nonnull__)))
+LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __assume_aligned__(1), __warn_unused_result__, __returns_nonnull__)))
char *libsimple_engetcwd(int status); /* TODO man */
/**
@@ -23,7 +23,7 @@ char *libsimple_engetcwd(int status); /* TODO man */
*
* @return The current working directory
*/
-LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__, __returns_nonnull__)))
+LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __assume_aligned__(1), __warn_unused_result__, __returns_nonnull__)))
inline char *
libsimple_egetcwd(void) /* TODO man */
{