Sponsored Content
Full Discussion: Which is more expensive ?
Top Forums Programming Which is more expensive ? Post 302131715 by cbkihong on Monday 13th of August 2007 10:12:13 AM
Old 08-13-2007
Quote:
Originally Posted by vino
Code:
#2
        for (int fd = 0; fd <= 128; ++fd)
        {
            close(fd);
            close(fd+1);
            close(fd+2);
            close(fd+3);
            close(fd+4);
            close(fd+5);
            close(fd+6);
            close(fd+7);
        }

But isn't that this will only close fd up to 135? Smilie
 

2 More Discussions You Might Find Interesting

1. Programming

calling pthread_self (on ubuntu), expensive?

Hi all, Is anyone aware of what operations are involved when a call to pthread_self() is made, obtaining the unique thread ID on a Ubuntu system (or even any Linux flavour)? Specifically, to retrieve the thread id, is there any locking required or atomic operations? I'm building an... (11 Replies)
Discussion started by: gorga
11 Replies

2. What is on Your Mind?

Very Expensive Running Shoes

You really should not need one third of the entire US budget to buy a pair of running shoes... even if they are name brand. What have these guys been smoking? It reminds me of the old joke... Customer: At those prices you aren't going to sell many shoes. Salesman: Ah, but all we need to do is... (4 Replies)
Discussion started by: Perderabo
4 Replies
vino-preferences(1)						   User Commands					       vino-preferences(1)

NAME
vino-preferences - remote desktop configuration SYNOPSIS
vino-preferences [gnome-std-options] DESCRIPTION
vino-preferences is the configuration dialog for remote desktop server. vino-preferences provides a GUI to configure options of remote desktop server, include view-only mode and control mode for desktop sharing. And it also be used to configure the security mode and specify user password. There are some check boxes in vino preferences dialog. the four check boxes are divided into 2 groups: Sharing and Security. The Sharing group controls if the server allow other users to view your desktop and if the server allow other users to control your desktop. The Secu- rity group control what kind of security method the server will take when there is a remote request. Vino server can be configured to ask user confirm every time there is a connection request, and the server also can be configured to require users to provide password for the remote access. A password editbox is provided to input server password. This password will be saved in gnome keyring. OPTIONS
The following options are supported: gnome-std-options Standard options available for use with most GNOME applications. See gnome-std-options(5) for more information. EXAMPLES
Example 1: Start the vino preferences dialog from command line example% vino-preferences FILES
The following files are used by this application: /usr/bin/vino-preferences The executable file for the vino preferences application. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-remote-desktop | +-----------------------------+-----------------------------+ |Interface stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
vino-passwd(1), vino-server(1), attributes(5), gnome-std-options(5) NOTES
Written by Steven Zhang, Sun Microsystems Inc., 2006, 2007. Updated by Halton Huo, Sun Microsystems Inc., 2008. SunOS 5.11 15 Aug 2008 vino-preferences(1)
All times are GMT -4. The time now is 04:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy