Sponsored Content
The Lounge What is on Your Mind? Your favourite computer games.... Post 302855061 by csorhand on Thursday 19th of September 2013 01:37:49 AM
Old 09-19-2013
DOTA (Defense Of The Ancient) for me..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

games

i have installed SDL int /opt and i installed a game with pkgadd in /usr/local and when i try to start the game i says: ld.so.1: ./gamename: fatal: libSDL-1.1.so.0: open failed: No such file or directory what should i do (1 Reply)
Discussion started by: CreamHarry
1 Replies

2. What is on Your Mind?

Games?

So what kind of games we all play? If any? I like RTS, C&C fan here all the way :p (8 Replies)
Discussion started by: woofie
8 Replies

3. UNIX for Dummies Questions & Answers

UNIX games?

Does anyone know of any unix-based games? (1 Reply)
Discussion started by: danceofillusion
1 Replies

4. What is on Your Mind?

Of Computer wizards and games

You guys are really are a genius, you make computer processing more easy for us end users. You just don't make wonders but you also make good computer games too. Really there is a fast evolution on the era of the computer world. Thanks to you guys! __________________ The Cute Angry Birds... (0 Replies)
Discussion started by: methusela123
0 Replies

5. Ubuntu

use VM to play games in Windows (Intense Games)

I have Ubunut installed on my desktop AMD 6 Core 3.2 (will be getting the bulldozer AMD 8 Core when it releases) 16 GB of DDR3 1333 RAM SSD some HDD's Nvidia 560 ti 1GB My question is, how can I or can I even get a Win 7 VM to play games as well in a main install. Give it 10 GBs of RAM... (0 Replies)
Discussion started by: ochieman2000
0 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. Post Here to Contact Site Administrators and Moderators

Where Are the Games?

Hi! I'm new to the site, and today I clicked on "Banking", curious as to what that was about. Aside from being able to "buy" things with these points, it appears there are some games available, on which you can wager your points. While I could access the "high scores", I could not find the... (14 Replies)
Discussion started by: sudon't
14 Replies

8. 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

9. Post Here to Contact Site Administrators and Moderators

How to hack computer games that is paid???

Plz help me to hack computer games that is paid ty (1 Reply)
Discussion started by: 09287501067
1 Replies

10. UNIX Desktop Questions & Answers

Which is your favourite desktop?

Most of the people think that they can not use Unix as desktop. By this poll we gone tell them that we not just use Unix as desktop but also love different display managers like GNOME, KDE etc..... (35 Replies)
Discussion started by: ynilesh
35 Replies
TTYSLOT(3)						     Linux Programmer's Manual							TTYSLOT(3)

NAME
ttyslot - find the slot of the current user's terminal in some file SYNOPSIS
#include <unistd.h> /See NOTES */ int ttyslot(void); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): ttyslot(): Since glibc 2.24: _DEFAULT_SOURCE From glibc 2.20 to 2.23: _DEFAULT_SOURCE || _XOPEN_SOURCE && _XOPEN_SOURCE_ < 500 Glibc 2.19 and earlier: _BSD_SOURCE || _XOPEN_SOURCE && _XOPEN_SOURCE_ < 500 DESCRIPTION
The legacy function ttyslot() returns the index of the current user's entry in some file. Now "What file?" you ask. Well, let's first look at some history. Ancient history There used to be a file /etc/ttys in UNIX V6, that was read by the init(1) program to find out what to do with each terminal line. Each line consisted of three characters. The first character was either '0' or '1', where '0' meant "ignore". The second character denoted the terminal: '8' stood for "/dev/tty8". The third character was an argument to getty(8) indicating the sequence of line speeds to try ('-' was: start trying 110 baud). Thus a typical line was "18-". A hang on some line was solved by changing the '1' to a '0', signaling init, changing back again, and signaling init again. In UNIX V7 the format was changed: here the second character was the argument to getty(8) indicating the sequence of line speeds to try ('0' was: cycle through 300-1200-150-110 baud; '4' was for the on-line console DECwriter) while the rest of the line contained the name of the tty. Thus a typical line was "14console". Later systems have more elaborate syntax. System V-like systems have /etc/inittab instead. Ancient history (2) On the other hand, there is the file /etc/utmp listing the people currently logged in. It is maintained by login(1). It has a fixed size, and the appropriate index in the file was determined by login(1) using the ttyslot() call to find the number of the line in /etc/ttys (counting from 1). The semantics of ttyslot Thus, the function ttyslot() returns the index of the controlling terminal of the calling process in the file /etc/ttys, and that is (usu- ally) the same as the index of the entry for the current user in the file /etc/utmp. BSD still has the /etc/ttys file, but System V-like systems do not, and hence cannot refer to it. Thus, on such systems the documentation says that ttyslot() returns the current user's index in the user accounting data base. RETURN VALUE
If successful, this function returns the slot number. On error (e.g., if none of the file descriptors 0, 1 or 2 is associated with a ter- minal that occurs in this data base) it returns 0 on UNIX V6 and V7 and BSD-like systems, but -1 on System V-like systems. ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). +----------+---------------+-----------+ |Interface | Attribute | Value | +----------+---------------+-----------+ |ttyslot() | Thread safety | MT-Unsafe | +----------+---------------+-----------+ CONFORMING TO
SUSv1; marked as LEGACY in SUSv2; removed in POSIX.1-2001. SUSv2 requires -1 on error. NOTES
The utmp file is found in various places on various systems, such as /etc/utmp, /var/adm/utmp, /var/run/utmp. The glibc2 implementation of this function reads the file _PATH_TTYS, defined in <ttyent.h> as "/etc/ttys". It returns 0 on error. Since Linux systems do not usually have "/etc/ttys", it will always return 0. On BSD-like systems and Linux, the declaration of ttyslot() is provided by <unistd.h>. On System V-like systems, the declaration is pro- vided by <stdlib.h>. Since glibc 2.24, <stdlib.h> also provides the declaration with the following feature test macro definitions: (_XOPEN_SOURCE >= 500 || (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED)) && ! (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) Minix also has fttyslot(fd). SEE ALSO
getttyent(3), ttyname(3), utmp(5) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. GNU
2017-09-15 TTYSLOT(3)
All times are GMT -4. The time now is 10:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy