Sponsored Content
Special Forums UNIX Desktop Questions & Answers Which is your favourite desktop? Post 302224676 by broli on Wednesday 13th of August 2008 04:24:17 PM
Old 08-13-2008
fluxbox FTW!!!!!
 

8 More Discussions You Might Find Interesting

1. Solaris

i cant get to my desktop

i just tryed to install solaris 10.. it installed fine.. but when i restarted it and tried to use it.. i get a message that says: The X server cannot be started on display :0... what do i do? :confused: (5 Replies)
Discussion started by: hiimcody1
5 Replies

2. UNIX for Dummies Questions & Answers

Cant get into desktop

I am a newb linux user. And i am running suse 9.3 pro. When i first installed it a couple of days ago, it booted into the desktop fine the first four or five times. And not when i turn on my computer and boot linux and loads the devices, then it prompts me... UserName: Password: (which... (1 Reply)
Discussion started by: derekmpage
1 Replies

3. UNIX and Linux Applications

desktop apperances

i want to change my desktop to a darker look been to gnomelook.org and ubuntulook.org even deviant art but seem not able to find anything i like is there anybody out there that might be able to steer me into the right direction ? i know about how gtk works browsed what is available out there but... (1 Reply)
Discussion started by: ksnovice
1 Replies

4. What is on Your Mind?

Which OS you use for Desktop

I am on Solaris 10 cat /etc/release Solaris 10 10/09 s10x_u8wos_08a X86 Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 16 September 2009 (16 Replies)
Discussion started by: solaris_user
16 Replies

5. UNIX Desktop Questions & Answers

Which is best OS for Desktop

We are going to use Linux Desktop systems. Which one will be the best option ? I prefer CentOS , but in CentOS which one ? I heard fedora will take more Ram space..!! is it ? P.S 1. Users are developers , with eclipse , java , tomcat webserver etc. 2. System Configuration ~: 2GB ,... (8 Replies)
Discussion started by: linuxadmin
8 Replies

6. What is on Your Mind?

What is your favourite movie at the moment?

Hi, guys. What is your favourite movie at the moment? Which movie are you watching? I am watching the Thor:) (17 Replies)
Discussion started by: Tinna
17 Replies

7. What is on Your Mind?

Favourite Games console

So what is everyones all time favourite games console and why do you like it? (Please - no comments on why they are better than others as that would be opinion based and cause arguments, positive comments only) (28 Replies)
Discussion started by: Tommyk
28 Replies

8. What is on Your Mind?

Your favourite computer games....

Hi all, there have been a tremendous evolution in the computer games from games like Tetris or DAVE or Prince of Persia or wolf3d... to Call of Duty or BattleField or tomb raider etc etc so let us know the games which you liked the most.... you can also mention about the gaming rig you... (32 Replies)
Discussion started by: vivek d r
32 Replies
FTW(3)							     Linux Programmer's Manual							    FTW(3)

NAME
ftw, nftw - file tree walk SYNOPSIS
#include <ftw.h> int ftw(const char *dir, int (*fn)(const char *file, const struct stat *sb, int flag), int depth); int nftw(const char *dir, int (*fn)(const char *file, const struct stat *sb, int flag, struct FTW *s), int depth, int flags); DESCRIPTION
ftw() walks through the directory tree starting from the indicated directory dir. For each found entry in the tree, it calls fn() with the full pathname of the entry, a pointer to the stat(2) structure for the entry and an int flag, which value will be one of the following: FTW_F Item is a normal file FTW_D Item is a directory FTW_DNR Item is a directory which can't be read FTW_SL Item is a symbolic link FTW_NS The stat failed on the item which is not a symbolic link If the item is a symbolic link and stat failed, XPG4v2 states that it is undefined whether FTW_NS or FTW_SL is used. ftw() recursively calls itself for traversing found directories, handling a directory before its files or subdirectories. To avoid using up all a program's file descriptors, the depth specifies the number of simultaneous open directories. When the depth is exceeded, ftw() will become slower because directories have to be closed and reopened. ftw() uses at most one file descriptor for each level in the file hierarchy. To stop the tree walk, fn() returns a non-zero value; this value will become the return value of ftw(). Otherwise, ftw() will continue until it has traversed the entire tree, in which case it will return zero, or until it hits an error other than EACCES (such as a malloc(3) failure), in which case it will return -1. Because ftw() uses dynamic data structures, the only safe way to exit out of a tree walk is to return a non-zero value. To handle inter- rupts, for example, mark that the interrupt occurred and return a non-zero value--don't use longjmp(3) unless the program is going to ter- minate. The function nftw() does precisely the same as ftw(), except that it has one additional argument flags (and calls the supplied function with one more argument). This flags argument is an OR of zero or more of the following flags: FTW_CHDIR If set, do a chdir() to each directory before handling its contents. FTW_DEPTH If set, do a depth-first search, that is, call the function for the directory itself only after handling the contents of the direc- tory and its subdirectories. FTW_MOUNT If set, stay within the same file system. FTW_PHYS If set, do not follow symbolic links. (This is what you want.) If not set, symbolic links are followed, but no file is reported twice. If FTW_PHYS is not set, but FTW_DEPTH is set, then the function fn() is never called for a directory that would be a descendant of itself. The function fn() is called with four arguments: the pathname of the reported entry, a pointer to a struct stat for this entry, an integer describing its type, and a pointer to a struct FTW. The type will be one of the following: FTW_F, FTW_D, FTW_DNR, FTW_SL, FTW_NS (with meaning as above; FTW_SL occurs only with FTW_PHYS set) or FTW_DP Item is a directory and all its descendants have been handled already. (This occurs only with FTW_DEPTH set.) FTW_SLN Item is a symbolic link pointing to a nonexisting file. (This occurs only with FTW_PHYS unset.) The struct FTW pointed at by the fourth argument to fn() has at least the fields base, the offset of the item's filename in the pathname given as first argument of fn(), and level, the depth of the item relative to the starting point (which has depth 0). NOTES
The function nftw() and the use of FTW_SL with ftw() were introduced in XPG4v2. On some systems ftw() will never use FTW_SL, on other systems FTW_SL occurs only for symbolic links that do not point to an existing file, and again on other systems ftw() will use FTW_SL for each symbolic link. For predictable control, use nftw(). Under Linux, libc4 and libc5 and glibc 2.0.6 will use FTW_F for all objects (files, symbolic links, fifos, etc) that can be stat'ed but are not a directory. The function nftw() is available since glibc 2.1. CONFORMING TO
AES, SVID2, SVID3, XPG2, XPG3, XPG4, XPG4v2. SEE ALSO
stat(2) Linux 1999-06-25 FTW(3)
All times are GMT -4. The time now is 05:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy