comparison doc/interpreter/system.texi @ 2475:1d7925d6bede

[project @ 1996-11-07 04:36:00 by jwe]
author jwe
date Thu, 07 Nov 1996 04:46:54 +0000
parents f201716926bb
children 29cd3862a9dc
comparison
equal deleted inserted replaced
2474:b8c53143581b 2475:1d7925d6bede
14 @menu 14 @menu
15 * Timing Utilities:: 15 * Timing Utilities::
16 * Filesystem Utilities:: 16 * Filesystem Utilities::
17 * Interacting with the OS:: 17 * Interacting with the OS::
18 * Password Database Functions:: 18 * Password Database Functions::
19 * Group Database Functions::
19 * System Information:: 20 * System Information::
20 * Other Functions:: 21 * Other Functions::
21 @end menu 22 @end menu
22 23
23 @node Timing Utilities, Filesystem Utilities, System Utilities, System Utilities 24 @node Timing Utilities, Filesystem Utilities, System Utilities, System Utilities
398 Return the process id of the current process. 399 Return the process id of the current process.
399 @end deftypefn 400 @end deftypefn
400 401
401 @deftypefn {Built-in Function} {} getppid () 402 @deftypefn {Built-in Function} {} getppid ()
402 Return the process id of the parent process. 403 Return the process id of the parent process.
404 @end deftypefn
405
406 @deftypefn {Built-in Function} {} geteuid ()
407 Return the effective user id of the current process.
408 @end deftypefn
409
410 @deftypefn {Built-in Function} {} getuid ()
411 Return the real user id of the current process.
412 @end deftypefn
413
414 @deftypefn {Built-in Function} {} getegid ()
415 Return the effective group id of the current process.
416 @end deftypefn
417
418 @deftypefn {Built-in Function} {} getgid ()
419 Return the real group id of the current process.
403 @end deftypefn 420 @end deftypefn
404 421
405 @deftypefn {Built-in Function} {} mkfifo 422 @deftypefn {Built-in Function} {} mkfifo
406 Create a FIFO special file. 423 Create a FIFO special file.
407 @end deftypefn 424 @end deftypefn
529 The @code{dir} and @code{ls} commands are implemented by calling your 546 The @code{dir} and @code{ls} commands are implemented by calling your
530 system's directory listing command, so the available options may vary 547 system's directory listing command, so the available options may vary
531 from system to system. 548 from system to system.
532 @end deffn 549 @end deffn
533 550
534 @node Password Database Functions, System Information, Interacting with the OS, System Utilities 551 @node Password Database Functions, Group Database Functions, Interacting with the OS, System Utilities
535 @section Password Database Functions 552 @section Password Database Functions
536 553
537 Octave's password database functions return information in a structure 554 Octave's password database functions return information in a structure
538 with the following fields. 555 with the following fields.
539 556
583 600
584 @deftypefn {Loadable Function} {} endpwent () 601 @deftypefn {Loadable Function} {} endpwent ()
585 Close the password database. 602 Close the password database.
586 @end deftypefn 603 @end deftypefn
587 604
588 @node System Information, Other Functions, Password Database Functions, System Utilities 605 @node Group Database Functions, System Information, Password Database Functions, System Utilities
606 @section Group Database Functions
607
608 Octave's group database functions return information in a structure
609 with the following fields.
610
611 @table @code
612 @item name
613 The user name.
614
615 @item passwd
616 The encrypted password, if available.
617
618 @item gid
619 The numeric group id.
620
621 @item mem
622 The members of the group.
623 @end table
624
625 @deftypefn {Loadable Function} {group_struct =} getgrent ()
626 Return an entry from the group database, opening it if necessary.
627 Once the end of the data has been reached, @code{getgrent} returns 0.
628 @end deftypefn
629
630 @deftypefn {Loadable Function} {group_struct =} getgrgid (@var{gid}).
631 Return the first entry from the group database with the group ID
632 @var{gid}. If the group ID does not exist in the database,
633 @code{getgrgid} returns 0.
634 @end deftypefn
635
636 @deftypefn {Loadable Function} {group_struct =} getgrnam (@var{name})
637 Return the first entry from the group database with the group name
638 @var{name}. If the group name does not exist in the database,
639 @code{getgrname} returns 0.
640 @end deftypefn
641
642 @deftypefn {Loadable Function} {} setgrent ()
643 Return the internal pointer to the beginning of the group database.
644 @end deftypefn
645
646 @deftypefn {Loadable Function} {} endgrent ()
647 Close the group database.
648 @end deftypefn
649
650 @node System Information, Other Functions, Group Database Functions, System Utilities
589 @section System Information 651 @section System Information
590 652
591 @deftypefn {Built-in Function} {} computer () 653 @deftypefn {Built-in Function} {} computer ()
592 Returns a string of the form @var{cpu}-@var{vendor}-@var{os} that 654 Returns a string of the form @var{cpu}-@var{vendor}-@var{os} that
593 identifies the kind of computer Octave is running on. For example, 655 identifies the kind of computer Octave is running on. For example,