$search
#include <sys/stat.h>#include <sys/times.h>#include <sys/types.h>#include <sys/utsname.h>#include <sys/wait.h>#include <sys/resource.h>#include <sys/time.h>#include <dirent.h>#include <errno.h>#include <fcntl.h>#include <glob.h>#include <grp.h>#include <libgen.h>#include <limits.h>#include <poll.h>#include <pwd.h>#include <signal.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <syslog.h>#include <time.h>#include <unistd.h>#include <utime.h>#include "lua.h"#include "lualib.h"#include "lauxlib.h"#include "modemuncher.c"

Go to the source code of this file.
Classes | |
| struct | mytimes |
Defines | |
| #define | doselection(L, i, S, F, d) (doselection)(L,i,sizeof(S)/sizeof(*S)-1,S,F,d) |
| #define | ENABLE_SYSLOG 1 |
| #define | lua_createtable(L, a, r) lua_newtable(L) |
| #define | LUA_FILEHANDLE "FILE*" |
| #define | lua_getfield(l, i, k) |
| #define | lua_pushinteger lua_pushnumber |
| #define | lua_setfield(l, i, k) |
| #define | MYNAME "posix" |
| #define | MYVERSION MYNAME " library for " LUA_VERSION " / " VERSION |
| #define | pushtime(L, x) lua_pushnumber(L, ((lua_Number)x)/clk_tck) |
| #define | set_const(key, value) |
Typedefs | |
| typedef void(* | Selector )(lua_State *L, int i, const void *data) |
Functions | |
| static int | aux_files (lua_State *L) |
| static void | badoption (lua_State *L, int i, const char *what, int option) |
| char * | crypt (const char *, const char *) |
| static int | dir_gc (lua_State *L) |
| static int | doselection (lua_State *L, int i, int n, const char *const S[], Selector F, const void *data) |
| static void | FgetID (lua_State *L, int i, const void *data) |
| static void | Fgetpasswd (lua_State *L, int i, const void *data) |
| static const char * | filemode (int fd) |
| static const char * | filetype (mode_t m) |
| static void | Fpathconf (lua_State *L, int i, const void *data) |
| static void | Fstat (lua_State *L, int i, const void *data) |
| static void | Fsysconf (lua_State *L, int i, const void *data) |
| static void | Ftimes (lua_State *L, int i, const void *data) |
| static int | get_clk_id_const (const char *str) |
| static int | get_rlimit_const (const char *str) |
| static int | luaL_checkoption (lua_State *L, int narg, const char *def, const char *const lst[]) |
| LUALIB_API int | luaopen_posix (lua_State *L) |
| static int | myfclose (lua_State *L) |
| static gid_t | mygetgid (lua_State *L, int i) |
| static uid_t | mygetuid (lua_State *L, int i) |
| static int | Paccess (lua_State *L) |
| static int | Pbasename (lua_State *L) |
| static int | Pchdir (lua_State *L) |
| static int | Pchmod (lua_State *L) |
| static int | Pchown (lua_State *L) |
| static int | Pclock_getres (lua_State *L) |
| static int | Pclock_gettime (lua_State *L) |
| static int | Pcloselog (lua_State *L) |
| static int | Pcrypt (lua_State *L) |
| static int | Pctermid (lua_State *L) |
| static int | Pdir (lua_State *L) |
| static int | Pdirname (lua_State *L) |
| static int | Pdup (lua_State *L) |
| static int | Perrno (lua_State *L) |
| static int | Pexec (lua_State *L) |
| static int | Pexecp (lua_State *L) |
| static int | Pfdopen (lua_State *L) |
| static int | Pfileno (lua_State *L) |
| static int | Pfiles (lua_State *L) |
| static int | Pfork (lua_State *L) |
| static int | Pgetcwd (lua_State *L) |
| static int | Pgetenv (lua_State *L) |
| static int | Pgetgroup (lua_State *L) |
| static int | Pgetlogin (lua_State *L) |
| static int | Pgetpasswd (lua_State *L) |
| static int | Pgetpid (lua_State *L) |
| static int | Pgetrlimit (lua_State *L) |
| static int | Pgettimeofday (lua_State *L) |
| static int | Pglob (lua_State *L) |
| static int | Pgmtime (lua_State *L) |
| static int | Phostid (lua_State *L) |
| static int | Pkill (lua_State *L) |
| static int | Plink (lua_State *L) |
| static int | Plocaltime (lua_State *L) |
| static int | Pmkdir (lua_State *L) |
| static int | Pmkfifo (lua_State *L) |
| static int | Popenlog (lua_State *L) |
| static int | Ppathconf (lua_State *L) |
| static int | Ppipe (lua_State *L) |
| static int | Ppoll (lua_State *L) |
| static int | Preadlink (lua_State *L) |
| static int | Prmdir (lua_State *L) |
| static int | Psetenv (lua_State *L) |
| static int | Psetlogmask (lua_State *L) |
| static int | Psetpid (lua_State *L) |
| static int | Psetrlimit (lua_State *L) |
| static int | Psleep (lua_State *L) |
| static int | Pstat (lua_State *L) |
| static int | Pstrftime (lua_State *L) |
| static int | Psysconf (lua_State *L) |
| static int | Psyslog (lua_State *L) |
| static int | Ptime (lua_State *L) |
| static int | Ptimes (lua_State *L) |
| static int | Pttyname (lua_State *L) |
| static int | Pumask (lua_State *L) |
| static int | Puname (lua_State *L) |
| static int | Punlink (lua_State *L) |
| static int | pusherror (lua_State *L, const char *info) |
| static int | pushfile (lua_State *L, int id, const char *mode) |
| static void | pushmode (lua_State *L, mode_t mode) |
| static int | pushresult (lua_State *L, int i, const char *info) |
| static int | Putime (lua_State *L) |
| static int | Pwait (lua_State *L) |
| static int | runexec (lua_State *L, int use_shell) |
Variables | |
| static const int | Kpathconf [] |
| static const int | Krlimit [] |
| static const int | Ksysconf [] |
| struct { | |
| mode_t b | |
| char c | |
| } | M [] |
| static const luaL_reg | R [] |
| static const char *const | SgetID [] |
| static const char *const | Sgetpasswd [] |
| static const char *const | Spathconf [] |
| static const char *const | Srlimit [] |
| static const char *const | Sstat [] |
| static const char *const | Ssysconf [] |
| static const char *const | Stimes [] |
| #define doselection | ( | L, | |||
| i, | |||||
| S, | |||||
| F, | |||||
| d | ) | (doselection)(L,i,sizeof(S)/sizeof(*S)-1,S,F,d) |
| #define MYVERSION MYNAME " library for " LUA_VERSION " / " VERSION |
| #define pushtime | ( | L, | |||
| x | ) | lua_pushnumber(L, ((lua_Number)x)/clk_tck) |
| #define set_const | ( | key, | |||
| value | ) |
| typedef void(* Selector)(lua_State *L, int i, const void *data) |
| static void badoption | ( | lua_State * | L, | |
| int | i, | |||
| const char * | what, | |||
| int | option | |||
| ) | [static] |
| char* crypt | ( | const char * | , | |
| const char * | ||||
| ) |
| static int doselection | ( | lua_State * | L, | |
| int | i, | |||
| int | n, | |||
| const char *const | S[], | |||
| Selector | F, | |||
| const void * | data | |||
| ) | [static] |
| static void FgetID | ( | lua_State * | L, | |
| int | i, | |||
| const void * | data | |||
| ) | [static] |
| static void Fgetpasswd | ( | lua_State * | L, | |
| int | i, | |||
| const void * | data | |||
| ) | [static] |
| static void Fpathconf | ( | lua_State * | L, | |
| int | i, | |||
| const void * | data | |||
| ) | [static] |
| static void Fstat | ( | lua_State * | L, | |
| int | i, | |||
| const void * | data | |||
| ) | [static] |
| static void Fsysconf | ( | lua_State * | L, | |
| int | i, | |||
| const void * | data | |||
| ) | [static] |
| static void Ftimes | ( | lua_State * | L, | |
| int | i, | |||
| const void * | data | |||
| ) | [static] |
| static int luaL_checkoption | ( | lua_State * | L, | |
| int | narg, | |||
| const char * | def, | |||
| const char *const | lst[] | |||
| ) | [static] |
| static int Paccess | ( | lua_State * | L | ) | [static] |
| static int Pbasename | ( | lua_State * | L | ) | [static] |
| static int Pchmod | ( | lua_State * | L | ) | [static] |
| static int Pchown | ( | lua_State * | L | ) | [static] |
| static int Pcloselog | ( | lua_State * | L | ) | [static] |
| static int Pcrypt | ( | lua_State * | L | ) | [static] |
| static int Pdirname | ( | lua_State * | L | ) | [static] |
| static int Pexec | ( | lua_State * | L | ) | [static] |
| static int Pexecp | ( | lua_State * | L | ) | [static] |
| static int Pfdopen | ( | lua_State * | L | ) | [static] |
| static int Pfileno | ( | lua_State * | L | ) | [static] |
| static int Pgetenv | ( | lua_State * | L | ) | [static] |
| static int Pgetgroup | ( | lua_State * | L | ) | [static] |
| static int Pgetpasswd | ( | lua_State * | L | ) | [static] |
| static int Pgetpid | ( | lua_State * | L | ) | [static] |
| static int Pgetrlimit | ( | lua_State * | L | ) | [static] |
| static int Pkill | ( | lua_State * | L | ) | [static] |
| static int Plink | ( | lua_State * | L | ) | [static] |
| static int Popenlog | ( | lua_State * | L | ) | [static] |
| static int Ppathconf | ( | lua_State * | L | ) | [static] |
| static int Ppoll | ( | lua_State * | L | ) | [static] |
| static int Preadlink | ( | lua_State * | L | ) | [static] |
| static int Psetenv | ( | lua_State * | L | ) | [static] |
| static int Psetlogmask | ( | lua_State * | L | ) | [static] |
| static int Psetpid | ( | lua_State * | L | ) | [static] |
| static int Psetrlimit | ( | lua_State * | L | ) | [static] |
| static int Psleep | ( | lua_State * | L | ) | [static] |
| static int Pstat | ( | lua_State * | L | ) | [static] |
| static int Psysconf | ( | lua_State * | L | ) | [static] |
| static int Psyslog | ( | lua_State * | L | ) | [static] |
| static int Ptimes | ( | lua_State * | L | ) | [static] |
| static int Pttyname | ( | lua_State * | L | ) | [static] |
| static int Puname | ( | lua_State * | L | ) | [static] |
| static int pusherror | ( | lua_State * | L, | |
| const char * | info | |||
| ) | [static] |
| static int pushfile | ( | lua_State * | L, | |
| int | id, | |||
| const char * | mode | |||
| ) | [static] |
| static void pushmode | ( | lua_State * | L, | |
| mode_t | mode | |||
| ) | [static] |
| static int pushresult | ( | lua_State * | L, | |
| int | i, | |||
| const char * | info | |||
| ) | [static] |
| static int Putime | ( | lua_State * | L | ) | [static] |
| static int runexec | ( | lua_State * | L, | |
| int | use_shell | |||
| ) | [static] |
const int Kpathconf[] [static] |
const int Krlimit[] [static] |
const int Ksysconf[] [static] |
struct { ... } M[] [static] |
const char* const SgetID[] [static] |
const char* const Sgetpasswd[] [static] |
const char* const Spathconf[] [static] |
const char* const Srlimit[] [static] |
const char* const Sstat[] [static] |
const char* const Ssysconf[] [static] |