tmux  3.2a
About: tmux is a terminal multiplexer that lets you switch easily between several programs in one terminal.
  Fossies Dox: tmux-3.2a.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

osdep-dragonfly.c File Reference
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/sysctl.h>
#include <sys/user.h>
#include <err.h>
#include <errno.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Include dependency graph for osdep-dragonfly.c:

Go to the source code of this file.

Macros

#define nitems(_a)   (sizeof((_a)) / sizeof((_a)[0]))
 
#define is_runnable(p)    ((p)->kp_stat == SACTIVE || (p)->kp_stat == SIDL)
 
#define is_stopped(p)    ((p)->kp_stat == SSTOP || (p)->kp_stat == SZOMB)
 

Functions

struct kinfo_proc * cmp_procs (struct kinfo_proc *, struct kinfo_proc *)
 
char * osdep_get_name (int, char *)
 
char * osdep_get_cwd (int)
 
struct event_base * osdep_event_init (void)
 

Macro Definition Documentation

◆ is_runnable

#define is_runnable (   p)     ((p)->kp_stat == SACTIVE || (p)->kp_stat == SIDL)

Definition at line 40 of file osdep-dragonfly.c.

◆ is_stopped

#define is_stopped (   p)     ((p)->kp_stat == SSTOP || (p)->kp_stat == SZOMB)

Definition at line 42 of file osdep-dragonfly.c.

◆ nitems

#define nitems (   _a)    (sizeof((_a)) / sizeof((_a)[0]))

Definition at line 37 of file osdep-dragonfly.c.

Function Documentation

◆ cmp_procs()

static struct kinfo_proc * cmp_procs ( struct kinfo_proc *  p1,
struct kinfo_proc *  p2 
)

Definition at line 46 of file osdep-dragonfly.c.

References is_runnable, and is_stopped.

Referenced by osdep_get_name().

◆ osdep_event_init()

struct event_base* osdep_event_init ( void  )

Definition at line 129 of file osdep-dragonfly.c.

◆ osdep_get_cwd()

char* osdep_get_cwd ( int  fd)

Definition at line 123 of file osdep-dragonfly.c.

◆ osdep_get_name()

char* osdep_get_name ( int  fd,
char *  tty 
)

Definition at line 69 of file osdep-dragonfly.c.

References cmp_procs(), name, and nitems.