Searched refs:sbuf (Results 1 - 25 of 113) sorted by relevance

12345

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/source/modules/
H A Dvfs_fake_perms.c30 static int fake_perms_stat(vfs_handle_struct *handle, connection_struct *conn, const char *fname, SMB_STRUCT_STAT *sbuf) argument
34 ret = SMB_VFS_NEXT_STAT(handle, conn, fname, sbuf);
38 if (S_ISDIR(sbuf->st_mode)) {
39 sbuf->st_mode = S_IFDIR | S_IRWXU;
41 sbuf->st_mode = S_IRWXU;
43 sbuf->st_uid = current_user.uid;
44 sbuf->st_gid = current_user.gid;
50 static int fake_perms_fstat(vfs_handle_struct *handle, files_struct *fsp, int fd, SMB_STRUCT_STAT *sbuf) argument
54 ret = SMB_VFS_NEXT_FSTAT(handle, fsp, fd, sbuf);
58 if (S_ISDIR(sbuf
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iproute2/tc/
H A Dtc_red.h6 extern int tc_red_eval_idle_damping(int wlog, unsigned avpkt, unsigned bandwidth, __u8 *sbuf);
H A Dtc_red.c72 int tc_red_eval_idle_damping(int Wlog, unsigned avpkt, unsigned bps, __u8 *sbuf) argument
89 sbuf[0] = 0;
91 sbuf[i] = (i<<clog)*lW;
92 if (sbuf[i] > 31)
93 sbuf[i] = 31;
95 sbuf[255] = 31;
H A Dq_red.c46 __u8 sbuf[256]; local
138 if ((wlog = tc_red_eval_idle_damping(opt.Wlog, avpkt, rate, sbuf)) < 0) {
155 addattr_l(n, 1024, TCA_RED_STAB, sbuf, 256);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/source/smbd/
H A Ddosmode.c57 SMB_STRUCT_STAT sbuf; local
61 if (SMB_VFS_STAT(conn,dname,&sbuf) != 0) {
67 dir_mode = sbuf.st_mode & ~S_ISUID;
119 uint32 dos_mode_from_sbuf(connection_struct *conn, SMB_STRUCT_STAT *sbuf) argument
123 if ((sbuf->st_mode & S_IWUSR) == 0)
126 if (MAP_ARCHIVE(conn) && ((sbuf->st_mode & S_IXUSR) != 0))
129 if (MAP_SYSTEM(conn) && ((sbuf->st_mode & S_IXGRP) != 0))
132 if (MAP_HIDDEN(conn) && ((sbuf->st_mode & S_IXOTH) != 0))
135 if (S_ISDIR(sbuf->st_mode))
139 if (sbuf
167 get_ea_dos_attribute(connection_struct *conn, const char *path,SMB_STRUCT_STAT *sbuf, uint32 *pattr) argument
222 set_ea_dos_attribute(connection_struct *conn, const char *path, SMB_STRUCT_STAT *sbuf, uint32 dosmode) argument
279 dos_mode(connection_struct *conn, const char *path,SMB_STRUCT_STAT *sbuf) argument
[all...]
H A Dtrans2.c33 //#define get_file_size(sbuf) ((sbuf).st_size)
34 #define get_file_size(sbuf) get_file_size2(sbuf)
80 SMB_BIG_UINT get_allocation_size(connection_struct *conn, files_struct *fsp, SMB_STRUCT_STAT *sbuf) argument
85 ret = (SMB_BIG_UINT)STAT_ST_BLOCKSIZE * (SMB_BIG_UINT)sbuf->st_blocks;
89 //ret = (SMB_BIG_UINT)get_file_size(*sbuf);
90 ret = (SMB_BIG_UINT)STAT_ST_BLOCKSIZE * (SMB_BIG_UINT)sbuf->st_blocks;
632 SMB_STRUCT_STAT sbuf; local
670 unix_convert(fname,conn,0,&bad_path,&sbuf);
845 SMB_STRUCT_STAT sbuf; local
1413 SMB_STRUCT_STAT sbuf; local
2414 SMB_STRUCT_STAT sbuf; local
3290 SMB_STRUCT_STAT sbuf; local
4128 SMB_STRUCT_STAT sbuf; local
[all...]
H A Dvfs.c358 SMB_STRUCT_STAT sbuf; local
370 !SMB_VFS_STAT(conn,name,&sbuf) && (mode & ~sbuf.st_mode))
371 SMB_VFS_CHMOD(conn,name,sbuf.st_mode | (mode & ~sbuf.st_mode));
380 BOOL vfs_object_exist(connection_struct *conn,const char *fname,SMB_STRUCT_STAT *sbuf) argument
384 if (!sbuf)
385 sbuf = &st;
387 ZERO_STRUCTP(sbuf);
389 if (SMB_VFS_STAT(conn,fname,sbuf)
398 vfs_file_exist(connection_struct *conn, const char *fname,SMB_STRUCT_STAT *sbuf) argument
[all...]
H A Dreply.c542 SMB_STRUCT_STAT sbuf; local
555 unix_convert(name,conn,0,&bad_path,&sbuf);
562 if (VALID_STAT(sbuf) || SMB_VFS_STAT(conn,name,&sbuf) == 0)
563 if (!(ok = S_ISDIR(sbuf.st_mode))) {
607 SMB_STRUCT_STAT sbuf; local
637 unix_convert(fname,conn,0,&bad_path,&sbuf);
643 if (VALID_STAT(sbuf) || SMB_VFS_STAT(conn,fname,&sbuf) == 0) {
644 mode = dos_mode(conn,fname,&sbuf);
690 SMB_STRUCT_STAT sbuf; local
851 SMB_STRUCT_STAT sbuf; local
1058 SMB_STRUCT_STAT sbuf; local
1147 SMB_STRUCT_STAT sbuf; local
1281 SMB_STRUCT_STAT sbuf; local
1356 SMB_STRUCT_STAT sbuf; local
1492 SMB_STRUCT_STAT sbuf; local
1605 SMB_STRUCT_STAT sbuf; local
2195 SMB_STRUCT_STAT sbuf; local
2823 SMB_STRUCT_STAT sbuf; local
3383 SMB_STRUCT_STAT sbuf; local
3598 SMB_STRUCT_STAT sbuf; local
3748 SMB_STRUCT_STAT sbuf; local
5218 SMB_STRUCT_STAT sbuf; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/libatalk/compat/
H A Dmktemp.c61 struct stat sbuf; local
80 if (stat(path, &sbuf))
82 if (!S_ISDIR(sbuf.st_mode)) {
99 else if (stat(path, &sbuf))
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/libatalk/compat/
H A Dmktemp.c61 struct stat sbuf; local
80 if (stat(path, &sbuf))
82 if (!S_ISDIR(sbuf.st_mode)) {
99 else if (stat(path, &sbuf))
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/ffmpeg-0.5.1/libavcodec/
H A Dnellymoser.c122 short sbuf[128]; local
138 sbuf[i] = signed_shift(buf[i], shift);
139 sbuf[i] = (3*sbuf[i])>>2;
140 sum += sbuf[i];
152 bitsum = sum_bits(sbuf, shift_saved, small_off);
170 bitsum = sum_bits(sbuf, shift_saved, small_off);
189 bitsum = sum_bits(sbuf, shift_saved, off);
210 tmp = sbuf[i]-small_off;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/libgcrypt-1.5.0/cipher/
H A Dkdf.c133 char *sbuf; /* Malloced buffer to concatenate salt and iter local
158 sbuf = (secmode
161 if (!sbuf)
163 tbuf = sbuf + saltlen + 4;
171 gcry_free (sbuf);
176 memcpy (sbuf, salt, saltlen);
185 gcry_free (sbuf);
190 sbuf[saltlen] = (lidx >> 24);
191 sbuf[saltlen + 1] = (lidx >> 16);
192 sbuf[saltle
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/media/video/
H A Dcpia_usb.c76 int cursbuf; /* Current receiving sbuf */
77 struct cpia_sbuf sbuf[CPIA_NUMSBUF]; /* Double buffering */ member in struct:usb_cpia
185 ucpia->sbuf[0].data = kmalloc(FRAMES_PER_DESC * FRAME_SIZE_PER_DESC, GFP_KERNEL);
186 if (!ucpia->sbuf[0].data)
189 ucpia->sbuf[1].data = kmalloc(FRAMES_PER_DESC * FRAME_SIZE_PER_DESC, GFP_KERNEL);
190 if (!ucpia->sbuf[1].data) {
221 ucpia->sbuf[0].urb = urb;
226 urb->transfer_buffer = ucpia->sbuf[0].data;
243 ucpia->sbuf[1].urb = urb;
248 urb->transfer_buffer = ucpia->sbuf[
[all...]
H A Dcafe_ccic.c1297 struct cafe_sio_buffer *sbuf; local
1306 sbuf = cam->sb_bufs + buf->index;
1307 if (sbuf->v4lbuf.flags & V4L2_BUF_FLAG_QUEUED) {
1311 if (sbuf->v4lbuf.flags & V4L2_BUF_FLAG_DONE) {
1316 sbuf->v4lbuf.flags |= V4L2_BUF_FLAG_QUEUED;
1318 list_add(&sbuf->list, &cam->sb_avail);
1330 struct cafe_sio_buffer *sbuf; local
1359 sbuf = list_entry(cam->sb_full.next,
1361 list_del_init(&sbuf->list);
1363 sbuf
1378 struct cafe_sio_buffer *sbuf = vma->vm_private_data; local
1389 struct cafe_sio_buffer *sbuf = vma->vm_private_data; local
1411 struct cafe_sio_buffer *sbuf = NULL; local
1791 struct cafe_sio_buffer *sbuf; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/source/printing/
H A Dprintfsp.c32 SMB_STRUCT_STAT sbuf; local
83 SMB_VFS_FSTAT(fsp,fsp->fd, &sbuf);
84 fsp->mode = sbuf.st_mode;
85 fsp->inode = sbuf.st_ino;
86 fsp->dev = sbuf.st_dev;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/curl-7.23.1/source/lib/
H A Dhostip4.c147 char sbuf[NI_MAXSERV]; local
154 snprintf(sbuf, sizeof(sbuf), "%d", port);
155 sbufptr = sbuf;
H A Dhostip6.c177 char sbuf[NI_MAXSERV]; local
215 snprintf(sbuf, sizeof(sbuf), "%d", port);
216 sbufptr=sbuf;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/networking/
H A Dftpgetput.c165 struct stat sbuf; local
166 if (lstat(local_path, &sbuf) < 0) {
169 if (sbuf.st_size > 0) {
170 beg_range = sbuf.st_size;
227 struct stat sbuf; local
243 fstat(fd_local, &sbuf);
245 sprintf(buf, "ALLO %"OFF_FMT"u", sbuf.st_size);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/source/lib/
H A Dutil_file.c393 SMB_STRUCT_STAT sbuf; local
396 if (sys_fstat(fd, &sbuf) != 0) {
400 p = (char *)SMB_MALLOC(sbuf.st_size+1);
405 if (read(fd, p, sbuf.st_size) != sbuf.st_size) {
409 p[sbuf.st_size] = 0;
412 *size = sbuf.st_size;
H A Dsystem.c218 int sys_stat(const char *fname,SMB_STRUCT_STAT *sbuf) argument
222 ret = stat64(fname, sbuf);
224 ret = stat(fname, sbuf);
227 if (ret == 0 && S_ISDIR(sbuf->st_mode)) sbuf->st_size = 0;
235 int sys_fstat(int fd,SMB_STRUCT_STAT *sbuf) argument
239 ret = fstat64(fd, sbuf);
241 ret = fstat(fd, sbuf);
244 if (ret == 0 && S_ISDIR(sbuf->st_mode)) sbuf
252 sys_lstat(const char *fname,SMB_STRUCT_STAT *sbuf) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/xfs/
H A Dxfs_error.c243 char sbuf[128], *s; local
245 s = sbuf;
250 cmn_err(CE_ALERT, "%s\n", sbuf);
251 s = sbuf;
266 cmn_err(CE_ALERT, "%s\n", sbuf);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/dnsmasq-2.15/src/
H A Dutil.c49 char sbuf[sizeof(seed)]; local
65 ((n = read(fd, sbuf, sizeof(seed)) > 0)))
67 memcpy(s, sbuf, n);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iproute2/ip/
H A Dipmroute.c93 char sbuf[256]; local
113 format_host(AF_INET, 4, &msrc.data[0], sbuf, sizeof(sbuf)),
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/mtools-4.0.10/
H A Dmisc.c100 struct MT_STAT sbuf; local
106 if (MT_STAT(file, &sbuf) < 0)
112 if (now - sbuf.st_mtime > 6 * 60 * 60) {
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/openssl/apps/
H A Ds_client.c239 char *cbuf=NULL,*sbuf=NULL,*mbuf=NULL; local
289 ((sbuf=OPENSSL_malloc(BUFSIZZ)) == NULL) ||
601 BIO_read(sbio,sbuf,BUFSIZZ);
607 BIO_read(sbio,sbuf,BUFSIZZ);
790 ascii2ebcdic(&(sbuf[sbuf_off]),&(sbuf[sbuf_off]),sbuf_len);
792 i=write(fileno(stdout),&(sbuf[sbuf_off]),sbuf_len);
815 k=SSL_read(con,sbuf,1024 /* BUFSIZZ */ );
818 k=SSL_read(con,sbuf,16);
933 if (sbuf !
[all...]

Completed in 240 milliseconds

12345