Kaynağa Gözat

add errno setting to stub utmpxname function

Rich Felker 9 yıl önce
ebeveyn
işleme
19df86cbb3
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      src/legacy/utmpx.c

+ 2 - 0
src/legacy/utmpx.c

@@ -1,5 +1,6 @@
 #include <utmpx.h>
 #include <stddef.h>
+#include <errno.h>
 #include "libc.h"
 
 void endutxent(void)
@@ -36,6 +37,7 @@ void updwtmpx(const char *f, const struct utmpx *u)
 
 int __utmpxname(const char *f)
 {
+	errno = ENOTSUP;
 	return -1;
 }