Hi
I'm trying to implement CAPWAP protocol for my application.i'm able to configure my server side but i'm getting error at client(WTP) side as IOCTL error.while running the command
please anyone help me how to debug it.i'm using open source code.i have changed the interface wl0 to my interface of WTP
I want to implement my own simple multi tasking shell in Unix which will take care of redirection (<, >, >>) and piping.
I am just unable to get a concrete idea of how exactly I have to start. I have several books...some are..
1. Maurice Bach- Design Of Unix Operating System
2. Richard... (3 Replies)
Hi,
I am accepting a string from user. compare this output with the awk output as below...
echo "\n\n\tDay : \c"
read day
awk '{ if($day == $2) { if ($mon == $1) { print "Yes" }}}' syslog.txt
I am getting the follwoing error
awk: Field $() is not correct.
The input line... (5 Replies)
Hey Guys
I am trying to implement the malloc function for my OS class and I am having a little trouble with it. I would be really grateful if I could get some hints on this problem.
So I am using a doubly-linked list as my data structure and I have to allocate memory for it (duh...). The... (1 Reply)
Hey Guys
Some of my friends have got together and we are trying to write a basic kernel similar to Linux. I am trying to implement the malloc function in C and I am using a doubly linked list as the primary data structure. I need to allocate memory for this link list (duh...) and I don't feel... (2 Replies)
Hi all,I'm reading <Advanced programming in the UNIX environment>,that book asked the reader to implement a function which has same functions with dup2 without calling fcntl.Could anyone give me a tip?Any help will be appreciated.:) (8 Replies)
Hi everybody,
i've been googling for ages now and gotten kinda desperate... The question, however, might be rather trivial for the experts: What is it exactly, i.e. physically, the POSIX function (for a file) "lseek" does? Does it trigger some kind of synchronization on disk? Is it just for the... (4 Replies)
I have this code from a programming book:
#include <stdio.h>
#include <string.h>
char buf; /* input line buffer */
char* field; /* fields */
char* unquote( char* );
/* csvgetline: read and parse line, return field count */
/* sample input:... (3 Replies)
Discussion started by: totoro125
3 Replies
LEARN ABOUT MINIX
ioctl
IOCTL(2) System Calls Manual IOCTL(2)NAME
ioctl - control device
SYNOPSIS
#include <sys/types.h>
#include <sys/ioctl.h>
int ioctl(int d, int request, void *argp) (Minix)
int ioctl(int d, ioreq_t request, void *argp) (Minix-vmd)
DESCRIPTION
Ioctl performs a variety of functions on open descriptors. In particular, many operating characteristics of character special files (e.g.
terminals) may be controlled with ioctl requests. The writeups of various devices in section 4 discuss how ioctl applies to them.
An ioctl request has encoded in it whether the argument is an "in" parameter or "out" parameter, and the size of the argument argp in
bytes. Macros and defines used in specifying an ioctl request are located in the file <sys/ioctl.h>.
RETURN VALUE
If an error has occurred, a value of -1 is returned and errno is set to indicate the error.
ERRORS
Ioctl will fail if one or more of the following are true:
[EBADF] D is not a valid descriptor.
[ENOTTY] D is not associated with a character special device.
[ENOTTY] The specified request does not apply to the kind of object that the descriptor d references.
[EINVAL] Request or argp is not valid.
SEE ALSO execve(2), fcntl(2), mt(4), tty(4), intro(4).
4th Berkeley Distribution March 4, 1986 IOCTL(2)