Update of /cvsroot/pure-data/externals/hcs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20590
Modified Files: passwd.c passwd-help.pd Log Message: removed Mac OS X-specific fields, they weren't used anyway
Index: passwd-help.pd =================================================================== RCS file: /cvsroot/pure-data/externals/hcs/passwd-help.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** passwd-help.pd 12 Jun 2006 19:59:02 -0000 1.1 --- passwd-help.pd 12 Jun 2006 20:48:19 -0000 1.2 *************** *** 1,3 **** ! #N canvas 47 122 698 474 10; #X obj 98 40 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 0 1; --- 1,3 ---- ! #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; *************** *** 12,36 **** #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 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 connect 0 0 1 0; #X connect 1 0 7 0; --- 12,31 ---- #X text 37 20 fetch passwd data based on UID or username; #X msg 271 83 symbol hans; ! #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 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; *************** *** 38,56 **** #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 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; --- 33,46 ---- #X connect 4 0 7 0; #X connect 7 0 2 0; ! #X connect 7 0 23 0; ! #X connect 7 1 22 0; #X connect 9 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;
Index: passwd.c =================================================================== RCS file: /cvsroot/pure-data/externals/hcs/passwd.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** passwd.c 12 Jun 2006 20:40:16 -0000 1.2 --- passwd.c 12 Jun 2006 20:48:19 -0000 1.3 *************** *** 67,71 **** DEBUG(post("passwd_output");); struct passwd *passwd_pointer; ! t_atom output_data[11];
#ifdef _WIN32 --- 67,71 ---- DEBUG(post("passwd_output");); struct passwd *passwd_pointer; ! t_atom output_data[6];
#ifdef _WIN32 *************** *** 85,98 **** 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)); outlet_anything(x->x_data_outlet, gensym(passwd_pointer->pw_name), ! 11, output_data); } else --- 85,93 ---- SETFLOAT(output_data + 1, passwd_pointer->pw_uid); SETFLOAT(output_data + 2, passwd_pointer->pw_gid); ! 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), ! 6, output_data); } else