utility functions More...
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
#include <math.h>
#include <stdio.h>
Go to the source code of this file.
Defines #define UTIL_C #define BASE64_CHARS "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" #define TZ "%z" #define DO_AS_CALLER(action) Functions int strcmp (const char *s1, const char *s2) int touch (char *path, char *str) char * base64 (const unsigned char *str, int n) convert the input to base64utility functions
Definition in file util.c.
Define Documentation #define DO_AS_CALLER ( action ) Value:struct fuse_context* __context = fuse_get_context(); \ gid_t __gid = getegid(); \ uid_t __uid = geteuid(); \ setegid(__context->gid); \ seteuid(__context->uid); \ action \ seteuid(__uid); \ setegid(__gid);
Definition at line 327 of file util.c.
Function Documentation char* base64 ( const unsigned char * str, int n )convert the input to base64
Definition at line 38 of file util.c.
char* concat ( char * a, char * b )Definition at line 279 of file util.c.
get the command line corresponding to a process
Definition at line 80 of file util.c.
look for the limit "--" in argv argument number arguments
Definition at line 218 of file util.c.
get a string representing the time in ISO8601 format
Definition at line 136 of file util.c.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4