forked from mirror/dwm
Compare commits
2 commits
230bb0de2a
...
6fb61bb9fc
Author | SHA1 | Date | |
---|---|---|---|
6fb61bb9fc | |||
e752671fda |
1 changed files with 12 additions and 0 deletions
|
@ -10,9 +10,21 @@
|
||||||
* I'm doing the do{}while(); trick because Linux (what I'm running) is not
|
* I'm doing the do{}while(); trick because Linux (what I'm running) is not
|
||||||
* POSIX compilant and so lstat() cannot be trusted on /proc entries
|
* POSIX compilant and so lstat() cannot be trusted on /proc entries
|
||||||
*
|
*
|
||||||
|
* See Also:
|
||||||
|
* man 2 stat #TODO: Figure this out on linux
|
||||||
|
*
|
||||||
|
* According to POSIX.1-2001, lstat() on a symbolic link need return
|
||||||
|
valid information only in the st_size field and the file type of
|
||||||
|
the st_mode field of the stat structure. POSIX.1-2008 tightens
|
||||||
|
the specification, requiring lstat() to return valid information
|
||||||
|
in all fields except the mode bits in st_mode.
|
||||||
|
*
|
||||||
* @return char* the path of the current executable
|
* @return char* the path of the current executable
|
||||||
*/
|
*/
|
||||||
char *get_dwm_path(){
|
char *get_dwm_path(){
|
||||||
|
return "/run/current-system/sw/bin/dwm";
|
||||||
|
|
||||||
|
// https://en.wikibooks.org/wiki/C_Programming/POSIX_Reference/sys/stat.h#Member_types
|
||||||
struct stat s;
|
struct stat s;
|
||||||
int r, length, rate = 42;
|
int r, length, rate = 42;
|
||||||
char *path = NULL;
|
char *path = NULL;
|
||||||
|
|
Loading…
Reference in a new issue