10 More Discussions You Might Find Interesting
1. Programming
Program to reverse a linked list by traversing only once. (1 Reply)
Discussion started by: VSSajjan
1 Replies
2. Programming
How to delete the last node in a single linked list given only the pointer to last node ?
Head node will not be given. (5 Replies)
Discussion started by: VSSajjan
5 Replies
3. Programming
#include<stdio.h>
#include<stdlib.h>
struct LinkedList
{
int val;
struct LinkedList *next;
}node; /*Creating a structure variable*/
typedef struct LinkedList Node;
Node *start = NULL;
int create(int i)
{
Node *temp = NULL;
if (start == NULL)
... (5 Replies)
Discussion started by: prinsh
5 Replies
4. UNIX for Advanced & Expert Users
Hi, I am programming in kernel, and I want to use a double linked list that holds infos that every process could access and modify THIS list. So, I suppose it is a 'global' variable since every process(thread) can reach it, I am wondering where to put it? by changing some of the kernel files? (1 Reply)
Discussion started by: louisTan
1 Replies
5. Programming
i have a linked list set up like
typedef struct client_list {
char *client_name;
int client_socket_fd;
struct client_list *next;
} client;
client *client_list=NULL;
before adding to the list i check if it already exists, only if it does not then i add
if (client_list==NULL... (1 Reply)
Discussion started by: omega666
1 Replies
6. Programming
i have this code
typedef struct client_list {
char *client_name;
struct client_list * next;
int client_socket_fd;
} client;
client *current, *head; head = NULL;
char *h="test";
add_client(current, h, head, &client_socket_fd);
... (24 Replies)
Discussion started by: omega666
24 Replies
7. Programming
I need C++ Code for single linked list
With operations as
1)insert at any position
2)delete any
3)change the data of any position (2 Replies)
Discussion started by: girija
2 Replies
8. Programming
is this possible, if so plz please share with me..
Correct English please, not Cyber-/Leetspeak (11 Replies)
Discussion started by: vijay_manpage
11 Replies
9. Shell Programming and Scripting
Hi I am going to migrate our datawarehouse system from HP Tru 64 Unix to the Red Hat Linux.
Inside the box, it is running around 40 cron jobs; inside each cron job, it is calling other shell script files, and the shell script files may again call other shell script files or ctl files(for... (1 Reply)
Discussion started by: franksubramania
1 Replies
10. Programming
Can any one help me in reversing the single linked list and at the same time i want to print the reversed links. (2 Replies)
Discussion started by: dhanamurthy
2 Replies
updatehome(1M) System Administration Commands updatehome(1M)
NAME
updatehome - update the home directory copy and link files for the current label
SYNOPSIS
/usr/bin/updatehome [-cirs]
DESCRIPTION
updatehome reads the user's minimum-label copy and link-control files (.copy_files and .link_files). These files contain a list of files to
be copied and symbolically linked from the user's minimum-label home directory to the user's home directory at the current label.
The Solaris Trusted Extensions dtsession program performs an updatehome whenever a newly labeled workspace is created so that the user's
favorite files are available for use. For example, the user probably wants a symbolic link to such files as .profile, .login, .cshrc,
.exrc, .mailrc, and ~/bin. The updatehome command provides a convenient mechanism for accomplishing this symlink. The user can add files to
those to be copied (.copy_files) and to those to be symbolically linked (.link_files).
OPTIONS
-c Replace existing home-directory copies at the current label. The default is to skip over existing copies.
-i Ignore errors encountered. The default aborts on error.
-r Replace existing home-directory copies or symbolic links at the current label. This option implies options -c and -s. The default is
to skip over existing copies or symbolic links.
-s Replace existing home-directory symbolic links at the current label. The default is to skip over existing symbolic links.
EXIT STATUS
Upon success, updatehome returns 0. Upon failure, updatehome returns 1 and writes diagnostic messages to standard error.
EXAMPLES
Example 1 A Sample .copy_files File
The files that are listed in .copy_files can be modified at every user's label.
.cshrc
.mailrc
.mozilla/bookmarks.html
Example 2 A Sample .link_files File
The files that are listed in .link_files can be modified at the lowest label. The changes propagate to the other labels that are available
to the user.
~/bin
.mozilla/preferences
.xrc
.rhosts
Example 3 Updating the Linked and Copied Files
The .copy_files and .link_files were updated by the user at the minimum label. At a higher label, the user refreshes the copies and the
links. No privileges are required to run the command.
% updatehome -r
FILES
$HOME/.copy_files List of files to be copied
$HOME/.link_files List of files to be symbolically linked
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWtsu |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5)
.copy_files and .link_files Files in Solaris Trusted Extensions Administrator's Procedures
NOTES
The functionality described on this manual page is available only if the system is configured with Trusted Extensions.
SunOS 5.11 20 Jul 2007 updatehome(1M)