diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-06-12 20:48:19 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-06-12 20:48:19 +0000 |
commit | ed22c404f78099a045f64f64cc3553db5f7035a1 (patch) | |
tree | 063ccc1ff49857ba6ebca829cb543683bca6b998 | |
parent | 1b8c2838a308ac7536362a219f710c244fe529b9 (diff) |
removed Mac OS X-specific fields, they weren't used anyway
svn path=/trunk/externals/hcs/; revision=5203
-rw-r--r-- | passwd-help.pd | 52 | ||||
-rw-r--r-- | passwd.c | 17 |
2 files changed, 27 insertions, 42 deletions
diff --git a/passwd-help.pd b/passwd-help.pd index b23a7f5..ecfbbaa 100644 --- a/passwd-help.pd +++ b/passwd-help.pd @@ -1,4 +1,4 @@ -#N canvas 47 122 698 474 10; +#N canvas 47 122 547 395 10; #X obj 98 40 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 0 1; #X floatatom 95 63 5 0 0 0 User_ID - -; @@ -11,46 +11,36 @@ #X obj 94 167 passwd; #X text 37 20 fetch passwd data based on UID or username; #X msg 271 83 symbol hans; -#X symbolatom 10 359 0 0 0 3 username - -; -#X symbolatom 76 358 0 0 0 3 password - -; -#X floatatom 142 358 0 0 0 3 uid - -; -#X floatatom 173 358 0 0 0 3 gid - -; -#X symbolatom 278 366 0 0 0 3 user_access_class - -; -#X symbolatom 300 331 0 0 0 3 gecos - -; -#X symbolatom 337 297 0 0 0 3 home_folder - -; -#X symbolatom 376 264 0 0 0 3 shell - -; +#X symbolatom 22 318 0 0 0 3 username - -; +#X symbolatom 88 317 0 0 0 3 password - -; +#X floatatom 184 317 0 0 0 3 uid - -; +#X floatatom 215 317 0 0 0 3 gid - -; +#X symbolatom 248 317 0 0 0 3 gecos - -; +#X symbolatom 335 282 0 0 0 3 home_folder - -; +#X symbolatom 395 250 0 0 0 3 shell - -; #X msg 269 105 symbol trash; #X text 361 105 ignore bad usernames; #X text 363 83 use a symbolic username; -#X obj 76 224 unpack symbol symbol float float float float symbol symbol -symbol symbol float float; -#X floatatom 204 428 6 0 0 3 password_change_days - -; -#X floatatom 226 395 6 0 0 3 password_change_seconds - -; -#X floatatom 508 300 6 0 0 3 account_expire_days - -; -#X floatatom 530 267 6 0 0 3 account_expire_seconds - -; #X msg 269 56 symbol daemon; #X text 188 195 bang on right inlet if no match; #X obj 138 195 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; +#X obj 76 224 unpack symbol symbol float float symbol symbol symbol +; #X connect 0 0 1 0; #X connect 1 0 7 0; #X connect 3 0 7 1; #X connect 4 0 7 0; #X connect 7 0 2 0; -#X connect 7 0 21 0; -#X connect 7 1 28 0; +#X connect 7 0 23 0; +#X connect 7 1 22 0; #X connect 9 0 7 0; -#X connect 18 0 7 0; -#X connect 21 0 10 0; -#X connect 21 1 11 0; -#X connect 21 2 12 0; -#X connect 21 3 13 0; -#X connect 21 4 22 0; -#X connect 21 5 23 0; -#X connect 21 6 14 0; -#X connect 21 7 15 0; -#X connect 21 8 16 0; -#X connect 21 9 17 0; -#X connect 21 10 24 0; -#X connect 21 11 25 0; -#X connect 26 0 7 0; +#X connect 17 0 7 0; +#X connect 20 0 7 0; +#X connect 23 0 10 0; +#X connect 23 1 11 0; +#X connect 23 2 12 0; +#X connect 23 3 13 0; +#X connect 23 4 14 0; +#X connect 23 5 15 0; +#X connect 23 6 16 0; @@ -39,7 +39,7 @@ #include <string.h> -static char *version = "$Revision: 1.2 $"; +static char *version = "$Revision: 1.3 $"; t_int passwd_instance_count; @@ -66,7 +66,7 @@ static void passwd_output(t_passwd *x) { DEBUG(post("passwd_output");); struct passwd *passwd_pointer; - t_atom output_data[11]; + t_atom output_data[6]; #ifdef _WIN32 /* TODO: implement for Windows! */ @@ -84,16 +84,11 @@ static void passwd_output(t_passwd *x) SETSYMBOL(output_data, gensym(passwd_pointer->pw_passwd)); SETFLOAT(output_data + 1, passwd_pointer->pw_uid); SETFLOAT(output_data + 2, passwd_pointer->pw_gid); - SETFLOAT(output_data + 3, passwd_pointer->pw_change / 86400); - SETFLOAT(output_data + 4, passwd_pointer->pw_change % 86400); - SETSYMBOL(output_data + 5, gensym(passwd_pointer->pw_class)); - SETSYMBOL(output_data + 6, gensym(passwd_pointer->pw_gecos)); - SETSYMBOL(output_data + 7, gensym(passwd_pointer->pw_dir)); - SETSYMBOL(output_data + 8, gensym(passwd_pointer->pw_shell)); - SETFLOAT(output_data + 9, (passwd_pointer->pw_expire / 86400)); - SETFLOAT(output_data + 10, (passwd_pointer->pw_expire % 86400)); + SETSYMBOL(output_data + 3, gensym(passwd_pointer->pw_gecos)); + SETSYMBOL(output_data + 4, gensym(passwd_pointer->pw_dir)); + SETSYMBOL(output_data + 5, gensym(passwd_pointer->pw_shell)); outlet_anything(x->x_data_outlet, gensym(passwd_pointer->pw_name), - 11, output_data); + 6, output_data); } else { |