Sponsored Content
The Lounge What is on Your Mind? Which category do you belong to? Post 302998074 by cb88 on Wednesday 24th of May 2017 09:38:22 PM
Old 05-24-2017
I'm not really sure where I fit in there... I'm a computer engineer, have used Linux in various forms for about 12 years or so, including updating the gentoo sparc32 port from 2008 to 2014 by hand... and I design control system electronics and HMIs for a living.

I administer my own homepage running on Gentoo/sparc64 ... and actually bothered to setup SSL there... in a slightly non run of the mill setup especially since it is on sparc.

I wish there were open source web frameworks that were well just better...I can't bring myself to acutally write any php, and I'm a bit abhorrent of Go, Lisp is a bit too left field even though I've written some before.... meh. The knock at Go is not for what it does in the language... but rather the binary.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

listing files that do not belong to current date

How do we list all the file names in a directory that does not belong to current date. (1 Reply)
Discussion started by: esh.mohan
1 Replies

2. UNIX for Dummies Questions & Answers

listing files that does not belong to current date

How do we list all the file names in a directory that does not belong to current date. (3 Replies)
Discussion started by: esh.mohan
3 Replies

3. Post Here to Contact Site Administrators and Moderators

How to change the category?

Hi, I submitted my blog on UNIX in the links section. On submitting, i chose the category as Unix/Linux standards, which i now feel is incorrect. I would like to change the category of my link, but i don't find any option to change the category. Please help me in doing the needful. Thanks... (7 Replies)
Discussion started by: guruprasadpr
7 Replies

4. Shell Programming and Scripting

Split file into given category and others using awk

Hi All, Would it be possible using awk to split a given file into two files based on a certain condition such that one output file will contain all lines that fit the condition while the other output file will contain lines that did not fit the condition? Here is a sample input file ... (6 Replies)
Discussion started by: cympaulife
6 Replies

5. Shell Programming and Scripting

Listing files that belong to a certain year date?

I'm trying to list files, first by size and I'm using something like this ls -l|awk '{print $5,$6,$7,$8,$9|"sort -nr"}'|more Now I'd like to just do the same listing but only for files with the year 2009 in the $8 field or even anything less than 2011. (5 Replies)
Discussion started by: NycUnxer
5 Replies

6. Shell Programming and Scripting

extract the max value category

Hi, I have a file and I want the category for each row to be its highest value. gene highest medium lower lowest ABC 20 30 50 70 DEF 90 20 60 0 o/p gene highest medium lower lowest category ABC... (6 Replies)
Discussion started by: Diya123
6 Replies

7. UNIX for Dummies Questions & Answers

ldap , search groups that user belong

i want run query to identify witch groups that user A belong, CN=name,CN=Users,DC=mydomain ?? (1 Reply)
Discussion started by: prpkrk
1 Replies

8. Shell Programming and Scripting

Data filtering and category assigning

Please consider the following file, I have many groups which can be of 3 types, T1 (Serial_Number 1) T2 (Serial_Number 2) and T1*T2 (all other Serial_Number). I want to only consider groups that have both T1 and T2 present and their values are different from each other. In the example file,... (8 Replies)
Discussion started by: jianp83
8 Replies

9. Shell Programming and Scripting

Category and count with awk

I want to categorize and count the as below: Input file: A1 G1 C1 F1 A2 G1 C1 F1 A3 G1 C1 F2 A4 G1 C2 F2 A7 G1 C2 F2 A8 G1 C2 F3 A11 G1 C2 F3 A23 G1 C2 F3 B4 G1 C2 F3 AC4 G2 C3 F4 B6 G2 C4 F4 BB5 G2 C4 F4 A25 G2 C5 F4 B13 G2 C5 F5 D12 G2 C5 F5 D2 G2 C5 F5 (3 Replies)
Discussion started by: aydj
3 Replies

10. UNIX for Beginners Questions & Answers

Delete records that do not belong to that day

