X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Futmpx.h;h=0429014d854fc32d0355d4fe5a18db45c2c530fb;hb=1ef37aa00ea830dfda76e04e3d941cafa74d8b76;hp=f0c3b01370c7b5a4b87bd6010929e298993d1924;hpb=a1527a0c3ed72df3c1a22f774c8618a486b87b94;p=musl diff --git a/include/utmpx.h b/include/utmpx.h index f0c3b013..0429014d 100644 --- a/include/utmpx.h +++ b/include/utmpx.h @@ -14,8 +14,7 @@ extern "C" { #include -struct utmpx -{ +struct utmpx { short ut_type; pid_t ut_pid; char ut_line[32]; @@ -39,10 +38,11 @@ struct utmpx *getutxline(const struct utmpx *); struct utmpx *pututxline(const struct utmpx *); void setutxent(void); -#if defined(_BSD_SOURCE) | defined(_GNU_SOURCE) +#if defined(_BSD_SOURCE) || defined(_GNU_SOURCE) #define e_exit __e_exit #define e_termination __e_termination void updwtmpx(const char *, const struct utmpx *); +int utmpxname(const char *); #endif #define EMPTY 0