i have a requirement to delete records that do not belong to that day. For example in a file that came on July 31st ,2018 there are records that belong to Aug 1st,2018 as well and I want to find and delete those records. I want to delete anything with 01-Aug-2018. I have several files like that. I... (6 Replies)
Discussion started by: Priya
6 Replies
POLL(2) 						      BSD System Calls Manual							   POLL(2)

NAME
poll, pollts -- synchronous I/O multiplexing LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <poll.h> int poll(struct pollfd *fds, nfds_t nfds, int timeout); #include <poll.h> #include <signal.h> #include <time.h> int pollts(struct pollfd * restrict fds, nfds_t nfds, const struct timespec * restrict ts, const sigset_t * restrict sigmask); DESCRIPTION
poll() and pollts() examine a set of file descriptors to see if some of them are ready for I/O. The fds argument is a pointer to an array of pollfd structures as defined in <poll.h> (shown below). The nfds argument determines the size of the fds array. struct pollfd { int fd; /* file descriptor */ short events; /* events to look for */ short revents; /* events returned */ }; The fields of struct pollfd are as follows: fd File descriptor to poll. If the value in fd is negative, the file descriptor is ignored and revents is set to 0. events Events to poll for. (See below.) revents Events which may occur. (See below.) The event bitmasks in events and revents have the following bits: POLLIN Data other than high priority data may be read without blocking. POLLRDNORM Normal data may be read without blocking. POLLRDBAND Data with a non-zero priority may be read without blocking. POLLPRI High priority data may be read without blocking. POLLOUT Normal data may be written without blocking. POLLWRNORM Equivalent to POLLOUT. POLLWRBAND Data with a non-zero priority may be written without blocking. POLLERR An exceptional condition has occurred on the device or socket. This flag is always checked, even if not present in the events bitmask. POLLHUP The device or socket has been disconnected. This flag is always checked, even if not present in the events bitmask. Note that POLLHUP and POLLOUT should never be present in the revents bitmask at the same time. If the remote end of a socket is closed, poll() returns a POLLIN event, rather than a POLLHUP. POLLNVAL The file descriptor is not open. This flag is always checked, even if not present in the events bitmask. If timeout is neither zero nor INFTIM (-1), it specifies a maximum interval to wait for any file descriptor to become ready, in milliseconds. If timeout is INFTIM (-1), the poll blocks indefinitely. If timeout is zero, then poll() will return without blocking. If ts is a non-null pointer, it references a timespec structure which specifies a maximum interval to wait for any file descriptor to become ready. If ts is a null pointer, pollts() blocks indefinitely. If ts is a non-null pointer, referencing a zero-valued timespec structure, then pollts() will return without blocking. If sigmask is a non-null pointer, then the pollts() function shall replace the signal mask of the caller by the set of signals pointed to by sigmask before examining the descriptors, and shall restore the signal mask of the caller before returning. RETURN VALUES
poll() returns the number of descriptors that are ready for I/O, or -1 if an error occurred. If the time limit expires, poll() returns 0. If poll() returns with an error, including one due to an interrupted call, the fds array will be unmodified. COMPATIBILITY
This implementation differs from the historical one in that a given file descriptor may not cause poll() to return with an error. In cases where this would have happened in the historical implementation (e.g. trying to poll a revoke(2)d descriptor), this implementation instead copies the events bitmask to the revents bitmask. Attempting to perform I/O on this descriptor will then return an error. This behaviour is believed to be more useful. ERRORS
An error return from poll() indicates: [EFAULT] fds points outside the process's allocated address space. [EINTR] A signal was delivered before the time limit expired and before any of the selected events occurred. [EINVAL] The specified time limit is negative. SEE ALSO
accept(2), connect(2), read(2), recv(2), select(2), send(2), write(2) HISTORY
The poll() function appeared in AT&T System V Release 3 UNIX. The pollts() function first appeared in NetBSD 3.0. BUGS
The distinction between some of the fields in the events and revents bitmasks is really not useful without STREAMS. The fields are defined for compatibility with existing software. BSD
September 8, 2006 BSD
All times are GMT -4. The time now is 06:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy